-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
146 lines (146 loc) · 5.23 KB
/
package.json
File metadata and controls
146 lines (146 loc) · 5.23 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
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
{
"name": "codegenlink",
"displayName": "CodeGenLink",
"description": "This is a copilot extension that allows you to create two chat participants to get information about the source of the generated/selected code.",
"version": "0.0.1",
"publisher": "CodeGenLink",
"license": "Apache-2.0",
"repository": {
"type": "github",
"url": "https://github.com/danielebifolco/codegenlink"
},
"icon": "icon.png",
"engines": {
"vscode": "^1.97.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"extensionDependencies": [
"github.copilot-chat"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "CodeGenLink.sendSelectedCode",
"title": "Send Selected Code to CodeGenLink"
},
{
"command": "CodeGenLink.openResults",
"title": "Open Results"
}
],
"menus": {
"editor/context": [
{
"command": "CodeGenLink.sendSelectedCode",
"when": "editorHasSelection",
"group": "copilot-menu-group@1"
}
]
},
"chatParticipants": [
{
"id": "vscode-CodeGenLink",
"name": "CodeGenLink",
"description": "Choose the model and ask to generate the code to start the analysis"
},
{
"id": "vscode-LinkSearcher",
"name": "LinkSearcher",
"description": "Select the code and send it to request information about the origin"
}
],
"configuration": {
"title": "CodeGenLink Settings",
"properties": {
"CodeGenLink.AI model": {
"type": "string",
"default": "gpt-4o",
"markdownDescription": "Specify the name of the OpenAI model to use (e.g., `gpt-4o`, `gpt-4.1`). Refer to the [OpenAI documentation](https://platform.openai.com/docs/models) for supported models and the `web_search_preview` tool."
},
"CodeGenLink.APIKey": {
"type": "string",
"default": "",
"description": "Enter your OpenAI API key to allow the extension to communicate with OpenAI model."
},
"CodeGenLink.temperature": {
"type": "number",
"default": 1,
"minimum": 0,
"maximum": 2,
"description": "Enter the temperature value for the OpenAI model. Higher values produce more creative outputs, while lower values make the output more deterministic."
},
"CodeGenLink.minLines": {
"type": "number",
"default": 5,
"minimum": 1,
"description": "Specifies the minimum number of code lines required for snippets extracted from web pages to be included in the analysis. Snippets with fewer lines will be excluded."
},
"CodeGenLink.cloneRatioThreshold": {
"type": "number",
"default": 60,
"minimum": 0,
"description": "Specifies the Clone Ratio threshold beyond which to include code snippets from a given link in the final result."
},
"CodeGenLink.cosineSimilarityThreshold": {
"type": "number",
"default": 0.6,
"minimum": 0,
"description": "Specifies the cosine similarity threshold beyond which to include code snippets from a given link in the final result."
},
"CodeGenLink.CCFinderSWPath": {
"type": "string",
"default": "",
"description": "Specifies the path to the CCFinderSW executable, which is required for code clone detection. Ensure that the path points to the CCFinderSW executable file on your system."
},
"CodeGenLink.outputDir": {
"type": "string",
"default": "",
"description": "Specifies the path to the directory that will contain the analysis results. This directory will include subdirectories such as 'tmp', 'cloneDetection', 'snippetExtractor', and 'tokens', which will store final results and/or intermediate results used for subsequent stages of the analysis."
},
"CodeGenLink.minTokenLength": {
"type": "string",
"default": "20",
"description": "Specifies the minimum length of token sequences that CCFinderSW will recognize as potential code clones."
},
"CodeGenLink.licenseclassifierPath": {
"type": "string",
"default": "",
"description": "Specifies the path to the directory that contains the 'identify_license.go' file to classify the license."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "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.97.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.19.0",
"typescript": "^5.7.3"
},
"dependencies": {
"axios": "^1.9.0",
"cheerio": "^1.0.0",
"compute-cosine-similarity": "^1.1.0",
"json2csv": "^6.0.0-alpha.2",
"openai": "^4.92.1",
"papaparse": "^5.5.2",
"puppeteer": "^24.2.1",
"undici": "^7.10.0"
}
}