feat(ai-profiles): add plugin profile SDK and Cline demo (#342)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
63
examples/cline-ai-plugin/idea-plugin.json
Normal file
63
examples/cline-ai-plugin/idea-plugin.json
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"ideaPluginManifestVersion": 1,
|
||||
"id": "idea.cline-demo",
|
||||
"displayName": "Cline AI",
|
||||
"publisher": "IdeA Examples",
|
||||
"version": "0.1.0",
|
||||
"description": "ClineCore over the public IdeA agent-session v1 protocol.",
|
||||
"main": "src/plugin.mjs",
|
||||
"engines": {
|
||||
"idea": ">=0.1.0"
|
||||
},
|
||||
"trustLevel": "full",
|
||||
"contributes": {
|
||||
"agentAdapters": [
|
||||
{
|
||||
"id": "cline-sdk",
|
||||
"displayName": "ClineCore session",
|
||||
"protocol": "idea-agent-session",
|
||||
"protocolVersion": 1,
|
||||
"command": "bin/idea-cline-adapter.mjs",
|
||||
"configSchema": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"model": {
|
||||
"type": "string",
|
||||
"title": "Model"
|
||||
},
|
||||
"endpoint": {
|
||||
"type": "string",
|
||||
"title": "OpenAI-compatible endpoint",
|
||||
"format": "uri"
|
||||
},
|
||||
"apiKey": {
|
||||
"type": "string",
|
||||
"title": "API key (if required by the endpoint)",
|
||||
"format": "secret"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"model",
|
||||
"endpoint"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"aiProfiles": [
|
||||
{
|
||||
"id": "cline-openai",
|
||||
"adapterId": "cline-sdk",
|
||||
"displayName": "Cline coding agent",
|
||||
"profileType": "codingAgent",
|
||||
"providerLabel": "Cline SDK / OpenAI-compatible",
|
||||
"modelField": "model",
|
||||
"description": "ClineCore with host-owned tool callbacks; native file, shell, web and MCP tools disabled.",
|
||||
"configDefaults": {
|
||||
"model": "gpt-4.1-mini",
|
||||
"endpoint": "https://api.openai.com/v1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user