-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
236 lines (192 loc) · 6.53 KB
/
.mise.toml
File metadata and controls
236 lines (192 loc) · 6.53 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
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
[tools]
action-validator = "latest"
"cargo:taplo-cli" = "latest"
"cargo:wasm-pack" = "latest"
"chromedriver" = "146"
cmake = "latest"
codex = "latest"
dprint = "latest"
editorconfig-checker = "latest"
gemini-cli = "latest"
"github:block/goose" = "latest"
"github:wasm-bindgen/wasm-bindgen" = "0.2.114"
ollama = "latest"
osv-scanner = "latest"
pipx = "latest"
"pipx:cmake" = "latest"
protoc = "latest"
rclone = "latest"
ruff = "latest"
rust = { version = "latest", components = "clippy" }
typos = "latest"
uv = "latest"
[tasks]
editorconfig-check = "ec"
ruff-check = "ruff check services/ws-modules/"
ruff-fmt = "ruff format services/ws-modules/"
[tasks.dprint-check]
run = "dprint check"
[tasks.dprint-check.env]
DPRINT_CACHE_DIR = "/tmp/dprint-cache"
[tasks.dprint-fmt]
run = "dprint fmt"
[tasks.fmt]
depends = ["cargo-clippy-fix", "cargo-fmt", "dprint-fmt", "ruff-fmt", "taplo-fmt"]
description = "Run repository formatters"
[tasks.install-nightly]
run = "cargo +nightly fmt --version >/dev/null 2>&1 || rustup toolchain install nightly --component rustfmt"
[tasks.check]
depends = [
"cargo-check",
"cargo-clippy",
"cargo-fmt-check",
"dprint-check",
"editorconfig-check",
"osv-scanner",
"ruff-check",
"taplo-check",
"typos",
]
description = "Run repository checks"
[tasks.cargo-check]
run = "cargo check --workspace"
[tasks.cargo-fmt]
depends = ["install-nightly"]
run = "cargo +nightly fmt"
[tasks.cargo-fmt-check]
depends = ["install-nightly"]
run = "cargo +nightly fmt -- --check"
[tasks.cargo-clippy]
run = "cargo clippy --workspace"
[tasks.cargo-clippy-fix]
run = "cargo clippy --fix --allow-dirty --allow-staged --workspace"
[tasks.taplo-fmt]
run = "taplo format"
[tasks.taplo-check]
run = "taplo lint"
[tasks.typos]
run = "typos"
[tasks.osv-scanner]
depends = ["cargo-check"]
run = "osv-scanner --lockfile Cargo.lock"
[tasks.ws-server]
description = "Run the WebSocket server"
dir = "services/ws-server"
run = "cargo run"
[tasks.ws-server.env]
OTLP_AUTH_PASSWORD = "1234"
OTLP_AUTH_USERNAME = "root@example.com"
[tasks.build-ws-wasm-agent]
description = "Build the WebSocket WASM client"
dir = "services/ws-wasm-agent"
run = "wasm-pack build . --target web -- -Z build-std=std,panic_abort"
[tasks.build-ws-wasm-agent.env]
RUSTFLAGS = "-C target-cpu=mvp -C target-feature=+mutable-globals,+sign-ext,+nontrapping-fptoint"
RUSTUP_TOOLCHAIN = "nightly"
[tasks.build-ws-data1-module]
description = "Build the data1 workflow WASM module"
dir = "services/ws-modules/data1"
run = "wasm-pack build . --target web"
[tasks.build-ws-har1-module]
description = "Build the har1 workflow WASM module"
dir = "services/ws-modules/har1"
run = "wasm-pack build . --target web"
[tasks.build-ws-face-detection-module]
description = "Build the face detection workflow WASM module"
dir = "services/ws-modules/face-detection"
run = "wasm-pack build . --target web"
[tasks.build-ws-comm1-module]
description = "Build the comm1 workflow WASM module"
dir = "services/ws-modules/comm1"
run = "wasm-pack build . --target web"
[tasks.build-ws-sensor1-module]
description = "Build the sensor1 workflow WASM module"
dir = "services/ws-modules/sensor1"
run = "wasm-pack build . --target web"
[tasks.build-ws-audio1-module]
description = "Build the audio1 workflow WASM module"
dir = "services/ws-modules/audio1"
run = "wasm-pack build . --target web"
[tasks.build-ws-video1-module]
description = "Build the video1 workflow WASM module"
dir = "services/ws-modules/video1"
run = "wasm-pack build . --target web"
[tasks.build-ws-bluetooth-module]
description = "Build the bluetooth workflow WASM module"
dir = "services/ws-modules/bluetooth"
run = "wasm-pack build . --target web"
[tasks.build-ws-geolocation-module]
description = "Build the geolocation workflow WASM module"
dir = "services/ws-modules/geolocation"
run = "wasm-pack build . --target web"
[tasks.build-ws-graphics-info-module]
description = "Build the graphics info workflow WASM module"
dir = "services/ws-modules/graphics-info"
run = "wasm-pack build . --target web"
[tasks.build-ws-speech-recognition-module]
description = "Build the speech recognition workflow WASM module"
dir = "services/ws-modules/speech-recognition"
run = "wasm-pack build . --target web"
[tasks.build-ws-nfc-module]
description = "Build the nfc workflow WASM module"
dir = "services/ws-modules/nfc"
run = "wasm-pack build . --target web"
[tasks.build-ws-pydata1-module]
description = "Build the pydata1 Python workflow module"
dir = "services/ws-modules/pydata1"
run = """
uv build --wheel --out-dir pkg
cargo run -p pyproject-to-package-json
"""
[tasks.build-modules]
depends = [
"build-ws-audio1-module",
"build-ws-bluetooth-module",
"build-ws-comm1-module",
"build-ws-data1-module",
"build-ws-face-detection-module",
"build-ws-geolocation-module",
"build-ws-graphics-info-module",
"build-ws-har1-module",
"build-ws-nfc-module",
"build-ws-pydata1-module",
"build-ws-sensor1-module",
"build-ws-speech-recognition-module",
"build-ws-video1-module",
"build-ws-wasm-agent",
]
description = "Build all WebAssembly modules"
[tasks.test-ws-wasm-agent-firefox]
description = "Run headless Firefox tests for the WebSocket WASM client"
dir = "services/ws-wasm-agent"
run = "wasm-pack test --headless --firefox"
[tasks.ws-e2e-firefox]
depends = ["test-ws-wasm-agent-firefox", "ws-server"]
description = "Run both the ws-server and ws-wasm-agent using Firefox"
[tasks.test-ws-wasm-agent-chrome]
description = "Run headless Chrome tests for the WebSocket WASM client"
dir = "services/ws-wasm-agent"
run = "env CHROMEDRIVER=\"$(mise where chromedriver)/bin/chromedriver\" wasm-pack test --headless --chrome"
[tasks.ws-e2e-chrome]
depends = ["test-ws-wasm-agent-chrome", "ws-server"]
description = "Run both the ws-server and ws-wasm-agent using Chrome"
[tasks.openobserve]
alias = "o2"
run = "docker run --rm -it --name openobserve -p 5080:5080 --env-file config/o2.env openobserve/openobserve:v0.70.3"
[tasks.demo]
depends = ["openobserve", "ws-server"]
[tasks.open-o2]
run = "open http://localhost:5080/"
[tasks.fetch-face1-rclone]
run = """
rclone copyto :http:amd/retinaface/blob/main/weights/RetinaFace_int.onnx \
services/ws-server/static/models/video_cv.onnx --http-url https://huggingface.co --progress
"""
[tasks.fetch-har-motion1-rclone]
run = """
rclone copyto \
:http:acd17sk/MET-Metabolic-Equivalent-of-Task-AI-Android-APP/raw/refs/heads/main/Models/onnx/hybrid_met.onnx \
services/ws-server/static/models/har-motion1.onnx --http-url https://github.com --progress
"""
[tasks.download-models]
depends = ["fetch-face1-rclone", "fetch-har-motion1-rclone"]