Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 2.27 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "ai-code-tutor",
"displayName": "AI Code Tutor",
"description": "An animated AI programming tutor that explains code in-place, starting with VS Code.",
"version": "0.0.1",
"publisher": "local-dev",
"license": "MIT",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Education",
"Other"
],
"activationEvents": [
"onCommand:aiCodeTutor.explainSelection",
"onCommand:aiCodeTutor.setOpenAiApiKey",
"onCommand:aiCodeTutor.clearOpenAiApiKey"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "aiCodeTutor.explainSelection",
"title": "AI Code Tutor: 解释选中代码"
},
{
"command": "aiCodeTutor.setOpenAiApiKey",
"title": "AI Code Tutor: 设置 OpenAI API Key"
},
{
"command": "aiCodeTutor.clearOpenAiApiKey",
"title": "AI Code Tutor: 清除 OpenAI API Key"
}
],
"menus": {
"editor/context": [
{
"command": "aiCodeTutor.explainSelection",
"when": "editorTextFocus",
"group": "navigation@100"
}
]
},
"configuration": {
"title": "AI Code Tutor",
"properties": {
"aiCodeTutor.provider": {
"type": "string",
"enum": [
"openai",
"local"
],
"enumDescriptions": [
"调用 OpenAI Responses API 生成真实代码讲解",
"不联网,使用 V0.1 固定演示讲解"
],
"default": "openai",
"description": "选择 AI Code Tutor 使用的讲解提供商。"
},
"aiCodeTutor.openAI.model": {
"type": "string",
"default": "gpt-5.6",
"description": "OpenAI Responses API 使用的模型名称。"
},
"aiCodeTutor.openAI.timeoutSeconds": {
"type": "number",
"default": 45,
"minimum": 5,
"maximum": 120,
"description": "等待 AI 代码讲解的最长时间(秒)。"
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"vscode:prepublish": "npm run compile"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/vscode": "^1.90.0",
"typescript": "^5.8.0"
}
}