-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
246 lines (246 loc) · 7.35 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "quickgpt",
"title": "QuickGPT",
"description": "quickgpt is a tool to provide prompt for chatgpt.",
"icon": "command-icon.png",
"author": "ddhjy2012",
"categories": [
"Productivity"
],
"license": "MIT",
"commands": [
{
"name": "prompt-lab",
"title": "Prompt Lab",
"description": "运行quickgpt工具,该工具用于为 chatgpt 提供提示词。需要一个视图,并接受三个可选参数:剪贴板文本、选择文本和动作。",
"mode": "view",
"preferences": [
{
"name": "disableDefaultPrompts",
"title": "Default Prompts",
"required": false,
"label": "Turn Off Default Prompts",
"description": "Turn Off default prompts",
"type": "checkbox"
},
{
"name": "customPromptsDirectory",
"title": "Custom Prompts",
"required": false,
"description": "使用自定义提示词目录",
"type": "directory"
},
{
"name": "customPromptsDirectory2",
"title": "Custom Prompts 2",
"required": false,
"description": "使用第二个自定义提示词目录",
"type": "directory"
},
{
"name": "customPromptsDirectory3",
"title": "Custom Prompts 3",
"required": false,
"description": "使用第三个自定义提示词目录",
"type": "directory"
},
{
"name": "primaryAction",
"title": "Actions",
"required": false,
"description": "设置优先执行的操作,多个操作用逗号分隔。例如: ChatGPT, Copy, Paste, Cerebras",
"type": "textfield"
},
{
"name": "aiConfigPath",
"title": "API Provider",
"description": "The API provider to use for AI services",
"type": "file",
"required": false
},
{
"name": "scriptsDirectory",
"title": "Scripts Directory",
"required": false,
"description": "存放 AppleScript 脚本的目录。目录下所有的 .applescript 和 .scpt 文件都会被加载为可执行脚本。",
"type": "directory"
}
]
},
{
"name": "recognize-text",
"title": "Recognize Text",
"description": "Detect all text from the captured screen area",
"mode": "no-view",
"preferences": [
{
"name": "primaryLanguage",
"title": "Primary Language",
"description": "Primary language for text recognition",
"type": "dropdown",
"required": true,
"data": [
{
"title": "🇺🇸 English (US)",
"value": "en-US"
},
{
"title": "🇫🇷 French (France)",
"value": "fr-FR"
},
{
"title": "🇮🇹 Italian (Italy)",
"value": "it-IT"
},
{
"title": "🇩🇪 German (Germany)",
"value": "de-DE"
},
{
"title": "🇪🇸 Spanish (Spain)",
"value": "es-ES"
},
{
"title": "🇧🇷 Portuguese (Brazil)",
"value": "pt-BR"
},
{
"title": "🇨🇳 Chinese (Simplified)",
"value": "zh-Hans"
},
{
"title": "🇹🇼 Chinese (Traditional)",
"value": "zh-Hant"
},
{
"title": "🇨🇳 Cantonese (Simplified)",
"value": "yue-Hans"
},
{
"title": "🇭🇰 Cantonese (Traditional)",
"value": "yue-Hant"
},
{
"title": "🇰🇷 Korean (South Korea)",
"value": "ko-KR"
},
{
"title": "🇯🇵 Japanese (Japan)",
"value": "ja-JP"
},
{
"title": "🇷🇺 Russian (Russia)",
"value": "ru-RU"
},
{
"title": "🇺🇦 Ukrainian (Ukraine)",
"value": "uk-UA"
},
{
"title": "🇹🇭 Thai (Thailand)",
"value": "th-TH"
},
{
"title": "🇻🇳 Vietnamese (Vietnam)",
"value": "vi-VT"
}
]
},
{
"name": "ocrMode",
"title": "Recognition Level",
"description": "Affects performance and accuracy of the text recognition",
"type": "dropdown",
"required": true,
"data": [
{
"title": "Accurate",
"value": "accurate"
},
{
"title": "Fast",
"value": "fast"
}
]
},
{
"name": "languageCorrection",
"title": "Options",
"description": "Disabling this property returns the raw recognition results, which provides performance benefits but less accurate results",
"type": "checkbox",
"required": true,
"label": "Use language correction",
"default": true
},
{
"name": "ignoreLineBreaks",
"description": "Ignores Line Breaks",
"type": "checkbox",
"required": false,
"label": "Ignore line breaks",
"default": false
},
{
"name": "keepImage",
"description": "Keep the image in the clipboard after text recognition",
"type": "checkbox",
"required": true,
"label": "Keep image in clipboard",
"default": false
},
{
"name": "customWordsList",
"title": "Custom Words List",
"description": "You can improve text recognition by providing a list of words that are special to your text",
"type": "textfield",
"required": false,
"label": "Custom Words List"
}
]
}
],
"dependencies": {
"@cerebras/cerebras_cloud_sdk": "^1.8.0",
"@eslint/config-array": "^0.18.0",
"@eslint/object-schema": "^2.1.4",
"@raycast/api": "^1.82.5",
"@raycast/utils": "^1.16.3",
"@types/hjson": "^2.4.6",
"glob": "^11.0.0",
"hjson": "^3.2.2",
"lru-cache": "^11.0.1",
"markdown-it": "^14.1.0",
"md5": "^2.3.0",
"pinyin-pro": "^3.16.3",
"rimraf": "^6.0.1",
"token.js": "^0.4.7"
},
"devDependencies": {
"@raycast/eslint-config": "^1.0.8",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.13",
"@types/markdown-it": "^14.1.2",
"@types/md5": "^2.3.4",
"@types/node": "20.8.10",
"@types/node-fetch": "^2.6.12",
"@types/react": "18.3.3",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typescript": "^5.4.5"
},
"scripts": {
"build": "ray build -e dist -o dist",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"publish": "npx @raycast/api@latest publish",
"format": "prettier --write .",
"test": "jest",
"test:watch": "jest --watch"
}
}