-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpackage.json
255 lines (255 loc) · 6.74 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
247
248
249
250
251
252
253
254
255
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "raycast-ollama",
"title": "Ollama AI",
"description": "Perform Local Inference with Ollama",
"icon": "icon.png",
"author": "massimiliano_pasquini",
"categories": ["Productivity"],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/MassimilianoPasquini97/raycast_ollama.git"
},
"preferences": [
{
"name": "ollamaResultViewInput",
"description": "Choose preferred input source",
"type": "dropdown",
"required": false,
"title": "Input Source",
"data": [
{
"title": "Selected Text",
"value": "SelectedText"
},
{
"title": "Clipboard",
"value": "Clipboard"
}
],
"default": "SelectedText"
},
{
"name": "ollamaResultViewInputFallback",
"description": "If there isn't text on main input source enable this option permit to fallback to other input source",
"type": "checkbox",
"required": false,
"title": "Enable Input Source Fallback",
"label": "Check for enable input fallback"
},
{
"name": "ollamaChatHistoryMessagesNumber",
"description": "Number of last messages to use as memory",
"type": "textfield",
"required": false,
"title": "Chat Memory Messages",
"default": "20"
},
{
"name": "ollamaCertificateValidation",
"description": "Uncheck for Disable Certificate Validation",
"type": "checkbox",
"required": false,
"default": false,
"label": "Certificate Validation Enabled"
}
],
"commands": [
{
"name": "ollama-chat",
"title": "Chat with Ollama",
"subtitle": "Ollama",
"description": "Chat with Ollama",
"mode": "view"
},
{
"name": "ollama-browser-summarize",
"title": "Summarize Website",
"subtitle": "Ollama",
"description": "Summarize content from current Website.",
"mode": "view"
},
{
"name": "ollama-casual",
"title": "Change Tone to Casual",
"subtitle": "Ollama",
"description": "Make selected text more casual",
"mode": "view"
},
{
"name": "ollama-code-explain",
"title": "Explain Code Step by Step",
"subtitle": "Ollama",
"description": "Explain the selected code step by step",
"mode": "view"
},
{
"name": "ollama-confident",
"title": "Change Tone to Confident",
"subtitle": "Ollama",
"description": "Make selected text more confident",
"mode": "view"
},
{
"name": "ollama-explain",
"title": "Explain This in Simple Terms",
"subtitle": "Ollama",
"description": "Explain selected text in simple terms",
"mode": "view"
},
{
"name": "ollama-fix-spelling-grammar",
"title": "Fix Spelling and Grammar",
"subtitle": "Ollama",
"description": "Fix selected text from spelling and grammar error",
"mode": "view"
},
{
"name": "ollama-friendly",
"title": "Change Tone to Friendly",
"subtitle": "Ollama",
"description": "Make selected text more friendly",
"mode": "view"
},
{
"name": "ollama-image-describe",
"title": "Describe Content of Image",
"subtitle": "Ollama",
"description": "Describe content of the image on the clipboard or selected from finder",
"mode": "view"
},
{
"name": "ollama-image-to-text",
"title": "Get Text from Image",
"subtitle": "Ollama",
"description": "Get text from image on the clipboard or selected from finder",
"mode": "view"
},
{
"name": "ollama-improve-writing",
"title": "Improve Writing",
"subtitle": "Ollama",
"description": "Improve writing of selected text",
"mode": "view"
},
{
"name": "ollama-longer",
"title": "Make Longer",
"subtitle": "Ollama",
"description": "Make selected text longer",
"mode": "view"
},
{
"name": "ollama-professional",
"title": "Change Tone to Professional",
"subtitle": "Ollama",
"description": "Make selected text more professional",
"mode": "view"
},
{
"name": "ollama-shorter",
"title": "Make Shorter",
"subtitle": "Ollama",
"description": "Make selected text shorter",
"mode": "view"
},
{
"name": "ollama-translate",
"title": "Translate",
"subtitle": "Ollama",
"description": "Translate selected text",
"mode": "view",
"arguments": [
{
"name": "language",
"placeholder": "To Language",
"type": "text",
"required": true
}
]
},
{
"name": "ollama-tweet",
"title": "Rephrase as Tweet",
"subtitle": "Ollama",
"description": "Rephrase selected text as Tweet",
"mode": "view"
},
{
"name": "ollama-models",
"title": "Manage Models",
"subtitle": "Ollama",
"description": "Manage installed models",
"mode": "view"
},
{
"name": "ollama-ps",
"title": "Loaded Models",
"subtitle": "Ollama",
"description": "Show models loaded on ram",
"mode": "view"
},
{
"name": "ollama-custom-create",
"title": "Create Custom Command",
"subtitle": "Ollama",
"description": "Create a custom command",
"mode": "view"
},
{
"name": "ollama-custom-command",
"title": "Custom Command",
"subtitle": "Ollama",
"description": "Create a custom command using a quicklinks",
"mode": "view",
"arguments": [
{
"name": "prompt",
"placeholder": "Prompt",
"type": "text",
"required": true
},
{
"name": "model",
"placeholder": "Model",
"type": "text",
"required": true
},
{
"name": "parameters",
"placeholder": "Parameters",
"type": "text",
"required": true
}
]
}
],
"dependencies": {
"@langchain/community": "^0.2.0",
"@raycast/api": "^1.55.2",
"@raycast/utils": "^1.9.0",
"file-type": "^19.0.0",
"langchain": "^0.2.0",
"mammoth": "^1.7.2",
"mime-types": "^2.1.35",
"node-fetch": "^3.3.2",
"pdf-parse": "^1.1.1"
},
"devDependencies": {
"@raycast/eslint-config": "1.0.5",
"@types/mime-types": "^2.1.4",
"@types/node": "18.18.4",
"@types/react": "18.2.27",
"eslint": "^7.32.0",
"prettier": "^2.8.8",
"typescript": "^4.4.3"
},
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"publish": "npx @raycast/api@latest publish"
}
}