Add the Cursor CLI starter template and refresh launcher agent and model data

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-09 22:09:00 -08:00
1 parent 785a4dc8b9
commit b5089cdc94
5 files changed
+75 -14

No files matched your search

+1 -1
View File
@@ -1670,7 +1670,7 @@ mod tests {
.iter()
.map(|e| e.id.as_str())
.collect::<Vec<_>>(),
["copilot", "opencode", "gemini", "pi"]
["copilot", "opencode", "gemini", "pi", "cursor"]
);
assert!(list
.builtins
+55
View File
@@ -2054,6 +2054,61 @@
"args": [
"/skill:plan2code"
]
},
{
"name": "Cursor CLI's shape: a chosen model goes ahead of the prompt",
"entry": {
"id": "cursor",
"name": "Cursor CLI",
"command": "agent",
"args": [
"{model}",
"{prompt}"
],
"prompt": "/plan2code",
"bypassArgs": [
"--force"
],
"modelArgs": [
"--model",
"{model}"
]
},
"options": {
"model": "sonnet-4",
"bypass": false
},
"args": [
"--model",
"sonnet-4",
"/plan2code"
]
},
{
"name": "Cursor CLI's shape: no model, no model argument",
"entry": {
"id": "cursor",
"name": "Cursor CLI",
"command": "agent",
"args": [
"{model}",
"{prompt}"
],
"prompt": "/plan2code",
"bypassArgs": [
"--force"
],
"modelArgs": [
"--model",
"{model}"
]
},
"options": {
"bypass": false
},
"args": [
"/plan2code"
]
}
],
"ids": [
+2 -2
View File
@@ -111,11 +111,11 @@ test("loadAgentList: bad JSON and a wrong schema warn and give nothing", (t) =>
assert.match(wrong.warnings[0], /schema/);
});
test("loadAgentList: the shipped agents.json loads with 3 built-ins and 4 templates", () => {
test("loadAgentList: the shipped agents.json loads with 3 built-ins and 5 templates", () => {
const { builtins, templates, warnings } = loadAgentList({ dir: path.join(ROOT, "src", "launcher") });
assert.deepEqual(warnings, []);
assert.deepEqual(builtins.map((a) => a.id), ["claude", "devin", "codex"]);
assert.deepEqual(templates.map((a) => a.id), ["copilot", "opencode", "gemini", "pi"]);
assert.deepEqual(templates.map((a) => a.id), ["copilot", "opencode", "gemini", "pi", "cursor"]);
});
test("every shipped template passes normalizeAgents() with no warnings", () => {
+12 -2
View File
@@ -83,7 +83,7 @@
]
},
"installDirs": {
"win": ["%USERPROFILE%\\.local\\bin"],
"win": ["%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin", "%USERPROFILE%\\.local\\bin"],
"mac": ["~/.local/bin"],
"linux": ["~/.local/bin"]
}
@@ -117,7 +117,7 @@
"args": ["{model}", "{prompt}"],
"bypassArgs": ["--approval-mode=yolo"],
"modelArgs": ["--model", "{model}"],
"note": "For unpaid tier and Google One accounts Gemini CLI was replaced by Antigravity CLI on June 18, 2026; whether gemini still runs depends on the account."
"note": "For Google AI Pro and Ultra accounts and free Gemini Code Assist for individuals, Gemini CLI was replaced by Antigravity CLI on June 18, 2026; Standard and Enterprise licenses and paid API keys are unaffected."
},
{
"id": "pi",
@@ -127,6 +127,16 @@
"prompt": "/skill:plan2code",
"args": ["{model}", "{prompt}"],
"modelArgs": ["--model", "{model}"]
},
{
"id": "cursor",
"name": "Cursor CLI",
"kind": "template",
"command": "agent",
"prompt": "/plan2code",
"args": ["{model}", "{prompt}"],
"bypassArgs": ["--force"],
"modelArgs": ["--model", "{model}"]
}
]
}
+5 -9
View File
@@ -27,7 +27,7 @@
},
{
"id": "best",
"label": "Best, Fable where available, otherwise Opus"
"label": "Best, same model as Opus"
}
],
"devin": [
@@ -140,16 +140,12 @@
"label": "GPT-6 Astra High Thinking"
},
{
"id": "gpt-5-6-sol-low",
"label": "GPT-5.6 Sol Low Thinking"
"id": "swe-2-flash-medium",
"label": "SWE-2 Flash Medium"
},
{
"id": "gpt-5-6-sol-medium",
"label": "GPT-5.6 Sol Medium Thinking"
},
{
"id": "gpt-5-6-sol-high",
"label": "GPT-5.6 Sol High Thinking"
"id": "swe-2-flash-high",
"label": "SWE-2 Flash High"
}
],
"codex": [