mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 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
@@ -1670,7 +1670,7 @@ mod tests {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|e| e.id.as_str())
|
.map(|e| e.id.as_str())
|
||||||
.collect::<Vec<_>>(),
|
.collect::<Vec<_>>(),
|
||||||
["copilot", "opencode", "gemini", "pi"]
|
["copilot", "opencode", "gemini", "pi", "cursor"]
|
||||||
);
|
);
|
||||||
assert!(list
|
assert!(list
|
||||||
.builtins
|
.builtins
|
||||||
|
|||||||
@@ -2054,6 +2054,61 @@
|
|||||||
"args": [
|
"args": [
|
||||||
"/skill:plan2code"
|
"/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": [
|
"ids": [
|
||||||
|
|||||||
@@ -111,11 +111,11 @@ test("loadAgentList: bad JSON and a wrong schema warn and give nothing", (t) =>
|
|||||||
assert.match(wrong.warnings[0], /schema/);
|
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") });
|
const { builtins, templates, warnings } = loadAgentList({ dir: path.join(ROOT, "src", "launcher") });
|
||||||
assert.deepEqual(warnings, []);
|
assert.deepEqual(warnings, []);
|
||||||
assert.deepEqual(builtins.map((a) => a.id), ["claude", "devin", "codex"]);
|
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", () => {
|
test("every shipped template passes normalizeAgents() with no warnings", () => {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"installDirs": {
|
"installDirs": {
|
||||||
"win": ["%USERPROFILE%\\.local\\bin"],
|
"win": ["%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin", "%USERPROFILE%\\.local\\bin"],
|
||||||
"mac": ["~/.local/bin"],
|
"mac": ["~/.local/bin"],
|
||||||
"linux": ["~/.local/bin"]
|
"linux": ["~/.local/bin"]
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
"args": ["{model}", "{prompt}"],
|
"args": ["{model}", "{prompt}"],
|
||||||
"bypassArgs": ["--approval-mode=yolo"],
|
"bypassArgs": ["--approval-mode=yolo"],
|
||||||
"modelArgs": ["--model", "{model}"],
|
"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",
|
"id": "pi",
|
||||||
@@ -127,6 +127,16 @@
|
|||||||
"prompt": "/skill:plan2code",
|
"prompt": "/skill:plan2code",
|
||||||
"args": ["{model}", "{prompt}"],
|
"args": ["{model}", "{prompt}"],
|
||||||
"modelArgs": ["--model", "{model}"]
|
"modelArgs": ["--model", "{model}"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cursor",
|
||||||
|
"name": "Cursor CLI",
|
||||||
|
"kind": "template",
|
||||||
|
"command": "agent",
|
||||||
|
"prompt": "/plan2code",
|
||||||
|
"args": ["{model}", "{prompt}"],
|
||||||
|
"bypassArgs": ["--force"],
|
||||||
|
"modelArgs": ["--model", "{model}"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "best",
|
"id": "best",
|
||||||
"label": "Best, Fable where available, otherwise Opus"
|
"label": "Best, same model as Opus"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"devin": [
|
"devin": [
|
||||||
@@ -140,16 +140,12 @@
|
|||||||
"label": "GPT-6 Astra High Thinking"
|
"label": "GPT-6 Astra High Thinking"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "gpt-5-6-sol-low",
|
"id": "swe-2-flash-medium",
|
||||||
"label": "GPT-5.6 Sol Low Thinking"
|
"label": "SWE-2 Flash Medium"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "gpt-5-6-sol-medium",
|
"id": "swe-2-flash-high",
|
||||||
"label": "GPT-5.6 Sol Medium Thinking"
|
"label": "SWE-2 Flash High"
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "gpt-5-6-sol-high",
|
|
||||||
"label": "GPT-5.6 Sol High Thinking"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codex": [
|
"codex": [
|
||||||
|
|||||||
Reference in new issue
Block a user