110 lines
3 KiB
JSON
110 lines
3 KiB
JSON
{
|
|
"name": "ai-code",
|
|
"displayName": "ai-code",
|
|
"description": "",
|
|
"version": "0.0.1",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.jan-leila.com/jan-leila/ai-code"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.101.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onStartupFinished",
|
|
"onEditSession:file"
|
|
],
|
|
"main": "./dist/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
],
|
|
"configuration": {
|
|
"title": "Ai Code",
|
|
"properties": {
|
|
"aiCode.ollamaHost": {
|
|
"type": "string",
|
|
"description": "host for ollama",
|
|
"default": "http://localhost:11434"
|
|
},
|
|
"aiCode.inlineCompletion.enable": {
|
|
"type": "boolean",
|
|
"description": "should auto complete be enabled",
|
|
"default": true
|
|
},
|
|
"aiCode.inlineCompletion.model": {
|
|
"type": "string",
|
|
"description": "",
|
|
"default": "deepseek-coder:6.7b"
|
|
},
|
|
"aiCode.inlineCompletion.prefixStart": {
|
|
"type": "string",
|
|
"description": "",
|
|
"default": "<prefixStart>"
|
|
},
|
|
"aiCode.inlineCompletion.prefixEnds": {
|
|
"type": "string",
|
|
"description": "",
|
|
"default": "<prefixStart>,</prefixStart>,<prefixEnd>,</prefixEnd>"
|
|
},
|
|
"aiCode.inlineCompletion.suffixStart": {
|
|
"type": "string",
|
|
"description": "",
|
|
"default": "<suffixStart>"
|
|
},
|
|
"aiCode.inlineCompletion.suffixEnd": {
|
|
"type": "string",
|
|
"description": "",
|
|
"default": "</suffixStart>"
|
|
},
|
|
"aiCode.inlineCompletion.maxTokens": {
|
|
"type": "number",
|
|
"description": "",
|
|
"default": 50,
|
|
"minimum": 1
|
|
},
|
|
"aiCode.inlineCompletion.generationTimeout": {
|
|
"type": "number",
|
|
"description": "",
|
|
"default": 200,
|
|
"minimum": 1
|
|
},
|
|
"aiCode.inlineCompletion.triePruneTimeout": {
|
|
"type": "number",
|
|
"description": "",
|
|
"default": 10000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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",
|
|
"test": "vscode-test"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mocha": "^10.0.10",
|
|
"@types/node": "20.x",
|
|
"@types/vscode": "^1.101.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
"@typescript-eslint/parser": "^8.31.1",
|
|
"@vscode/test-cli": "^0.0.11",
|
|
"@vscode/test-electron": "^2.5.2",
|
|
"eslint": "^9.25.1",
|
|
"ts-loader": "^9.5.2",
|
|
"typescript": "^5.8.3",
|
|
"webpack": "^5.99.7",
|
|
"webpack-cli": "^6.0.1"
|
|
},
|
|
"dependencies": {
|
|
"ollama": "^0.5.16"
|
|
}
|
|
}
|