-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
99 lines (99 loc) · 3.32 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
{
"name": "podlite",
"displayName": "Podlite",
"description": "Podlite AI-Assisted Documentation Plugin for VSCode",
"version": "0.0.2",
"engines": {
"vscode": "^1.86.0"
},
"author": {
"name": "Aliaksandr Zahatski",
"email": "[email protected]"
},
"icon": "podlite_logo_256x256.png",
"repository": {
"type": "git",
"url": "https://github.com/zag/podlite-vscode.git"
},
"categories": [
"Programming Languages",
"Snippets"
],
"publisher": "podlite",
"license": "MIT",
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "podlite.ai.createDoc",
"title": "Podlite ✨: Create Doc"
},
{
"command": "podlite.openSettings",
"title": "Podlite: open settings"
}
],
"configuration": {
"title": "Podlite - documenting your code with AI",
"properties": {
"podlite.ai.openAI.apiKey": {
"type": "string",
"default": "",
"description": "OpenAI API Key (Default: '')",
"title": "API Key",
"patternErrorMessage": "Invalid API Key format. Please enter a valid API Key.",
"markdownDescription": "API Key is required to authenticate and access the [OpenAI Platform](https://platform.openai.com/account/api-keys)."
},
"podlite.ai.openAI.engine": {
"type": "string",
"default": "gpt-4-turbo-preview",
"description": "AI Model (Default: 'gpt-3.5-turbo-1106')",
"title": "AI Model",
"enum": [
"text-embedding-3-small",
"gpt-4-turbo-preview",
"gpt-3.5-turbo-1106"
],
"markdownDescription": "The AI Model determines the behavior and capabilities of the language model."
},
"podlite.ai.openAI.docPrompt": {
"type": "string",
"default": "Generate documentation for the following {lang} function {functionText}. Do not add any other strings beside the function and its documentation. Include data about the params and the return, and also a description about the function, do not include examples.{note}",
"description": "Use the following keys to customize the prompt: {lang} - lang of sources , {functionText} - selected text, {note} - additional notes"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn 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": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"clean": "rimraf dist",
"format": "npx prettier --write '**/*.{js,jsx,ts,tsx,json,md,mjs}'"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.86.0",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.56.0",
"rimraf": "^5.0.5",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"openai": "^4.28.4"
}
}