-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
235 lines (235 loc) · 9.45 KB
/
package.json
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"name": "markdown-copilot",
"displayName": "Markdown Copilot",
"description": "%extension.description%",
"icon": "images/icon-128x128.png",
"version": "0.5.1",
"publisher": "kurusugawa-computer",
"license": "MIT",
"bugs": {
"url": "https://github.com/kurusugawa-computer/markdown-copilot-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/kurusugawa-computer/markdown-copilot-vscode"
},
"engines": {
"vscode": "^1.91.0"
},
"categories": [
"Programming Languages",
"Machine Learning",
"Education",
"Other"
],
"keywords": [
"markdown"
],
"activationEvents": [
"onLanguage:markdown"
],
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "markdown.copilot.editing.nameAndSaveAs",
"title": "%command.editing.nameAndSaveAs.title%",
"icon": "$(milestone)",
"enablement": "true"
},
{
"command": "markdown.copilot.editing.titleActiveContext",
"title": "%command.editing.titleActiveContext.title%",
"icon": "$(milestone)",
"enablement": "editorLangId == markdown"
},
{
"command": "markdown.copilot.editing.continueInContext",
"title": "%command.editing.continueInContext.title%",
"icon": "$(comment-discussion)",
"enablement": "editorLangId == markdown && editorHasSelection"
},
{
"command": "markdown.copilot.editing.continueWithoutContext",
"title": "%command.editing.continueWithoutContext.title%",
"icon": "$(comment-discussion)",
"enablement": "editorLangId == markdown && editorHasSelection"
},
{
"command": "markdown.copilot.editing.indentQuote",
"title": "%command.editing.indentQuote.title%",
"icon": "$(arrow-small-right)",
"enablement": "editorLangId == markdown && editorHasSelection"
},
{
"command": "markdown.copilot.editing.outdentQuote",
"title": "%command.editing.outdentQuote.title%",
"icon": "$(arrow-small-left)",
"enablement": "editorLangId == markdown && editorHasSelection"
},
{
"command": "markdown.copilot.editing.applyFilePathDiff",
"title": "%command.editing.applyFilePathDiff.title%",
"icon": "$(comment-discussion)",
"enablement": "editorLangId == markdown && editorHasSelection"
},
{
"command": "markdown.copilot.editing.listFilePathDiff",
"title": "%command.editing.listFilePathDiff.title%",
"icon": "$(comment-discussion)",
"enablement": "explorerResourceIsFolder && editorIsOpen"
},
{
"command": "markdown.copilot.editing.pasteAsMarkdown",
"title": "%command.editing.pasteAsMarkdown.title%",
"icon": "$(clippy)",
"enablement": "editorLangId == markdown && editorIsOpen"
}
],
"menus": {
"explorer/context": [
{
"when": "explorerResourceIsFolder",
"command": "markdown.copilot.editing.listFilePathDiff"
}
]
},
"configuration": {
"title": "Markdown Copilot",
"properties": {
"markdown.copilot.decorations.inactiveContextOpacity": {
"type": "number",
"default": 0.5,
"minimum": 0,
"maximum": 1,
"markdownDescription": "%config.decorations.inactiveContextOpacity.description%"
},
"markdown.copilot.instructions.nameMessage": {
"type": "string",
"default": "Provide a filename that summarizes the main topic of given content, using the same language as the content. The filename must be concise, not contain any invalid filename characters, not contain any extensions, only return the filename in JSON with the following format `{\"filepath\":\"${namePathFormat}\"}`.",
"editPresentation": "multilineText",
"markdownDescription": "%config.instructions.nameMessage.description%"
},
"markdown.copilot.instructions.namePathFormat": {
"type": "string",
"default": "memo/${date:yyyy-MM-dd}/${filename}.md",
"markdownDescription": "%config.instructions.namePathFormat.description%"
},
"markdown.copilot.instructions.pasteAsMarkdownMessage": {
"type": "string",
"default": "Convert the following text to Markdown. Follow these rules:\n- Output only Markdown content without quotes and explanations.\n- Preserve all content; no summaries or omissions.\n- Use relative URLs for internal links.\n- Use structured formats (code, JSON, tables, logical operators, math) for clarity.\n- Use VSCode Markdown syntax.\n- Enclose code in ` ` ` or `~~~` only when needed.\n- Use `$...$` for inline math, `$$...$$` for block math.",
"editPresentation": "multilineText",
"markdownDescription": "%config.instructions.pasteAsMarkdownMessage.description%"
},
"markdown.copilot.instructions.systemMessage": {
"type": "string",
"default": "You are Markdown Copilot, an expert assistant dedicated to helping the user solve tasks by:\n- Providing clear and concise responses to questions and requests.\n- Offering step-by-step instructions with examples for complex concepts or procedures.\n- Engaging interactively, seeking feedback to questions, and tailoring support to user needs.\n- Utilizing structured formats such as code, pseudocode, JSON, Markdown tables, logical operators, or mathematical expressions to reduce ambiguity and improve clarity.\n- Utilizing VSCode Markdown syntax for enhanced readability.\n- Enclosing code snippets in ` ` ` and blocks in ` ``` ` or `~~~` but only use when necessary.\n- Enclosing inline mathematical expressions in single dollar signs `$...$`, and block expressions in double dollar signs `$$...$$`.",
"editPresentation": "multilineText",
"markdownDescription": "%config.instructions.systemMessage.description%"
},
"markdown.copilot.instructions.titleMessage": {
"type": "string",
"default": "Provide a title that summarizes the main topic of the conversation up to this point, using the same language as the conversation. The title should be concise, complete in one line, and outputted without any quotes or additional explanations.",
"editPresentation": "multilineText",
"markdownDescription": "%config.instructions.titleMessage.description%"
},
"markdown.copilot.openAI.apiKey": {
"type": "string",
"default": "",
"markdownDescription": "%config.openAI.apiKey.description%"
},
"markdown.copilot.openAI.azureBaseUrl": {
"type": "string",
"default": "",
"markdownDescription": "%config.openAI.azureBaseUrl.description%"
},
"markdown.copilot.openAI.model": {
"type": "string",
"enum": [
"gpt-4o",
"gpt-4o-2024-11-20",
"gpt-4o-2024-08-06",
"gpt-4o-2024-05-13",
"gpt-4o-mini",
"gpt-4o-mini-2024-07-18",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
"gpt-4-turbo-preview",
"gpt-4-0125-preview",
"gpt-4-1106-preview",
"gpt-4",
"gpt-4-0613",
"gpt-3.5-turbo",
"gpt-3.5-turbo-0125",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0613"
],
"default": "gpt-4o",
"markdownDescription": "%config.openAI.model.description%"
},
"markdown.copilot.options.temperature": {
"type": "number",
"default": 0.1,
"minimum": 0,
"maximum": 1,
"markdownDescription": "%config.options.temperature.description%"
}
}
},
"keybindings": [
{
"command": "markdown.copilot.editing.indentQuote",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorTextFocus && editorLangId == markdown && !suggestWidgetVisible"
},
{
"command": "markdown.copilot.editing.outdentQuote",
"key": "ctrl+alt+shift+l",
"mac": "cmd+alt+shift+l",
"when": "editorTextFocus && editorLangId == markdown && !suggestWidgetVisible"
}
]
},
"capabilities": {
"virtualWorkspaces": {
"supported": "limited",
"description": "In virtual workspaces, some features may not work well."
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src/**/*.ts",
"test": "vscode-test",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.91.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"eslint": "^9.16.0",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@types/mime-types": "^2.1.4",
"@vscode/l10n": "^0.0.18",
"mime-types": "^2.1.35",
"openai": "^4.76.1"
}
}