You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.2 KiB
JSON

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"name": "ai-chat",
"displayName": "AI Chat",
"description": "Open an AI chat webview panel from the status bar",
"version": "0.0.5",
"publisher": "your-publisher",
"main": "./out/extension.js",
"engines": {
"vscode": "^1.60.0"
},
"activationEvents": [
"*",
"onCommand:ai-chat.openWebview",
"onView:ai-chat-sidebar-view"
],
"contributes": {
"configuration": {
"type": "object",
"title": "AI Chat Configuration",
"properties": {
"ai-chat.api.url": {
"type": "string",
"description": "完整的API地址优先级最高"
},
"ai-chat.api.baseUrl": {
"type": "string",
"description": "API基础地址",
"default": "https://p13-ai.ngsk.tech:7001"
},
"ai-chat.api.key": {
"type": "string",
"description": "API密钥",
"default": "dev-token"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "ai-chat",
"title": "AI Chat",
"icon": "media/icon.png"
}
]
},
"views": {
"ai-chat": [
{
"id": "ai-chat-sidebar-view",
"name": "AI Chat",
"type": "webview"
}
]
},
"menus": {
"editor/context": [
{
"command": "extension.addToChat",
"when": "editorHasSelection",
"group": "navigation"
}
]
},
"commands": [
{
"command": "ai-chat.openWebview",
"title": "Open AI Chat"
},
{
"command": "extension.addToChat",
"title": "添加至对话"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -w -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.28.0",
"typescript": "^4.9.4"
},
"dependencies": {
"diff": "^8.0.2",
"highlight.js": "^11.11.1",
"marked": "^16.1.1"
}
}