mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
Add the Cursor CLI starter template and refresh launcher agent and model data
AI Assisted
This commit is contained in:
1 parent
785a4dc8b9
commit
b5089cdc94
5 files changed
+75
-14
No files matched your search
@@ -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": [
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in new issue
Block a user