-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
188 lines (188 loc) · 5.91 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
{
"name": "prompt-ide",
"displayName": "Prompt IDE",
"publisher": "riguz",
"icon": "assets/prompt-ide.png",
"categories": [
"Machine Learning",
"Visualization"
],
"keywords": [
"prompt",
"prompt ide",
"gpt",
"llm",
"prompt engineering"
],
"description": "PromptIDE is a Visual Studio Code extension that streamlines prompt creation and testing for LLM applications using a unified format based on the Prompt Schema.",
"version": "0.0.3",
"engines": {
"vscode": "^1.75.0"
},
"repository": "https://github.com/prompt-native/prompt-ide",
"main": "./out/extension.js",
"contributes": {
"configuration": [
{
"title": "Prompt IDE",
"properties": {
"promptIde.openaiKey": {
"type": "string",
"description": "OpenAI API key"
},
"promptIde.minimaxKey": {
"type": "string",
"description": "Minimax API key"
},
"promptIde.minimaxGroupId": {
"type": "string",
"description": "Minimax groupId"
}
}
}
],
"customEditors": [
{
"viewType": "promptIde.editor",
"displayName": "Prompt Editor",
"selector": [
{
"filenamePattern": "*.prompt.json"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "promptIde.createPrompt",
"title": "Create Prompt",
"icon": "$(plus)"
},
{
"command": "promptIde.refreshPrompts",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "promptIde.editPrompt",
"title": "Edit",
"icon": "$(edit)"
},
{
"command": "promptIde.deletePrompt",
"title": "Delete",
"icon": "$(delete)"
},
{
"command": "promptIde.openText",
"title": "Open Text",
"icon": "$(code)"
},
{
"command": "promptIde.createPrompt",
"title": "Create Prompt",
"icon": "$(plus)"
}
],
"menus": {
"editor/title": [
{
"when": "resourceFilename =~ /\\.prompt\\.json$/",
"command": "promptIde.openText",
"group": "navigation"
}
],
"view/title": [
{
"command": "promptIde.refreshPrompts",
"when": "view == promptIde.explorer",
"group": "navigation"
},
{
"command": "promptIde.createPrompt",
"when": "view == promptIde.explorer"
}
],
"view/item/context": [
{
"command": "promptIde.editPrompt",
"when": "view == promptIde.explorer && viewItem == prompt",
"group": "inline"
},
{
"command": "promptIde.deletePrompt",
"when": "view == promptIde.explorer && viewItem == prompt"
}
]
},
"viewsWelcome": [
{
"view": "promptIde.explorer",
"contents": "No prompt found .\n[Create Prompt](command:promptIde.createPrompt)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "prompt-views",
"title": "Prompt IDE",
"icon": "assets/dep.svg"
}
],
"panel": [
{
"id": "tools-chat",
"title": "Prompt Tools",
"icon": "assets/dep.svg"
}
]
},
"views": {
"prompt-views": [
{
"id": "promptIde.explorer",
"name": "Prompts",
"icon": "assets/dep.svg",
"contextualTitle": "Prompts"
},
{
"id": "package-dependencies",
"name": "Functions",
"contextualTitle": "Functions"
}
],
"tools-chat": [
{
"id": "tools-chat-ai",
"name": "Ask AI",
"contextualTitle": "Ask AI"
}
]
}
},
"scripts": {
"install:all": "npm install && cd webview-ui && npm install",
"install:schema": "cd prompt-schema && npm install",
"start:webview": "cd webview-ui && npm run start",
"build:webview": "cd webview-ui && npm run build",
"build:schema": "cd prompt-schema && npm run build",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/node": "^12.11.7",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"prettier": "^2.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
}
}