-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstart.js
More file actions
68 lines (68 loc) · 1.76 KB
/
Copy pathstart.js
File metadata and controls
68 lines (68 loc) · 1.76 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
module.exports = {
daemon: true,
run: [
{
"method": "modal",
"params": {
"title": "Ollama",
"description": "Launch Ollama before proceeding.",
"menu": [{
"text": "Install Ollama",
"href": "https://ollama.com/"
}]
}
},
{
method: "shell.run",
params: {
env: {
RUST_LOG: "warn"
}, // Edit this to customize environment variables (see documentation)
path: "app", // Edit this to customize the path to start the shell from
message: [
"ollama pull llama3",
],
on: [{
"event": "/Running/",
"done": true
}]
}
},
{
method: "shell.run",
params: {
env: {
RUST_LOG: "warn"
}, // Edit this to customize environment variables (see documentation)
path: "app", // Edit this to customize the path to start the shell from
message: [
"{{platform === 'win32' ? 'convex-local-backend.exe' : './convex-local-backend'}}"
],
on: [{
"event": "/.+/",
"done": true
}]
}
},
{
method: "shell.run",
params: {
message: "npm run dev",
path: "app",
on: [{
"event": "/http:\/\/\\S+ai-town/",
"done": true
}]
}
},
{
// This step sets the local variable 'url'.
// This local variable will be used in pinokio.js to display the "Open WebUI" tab when the value is set.
method: "local.set",
params: {
// the input.event is the regular expression match object from the previous step
url: "{{input.event[0]}}"
}
}
]
}