portable-agent-layer 0.84.0 → 0.84.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli/index.ts +11 -1
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -110,6 +110,16 @@ function checkCopilot(): ToolCheck {
|
|
|
110
110
|
return cli;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* The Cursor CLI installs `cursor-agent` (and `agent`) and no `cursor` command;
|
|
115
|
+
* `cursor` is the editor's shell command. Both read ~/.cursor, so either counts.
|
|
116
|
+
*/
|
|
117
|
+
function checkCursor(): ToolCheck {
|
|
118
|
+
const cli = checkTool("cursor-agent");
|
|
119
|
+
if (cli.available) return cli;
|
|
120
|
+
return checkTool("cursor");
|
|
121
|
+
}
|
|
122
|
+
|
|
113
123
|
async function session(sessionArgs: string[]) {
|
|
114
124
|
const agent = findSessionAgent();
|
|
115
125
|
if (!agent) {
|
|
@@ -759,7 +769,7 @@ function doctor(silent = false): DoctorResult {
|
|
|
759
769
|
const bun = { name: "bun", available: true, version: Bun.version };
|
|
760
770
|
const claude = checkTool("claude");
|
|
761
771
|
const opencode = checkTool("opencode");
|
|
762
|
-
const cursor =
|
|
772
|
+
const cursor = checkCursor();
|
|
763
773
|
const copilot = checkCopilot();
|
|
764
774
|
const codex = checkTool("codex");
|
|
765
775
|
const rtk = checkTool("rtk");
|