🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vercel/detect-agent

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/detect-agent - npm Package Compare versions

Comparing version
1.2.1
to
1.2.2
+1
-1
./dist/index.js

@@ -74,3 +74,3 @@ "use strict";

}
if (process.env.CURSOR_AGENT) {
if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") {
return { isAgent: true, agent: { name: CURSOR_CLI } };

@@ -77,0 +77,0 @@ }

# @vercel/detect-agent
## 1.2.2
### Patch Changes
- Detect Cursor agent execution when `CURSOR_EXTENSION_HOST_ROLE=agent-exec` is set so tools launched from Cursor still report the `cursor-cli` agent when `CURSOR_AGENT` is not present. ([#15879](https://github.com/vercel/vercel/pull/15879))
## 1.2.1

@@ -4,0 +10,0 @@

@@ -74,3 +74,3 @@ "use strict";

}
if (process.env.CURSOR_AGENT) {
if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") {
return { isAgent: true, agent: { name: CURSOR_CLI } };

@@ -77,0 +77,0 @@ }

{
"name": "@vercel/detect-agent",
"version": "1.2.1",
"version": "1.2.2",
"description": "Detect if code is running in an AI agent or automated development environment",

@@ -5,0 +5,0 @@ "keywords": [