-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
121 lines (121 loc) · 4.8 KB
/
package.json
File metadata and controls
121 lines (121 loc) · 4.8 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
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
{
"name": "lm-writing-tool",
"displayName": "LLM Writing Tool",
"description": "LLM-powered writing tool for VSCode. Checks your grammer using Ollama or Github Copilot.",
"version": "0.1.9",
"engines": {
"vscode": "^1.102.0",
"node": ">=20.0.0"
},
"publisher": "OlePetersen",
"categories": [
"Linters",
"AI"
],
"activationEvents": [
"onLanguage:markdown",
"onLanguage:latex",
"onLanguage:typst",
"onLanguage:plaintext"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "lm-writing-tool.startTextCheckCurrentDocument",
"title": "LLM writing tool: Start Text Check for Current Document"
},
{
"command": "lm-writing-tool.stopTextCheckCurrentDocument",
"title": "LLM writing tool: Stop Text Check for Current Document"
},
{
"command": "lm-writing-tool.toggleTextCheck",
"title": "LLM writing tool: Toggle Text Check for Current Document"
},
{
"command": "lm-writing-tool.rewriteSelection",
"title": "LLM writing tool: Rewrite current selection"
},
{
"command": "lm-writing-tool.getSynonyms",
"title": "LLM writing tool: Get synonyms for selection"
},
{
"command": "lm-writing-tool.selectModel",
"title": "LLM writing tool: Select model"
},
{
"command": "lm-writing-tool.resetPrompts",
"title": "LLM writing tool: Reset prompts to defaults"
},
{
"command": "lm-writing-tool.resetSettings",
"title": "LLM writing tool: Reset all settings to defaults"
}
],
"configuration": {
"title": "LLM Writing Tool",
"properties": {
"lmWritingTool.prompts.proofreading": {
"type": "string",
"default": "Proofread the following message in American English. If it is gramatically correct, just respond with the word \"Correct\". If it is gramatically incorrect or has spelling mistakes, respond with \"Correction: \", followed by the corrected version. If you make a correction, write the whole corrected text, not just the segments with corrections. Do not add additional text or explanations. Do not change special commands, code, escape characters, or mathematical formulas. Only correct grammatical issues, do not change the content:\n{text}",
"description": "System prompt for proofreading text. Use {text} as a placeholder for the text to be proofread."
},
"lmWritingTool.prompts.rewrite": {
"type": "string",
"default": "Rewrite the following text for clarity in American English. Do not change special commands, code, escape characters, or mathematical formulas. Respond just with the rewritten version of the text, no extra explanation:\n{text}",
"description": "System prompt for rewriting text. Use {text} as a placeholder for the text to be rewritten."
},
"lmWritingTool.prompts.synonyms": {
"type": "string",
"default": "Give up to 5 synonyms for the expression \"{expression}\". Just respond with the synonyms, separated by newlines. No extra explanation or context needed.",
"description": "System prompt for finding synonyms. Use {expression} as a placeholder for the expression to find synonyms for."
},
"lmWritingTool.ollama.model": {
"type": "string",
"default": "llama3.2:3b",
"description": "The Ollama model to use for text processing. Make sure the model is available on your local Ollama server."
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "yarn run check-types && yarn run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "yarn run check-types && yarn run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/diff": "7.0.2",
"@types/mocha": "^10.0.10",
"@types/node": "24.0.14",
"@types/vscode": "1.102.0",
"@typescript-eslint/eslint-plugin": "8.37.0",
"@typescript-eslint/parser": "8.37.0",
"@vscode/test-cli": "0.0.11",
"@vscode/test-electron": "2.5.2",
"esbuild": "0.25.6",
"eslint": "9.31.0",
"npm-run-all": "^4.1.5",
"typescript": "5.8.3"
},
"dependencies": {
"diff": "8.0.2",
"ollama": "0.5.16"
},
"repository": {
"type": "git",
"url": "https://github.com/peteole/lm-writing-tool"
},
"icon": "resources/logo.png",
"license": "MIT"
}