mirror of
https://github.com/expo/agent-cli-detector.git
synced 2026-11-13 20:11:27 -10:00
62 lines
1.5 KiB
JSON
62 lines
1.5 KiB
JSON
{
|
|
"name": "agent-cli-detector",
|
|
"version": "0.1.8",
|
|
"description": "Detect whether a JavaScript CLI is running inside a coding agent.",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"bin": {
|
|
"agent-cli-detector": "dist/cli.js"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=18.18"
|
|
},
|
|
"scripts": {
|
|
"build": "tsup && node -e \"require('node:fs').chmodSync('dist/cli.js', 0o755)\"",
|
|
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
"test": "npm run build && node --test test/detector.test.mjs test/package.test.mjs",
|
|
"prepack": "npm run clean && npm run build && node --test test/detector.test.mjs"
|
|
},
|
|
"keywords": [
|
|
"agent",
|
|
"cli",
|
|
"detection",
|
|
"codex",
|
|
"claude",
|
|
"opencode"
|
|
],
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^24.0.4",
|
|
"tsup": "^8.5.0",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/expo/agent-cli-detector.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/expo/agent-cli-detector/issues"
|
|
},
|
|
"homepage": "https://github.com/expo/agent-cli-detector#readme"
|
|
}
|