@vercel/detect-agent
Advanced tools
+1
-1
@@ -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 @@ } |
+6
-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 @@ |
+1
-1
@@ -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 @@ } |
+1
-1
| { | ||
| "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": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
26174
1.51%42
5%