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

+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", () => {