@r_masseater/masseater-utils 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +46 -40
  2. package/dist/browser-test/vite.mjs +1 -29
  3. package/dist/browser-test-vite-DS3fTcyM.mjs +29 -0
  4. package/dist/browser-test-vite-DS3fTcyM.mjs.map +1 -0
  5. package/dist/button-980Op0uF.mjs +30 -0
  6. package/dist/button-980Op0uF.mjs.map +1 -0
  7. package/dist/desktop-shell/media-notes/protocol.d.mts +2 -0
  8. package/dist/desktop-shell/media-notes/protocol.mjs +1 -0
  9. package/dist/desktop-shell/media-notes.d.mts +125 -0
  10. package/dist/desktop-shell/media-notes.mjs +865 -0
  11. package/dist/desktop-shell/media-notes.mjs.map +1 -0
  12. package/dist/desktop-shell/release-cli.d.mts +1 -0
  13. package/dist/desktop-shell/release-cli.mjs +290 -0
  14. package/dist/desktop-shell/release-cli.mjs.map +1 -0
  15. package/dist/desktop-shell/telemetry.d.mts +5 -0
  16. package/dist/desktop-shell/telemetry.mjs +55 -0
  17. package/dist/desktop-shell/telemetry.mjs.map +1 -0
  18. package/dist/desktop-shell/vite.d.mts +24 -0
  19. package/dist/desktop-shell/vite.mjs +58 -0
  20. package/dist/desktop-shell/vite.mjs.map +1 -0
  21. package/dist/index-BtcxUsGh.d.mts +4 -0
  22. package/dist/index-CjUS4pmA.d.mts +59 -0
  23. package/dist/lapse.mjs +1 -1
  24. package/dist/media-protocol-CMyatw7A.mjs +32 -0
  25. package/dist/media-protocol-CMyatw7A.mjs.map +1 -0
  26. package/dist/node-main-Bwril94o.mjs +19 -0
  27. package/dist/node-main-Bwril94o.mjs.map +1 -0
  28. package/dist/node-main.mjs +1 -18
  29. package/dist/plugin-kit.mjs +22 -22
  30. package/dist/plugin-kit.mjs.map +1 -1
  31. package/dist/security-headers.d.mts +2 -1
  32. package/dist/ui/button.d.mts +1 -1
  33. package/dist/ui/button.mjs +1 -30
  34. package/dist/ui/next-page-trigger.mjs +1 -1
  35. package/dist/ui/page-footer.d.mts +1 -1
  36. package/dist/ui/page-header.d.mts +1 -1
  37. package/dist/ui/table.d.mts +1 -1
  38. package/dist/ui/web-analytics.d.mts +1 -0
  39. package/dist/vitest-otlp/workers.mjs +1 -1
  40. package/dist/workers-tracing/alchemy.d.mts +1 -1
  41. package/package.json +125 -56
  42. package/skills/build-tauri-app/SKILL.md +56 -0
  43. package/dist/browser-test/vite.mjs.map +0 -1
  44. package/dist/node-main.mjs.map +0 -1
  45. package/dist/ui/button.mjs.map +0 -1
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@r_masseater/masseater-utils",
3
- "version": "0.8.2",
4
- "description": "The small shared libraries of masseater's repositories as subpaths of one package: a chip row for React, Claude Code plugin helpers, Effect entry points for Node.js and GitHub Actions, file import mapping, Node package readers, OTLP assertions for Vitest and Cloudflare Workers tracing.",
3
+ "version": "0.9.0",
4
+ "description": "The small shared libraries of masseater's repositories as subpaths of one package: a chip row for React, Claude Code plugin helpers, Effect entry points for Node.js and GitHub Actions, file import mapping, Node package readers, OTLP assertions for Vitest and Cloudflare Workers tracing, and what the Tauri desktop apps share: OpenTelemetry for the screens, Vite settings, the media-notes screens and the release commands.",
5
5
  "keywords": [
6
6
  "actions",
7
7
  "claude-code",
8
8
  "cloudflare-workers",
9
+ "desktop",
9
10
  "effect",
10
11
  "elysia",
11
12
  "github-actions",
@@ -16,8 +17,10 @@
16
17
  "react",
17
18
  "tanstack-intent",
18
19
  "tanstack-start",
20
+ "tauri",
19
21
  "tracing",
20
22
  "vite-plugin",
23
+ "vite-plus",
21
24
  "vitest-plugin"
22
25
  ],
23
26
  "homepage": "https://github.com/masseater/ecosystems/tree/main/libs/masseater-utils#readme",
@@ -48,6 +51,7 @@
48
51
  "type": "module",
49
52
  "sideEffects": [
50
53
  "*.css",
54
+ "./dist/desktop-shell/release-cli.mjs",
51
55
  "./dist/lapse/sdk.mjs",
52
56
  "./dist/model-server/process.mjs",
53
57
  "./dist/vitest-otlp/setup.mjs"
@@ -56,67 +60,43 @@
56
60
  "#/*": "./src/*"
57
61
  },
58
62
  "exports": {
59
- "./skerm": "./dist/skerm.mjs",
60
- "./skerm.css": "./src/app/skerm.css",
61
- "./usage-meter": "./dist/usage-meter.mjs",
62
- "./usage-meter/report": "./dist/usage-meter/report.mjs",
63
- "./model-server": "./dist/model-server.mjs",
64
- "./model-server/process": "./dist/model-server/process.mjs",
65
- "./plugin-kit": "./dist/plugin-kit.mjs",
66
- "./node-main": "./dist/node-main.mjs",
67
- "./hook-flags": "./dist/hook-flags.mjs",
63
+ "./app-name": "./dist/app-name.mjs",
64
+ "./browser-test/fonts.conf": "./src/app/browser-test-fonts.conf",
65
+ "./browser-test/vite": "./dist/browser-test/vite.mjs",
66
+ "./desktop-shell/media-notes": "./dist/desktop-shell/media-notes.mjs",
67
+ "./desktop-shell/media-notes/protocol": "./dist/desktop-shell/media-notes/protocol.mjs",
68
+ "./desktop-shell/release-cli": "./dist/desktop-shell/release-cli.mjs",
69
+ "./desktop-shell/telemetry": "./dist/desktop-shell/telemetry.mjs",
70
+ "./desktop-shell/vite": "./dist/desktop-shell/vite.mjs",
71
+ "./effect2cs": "./dist/effect2cs.mjs",
72
+ "./effect2rs": "./dist/effect2rs.mjs",
68
73
  "./github-workflow": "./dist/github-workflow.mjs",
69
- "./mapped-import": "./dist/mapped-import.mjs",
70
- "./mapped-import/mapper": "./dist/mapped-import/mapper.mjs",
71
- "./mapped-import/vite": "./dist/mapped-import/vite.mjs",
74
+ "./hook-flags": "./dist/hook-flags.mjs",
72
75
  "./kestrion": "./dist/kestrion.mjs",
76
+ "./kestrion/node": "./dist/kestrion/node.mjs",
73
77
  "./kestrion/npm": "./dist/kestrion/npm.mjs",
74
78
  "./kestrion/pnpm": "./dist/kestrion/pnpm.mjs",
75
- "./kestrion/node": "./dist/kestrion/node.mjs",
76
- "./vitest-otlp": "./dist/vitest-otlp.mjs",
77
- "./vitest-otlp/setup": "./dist/vitest-otlp/setup.mjs",
78
- "./vitest-otlp/semconv": "./dist/vitest-otlp/semconv.mjs",
79
- "./vitest-otlp/workers": "./dist/vitest-otlp/workers.mjs",
80
- "./vitest-otlp/collector-files": "./dist/vitest-otlp/collector-files.mjs",
81
- "./vitest-otlp/tail-worker": "./dist/vitest-otlp/tail-worker.mjs",
82
- "./app-name": "./dist/app-name.mjs",
83
- "./workers-tracing/alchemy": "./dist/workers-tracing/alchemy.mjs",
84
- "./workers-tracing/browser-logs": "./dist/workers-tracing/browser-logs.mjs",
85
- "./workers-tracing/browser-spans": "./dist/workers-tracing/browser-spans.mjs",
86
- "./workers-tracing/workers-ai": "./dist/workers-tracing/workers-ai.mjs",
87
- "./workers-tracing/elysia": {
88
- "workerd": "./dist/workers-tracing/elysia.mjs",
89
- "node": "./dist/workers-tracing/elysia.node.mjs",
90
- "default": "./dist/workers-tracing/elysia.mjs"
91
- },
92
- "./workers-tracing/tanstack-start": {
93
- "workerd": "./dist/workers-tracing/tanstack-start.mjs",
94
- "browser": "./dist/workers-tracing/tanstack-start.browser.mjs",
95
- "node": "./dist/workers-tracing/tanstack-start.browser.mjs",
96
- "default": "./dist/workers-tracing/tanstack-start.mjs"
97
- },
98
- "./workers-tracing/effect": {
99
- "workerd": "./dist/workers-tracing/effect.mjs",
100
- "browser": "./dist/workers-tracing/effect.browser.mjs",
101
- "node": "./dist/workers-tracing/effect.browser.mjs",
102
- "default": "./dist/workers-tracing/effect.mjs"
103
- },
104
- "./workers-tracing/trace-sink-worker": "./dist/workers-tracing/trace-sink-worker.mjs",
105
- "./effect2rs": "./dist/effect2rs.mjs",
106
- "./effect2cs": "./dist/effect2cs.mjs",
79
+ "./lapse": "./dist/lapse.mjs",
80
+ "./lapse/sdk": "./dist/lapse/sdk.mjs",
81
+ "./local-server": "./dist/local-server.mjs",
82
+ "./local-server/node": "./dist/local-server/node.mjs",
83
+ "./local-server/serve": "./dist/local-server/serve.mjs",
84
+ "./mapped-import": "./dist/mapped-import.mjs",
85
+ "./mapped-import/mapper": "./dist/mapped-import/mapper.mjs",
86
+ "./mapped-import/vite": "./dist/mapped-import/vite.mjs",
87
+ "./model-server": "./dist/model-server.mjs",
88
+ "./model-server/process": "./dist/model-server/process.mjs",
89
+ "./node-main": "./dist/node-main.mjs",
90
+ "./plugin-kit": "./dist/plugin-kit.mjs",
91
+ "./process": "./dist/process.mjs",
107
92
  "./security-headers": "./dist/security-headers.mjs",
108
93
  "./security-headers/http": "./dist/security-headers/http.mjs",
109
94
  "./security-headers/request": "./dist/security-headers/request.mjs",
110
95
  "./security-headers/response": "./dist/security-headers/response.mjs",
111
96
  "./security-headers/static": "./dist/security-headers/static.mjs",
112
97
  "./security-headers/vite": "./dist/security-headers/vite.mjs",
113
- "./lapse": "./dist/lapse.mjs",
114
- "./local-server": "./dist/local-server.mjs",
115
- "./local-server/node": "./dist/local-server/node.mjs",
116
- "./local-server/serve": "./dist/local-server/serve.mjs",
117
- "./browser-test/vite": "./dist/browser-test/vite.mjs",
118
- "./yohaku-protocol": "./dist/yohaku-protocol.mjs",
119
- "./yohaku-protocol/sync": "./dist/yohaku-protocol/sync.mjs",
98
+ "./skerm": "./dist/skerm.mjs",
99
+ "./skerm.css": "./src/app/skerm.css",
120
100
  "./ui/backdrop-palette": "./dist/ui/backdrop-palette.mjs",
121
101
  "./ui/badge": "./dist/ui/badge.mjs",
122
102
  "./ui/browser-runtime": "./dist/ui/browser-runtime.mjs",
@@ -140,9 +120,38 @@
140
120
  "./ui/to-wavy-letters": "./dist/ui/to-wavy-letters.mjs",
141
121
  "./ui/view-transition.css": "./src/app/ui-view-transition.css",
142
122
  "./ui/web-analytics": "./dist/ui/web-analytics.mjs",
143
- "./lapse/sdk": "./dist/lapse/sdk.mjs",
144
- "./browser-test/fonts.conf": "./src/app/browser-test-fonts.conf",
145
- "./process": "./dist/process.mjs",
123
+ "./usage-meter": "./dist/usage-meter.mjs",
124
+ "./usage-meter/report": "./dist/usage-meter/report.mjs",
125
+ "./vitest-otlp": "./dist/vitest-otlp.mjs",
126
+ "./vitest-otlp/collector-files": "./dist/vitest-otlp/collector-files.mjs",
127
+ "./vitest-otlp/semconv": "./dist/vitest-otlp/semconv.mjs",
128
+ "./vitest-otlp/setup": "./dist/vitest-otlp/setup.mjs",
129
+ "./vitest-otlp/tail-worker": "./dist/vitest-otlp/tail-worker.mjs",
130
+ "./vitest-otlp/workers": "./dist/vitest-otlp/workers.mjs",
131
+ "./workers-tracing/alchemy": "./dist/workers-tracing/alchemy.mjs",
132
+ "./workers-tracing/browser-logs": "./dist/workers-tracing/browser-logs.mjs",
133
+ "./workers-tracing/browser-spans": "./dist/workers-tracing/browser-spans.mjs",
134
+ "./workers-tracing/effect": {
135
+ "workerd": "./dist/workers-tracing/effect.mjs",
136
+ "browser": "./dist/workers-tracing/effect.browser.mjs",
137
+ "node": "./dist/workers-tracing/effect.browser.mjs",
138
+ "default": "./dist/workers-tracing/effect.mjs"
139
+ },
140
+ "./workers-tracing/elysia": {
141
+ "workerd": "./dist/workers-tracing/elysia.mjs",
142
+ "node": "./dist/workers-tracing/elysia.node.mjs",
143
+ "default": "./dist/workers-tracing/elysia.mjs"
144
+ },
145
+ "./workers-tracing/tanstack-start": {
146
+ "workerd": "./dist/workers-tracing/tanstack-start.mjs",
147
+ "browser": "./dist/workers-tracing/tanstack-start.browser.mjs",
148
+ "node": "./dist/workers-tracing/tanstack-start.browser.mjs",
149
+ "default": "./dist/workers-tracing/tanstack-start.mjs"
150
+ },
151
+ "./workers-tracing/trace-sink-worker": "./dist/workers-tracing/trace-sink-worker.mjs",
152
+ "./workers-tracing/workers-ai": "./dist/workers-tracing/workers-ai.mjs",
153
+ "./yohaku-protocol": "./dist/yohaku-protocol.mjs",
154
+ "./yohaku-protocol/sync": "./dist/yohaku-protocol/sync.mjs",
146
155
  "./package.json": "./package.json"
147
156
  },
148
157
  "publishConfig": {
@@ -154,6 +163,7 @@
154
163
  "@bufbuild/buf": "1.75.0",
155
164
  "@bufbuild/protobuf": "2.17.0",
156
165
  "@cloudflare/workers-types": "5.20261129.1",
166
+ "@effect/atom-react": "4.2.0",
157
167
  "@effect/platform-node": "4.2.0",
158
168
  "@effect/platform-node-shared": "4.2.0",
159
169
  "@effect/sql-sqlite-node": "4.2.0",
@@ -161,19 +171,28 @@
161
171
  "@fontsource-variable/roboto-flex": "5.3.0",
162
172
  "@npmcli/package-json": "8.0.1",
163
173
  "@opentelemetry/api": "1.10.0",
174
+ "@opentelemetry/browser-instrumentation": "0.12.1",
175
+ "@opentelemetry/browser-sdk": "0.9.1",
176
+ "@opentelemetry/exporter-logs-otlp-http": "0.301.2",
164
177
  "@opentelemetry/exporter-trace-otlp-http": "0.301.2",
178
+ "@opentelemetry/sdk-logs": "3.1.1",
165
179
  "@opentelemetry/sdk-node": "0.301.2",
180
+ "@opentelemetry/sdk-trace": "3.1.1",
166
181
  "@paper-design/shaders": "0.0.82",
167
182
  "@pnpm/deps.path": "1101.0.11",
168
183
  "@pnpm/lockfile.fs": "1100.2.20",
169
184
  "@pnpm/workspace.projects-reader": "1101.1.9",
170
185
  "@pnpm/workspace.workspace-manifest-reader": "1100.3.4",
171
186
  "@pnpm/workspace.workspace-manifest-writer": "1100.2.13",
187
+ "@tailwindcss/vite": "4.3.5",
172
188
  "@tanstack/react-start": "1.170.0",
173
189
  "@tanstack/router-core": "1.171.39",
190
+ "@tauri-apps/api": "2.13.0",
174
191
  "@types/node": "26.6.11",
175
192
  "@types/npmcli__package-json": "4.0.4",
176
193
  "@types/react": "19.3.3",
194
+ "@types/youtube": "0.3.0",
195
+ "@vitejs/plugin-react": "6.3.0",
177
196
  "@vitest/browser-playwright": "5.1.1",
178
197
  "alchemy": "2.0.0-beta.87",
179
198
  "class-variance-authority": "0.7.1",
@@ -182,7 +201,9 @@
182
201
  "effect": "4.2.0",
183
202
  "elysia": "1.4.32",
184
203
  "happy-dom": "21.0.4",
204
+ "lucide-react": "1.83.0",
185
205
  "miniflare": "4.20260730.0",
206
+ "niconico-embed-player": "0.1.2",
186
207
  "playwright": "1.65.1",
187
208
  "publint": "0.3.25",
188
209
  "quicktype-core": "26.0.0",
@@ -199,18 +220,28 @@
199
220
  "peerDependencies": {
200
221
  "@alchemy.run/cloudflare": "^2.0.0-beta.85",
201
222
  "@bufbuild/protobuf": ">=2.17.0",
223
+ "@effect/atom-react": ">=4.1.7",
202
224
  "@effect/platform-node": ">=4.1.5",
203
225
  "@effect/sql-sqlite-node": ">=4.1.5",
204
226
  "@fontsource-variable/roboto-flex": ">=5.3.0",
205
227
  "@npmcli/package-json": ">=8.0.1",
228
+ "@opentelemetry/api": ">=1.10.0",
229
+ "@opentelemetry/browser-instrumentation": ">=0.12.1",
230
+ "@opentelemetry/browser-sdk": ">=0.9.1",
231
+ "@opentelemetry/exporter-logs-otlp-http": ">=0.301.2",
206
232
  "@opentelemetry/exporter-trace-otlp-http": ">=0.301.2",
233
+ "@opentelemetry/sdk-logs": ">=3.1.1",
207
234
  "@opentelemetry/sdk-node": ">=0.301.2",
235
+ "@opentelemetry/sdk-trace": ">=3.1.1",
208
236
  "@pnpm/deps.path": ">=1101.0.11",
209
237
  "@pnpm/lockfile.fs": ">=1100.2.20",
210
238
  "@pnpm/workspace.projects-reader": ">=1101.1.9",
211
239
  "@pnpm/workspace.workspace-manifest-reader": ">=1100.3.4",
212
240
  "@pnpm/workspace.workspace-manifest-writer": ">=1100.2.13",
241
+ "@tailwindcss/vite": "^4.3.5",
213
242
  "@tanstack/react-start": "^1.169.4",
243
+ "@tauri-apps/api": "^2.13.0",
244
+ "@vitejs/plugin-react": ">=6.3.0",
214
245
  "@vitest/browser-playwright": ">=5.1.1",
215
246
  "alchemy": "^2.0.0-beta.85",
216
247
  "class-variance-authority": ">=0.7.1",
@@ -218,6 +249,8 @@
218
249
  "dejavu-fonts-ttf": ">=2.37.3",
219
250
  "effect": "^4.1.0",
220
251
  "elysia": "^1.4.30",
252
+ "lucide-react": ">=1.83.0",
253
+ "niconico-embed-player": ">=0.1.2",
221
254
  "playwright": ">=1.65.1",
222
255
  "quicktype-core": ">=26.0.0",
223
256
  "radix-ui": ">=1.8.1",
@@ -236,6 +269,9 @@
236
269
  "@bufbuild/protobuf": {
237
270
  "optional": true
238
271
  },
272
+ "@effect/atom-react": {
273
+ "optional": true
274
+ },
239
275
  "@effect/platform-node": {
240
276
  "optional": true
241
277
  },
@@ -248,12 +284,30 @@
248
284
  "@npmcli/package-json": {
249
285
  "optional": true
250
286
  },
287
+ "@opentelemetry/api": {
288
+ "optional": true
289
+ },
290
+ "@opentelemetry/browser-instrumentation": {
291
+ "optional": true
292
+ },
293
+ "@opentelemetry/browser-sdk": {
294
+ "optional": true
295
+ },
296
+ "@opentelemetry/exporter-logs-otlp-http": {
297
+ "optional": true
298
+ },
251
299
  "@opentelemetry/exporter-trace-otlp-http": {
252
300
  "optional": true
253
301
  },
302
+ "@opentelemetry/sdk-logs": {
303
+ "optional": true
304
+ },
254
305
  "@opentelemetry/sdk-node": {
255
306
  "optional": true
256
307
  },
308
+ "@opentelemetry/sdk-trace": {
309
+ "optional": true
310
+ },
257
311
  "@pnpm/deps.path": {
258
312
  "optional": true
259
313
  },
@@ -269,9 +323,18 @@
269
323
  "@pnpm/workspace.workspace-manifest-writer": {
270
324
  "optional": true
271
325
  },
326
+ "@tailwindcss/vite": {
327
+ "optional": true
328
+ },
272
329
  "@tanstack/react-start": {
273
330
  "optional": true
274
331
  },
332
+ "@tauri-apps/api": {
333
+ "optional": true
334
+ },
335
+ "@vitejs/plugin-react": {
336
+ "optional": true
337
+ },
275
338
  "@vitest/browser-playwright": {
276
339
  "optional": true
277
340
  },
@@ -293,6 +356,12 @@
293
356
  "elysia": {
294
357
  "optional": true
295
358
  },
359
+ "lucide-react": {
360
+ "optional": true
361
+ },
362
+ "niconico-embed-player": {
363
+ "optional": true
364
+ },
296
365
  "playwright": {
297
366
  "optional": true
298
367
  },
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: build-tauri-app
3
+ description: >
4
+ Use when building or releasing a Tauri desktop app on @r_masseater/masseater-utils/desktop-shell: the Rust
5
+ crate and its cargo patches, the Vite settings, telemetry from the screen and from Rust, the
6
+ updater and its signing key, the release commands, and the media-notes parts.
7
+ metadata:
8
+ type: core
9
+ library: "@r_masseater/masseater-utils"
10
+ sources:
11
+ - src/**
12
+ - bin/**
13
+ - native/**
14
+ - README.md
15
+ ---
16
+
17
+ # build-tauri-app
18
+
19
+ desktop-shell holds what every Tauri app of the owner shares: the window and app behavior, telemetry, the updater, the local MCP server and the release commands.
20
+
21
+ ## Setup
22
+
23
+ ```sh
24
+ vp add @r_masseater/masseater-utils
25
+ ```
26
+
27
+ The Rust crates come from this repository through a git dependency pinned to a commit:
28
+
29
+ ```toml
30
+ [dependencies]
31
+ desktop-shell = { git = "https://github.com/masseater/ecosystems", rev = "<commit>" }
32
+ ```
33
+
34
+ Tauri needs the `proc-macro-crate` and `tauri-macros` patches of the root `Cargo.toml` of masseater/ecosystems. A patch applies only from the workspace root, so copy the same `[patch.crates-io]` entries and the patched crates into the app's repository.
35
+
36
+ ## Telemetry
37
+
38
+ Every app records traces in `telemetry/traces.jsonl` in the app's log folder, one OTLP JSON batch per line, and screen logs in `telemetry/logs.jsonl`. Add `telemetry_plugin()`, through `builder` or by hand, and wrap the invoke handler in `traced_commands`, which continues the trace of the request's `traceparent` header in Rust.
39
+
40
+ Call `startScreenTelemetry` from `@r_masseater/masseater-utils/desktop-shell/telemetry` with the screen's service name before the app renders. It records page loads, navigations, clicks, every `fetch` including Tauri IPC calls, Web Vitals, long animation frames and unhandled errors, and sends them to the shell's `otlp` scheme. Put `otlp: http://otlp.localhost` in the app's `connect-src`. Provide `OtelTracer.layerGlobal` from `@effect/opentelemetry` to make Effect spans part of the same traces.
41
+
42
+ Every line written to either file is also sent to `https://telemetry.masseater.dev`, gathered into one request per signal per minute. `TELEMETRY_URL` and `TELEMETRY_API_KEY`, at run time or at build time, change the destination or add a key. A file over 64 MiB moves to `traces.1.jsonl` or `logs.1.jsonl` at the next start.
43
+
44
+ ## Updates and releases
45
+
46
+ Apps check for an update when they start, download it, ask the user, then install it and restart. Each app needs `plugins.updater` in `tauri.conf.json` with its public key and the feed `https://github.com/<owner>/<repository>/releases/download/<name>-updater/latest.json`, plus `createUpdaterArtifacts` in `tauri.release.conf.json`.
47
+
48
+ `tauriReleaseTasks()` of `desktop-shell/vite` adds the tasks that run the release commands, and `bundleCollect(kinds)` gives the command for a task of your own:
49
+
50
+ - `vp run updater-key` makes the signing key in the `<name>-release` environment and prints the public key.
51
+ - `bundleCollect(["nsis"])` copies the Tauri bundles into `release-assets/`.
52
+ - `vp run release:publish` writes the updater feed after the GitHub Release exists.
53
+
54
+ ## Media notes
55
+
56
+ Apps that mark and comment on ranges of media use `@r_masseater/masseater-utils/desktop-shell/media-notes` for the screen parts, `@r_masseater/masseater-utils/desktop-shell/media-notes/protocol` for the types, and the `media-notes` crate for the Rust side. Each app's page lays out the parts and adds the form and list for the notes it saves.
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.mjs","names":[],"sources":["../../src/app/browser-test-vite.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\n\nimport type { UserConfig } from \"vite-plus\";\nimport { playwright } from \"vite-plus/test/browser-playwright\";\n\nconst FONTCONFIG_FILE = fileURLToPath(\n import.meta.resolve(\"@r_masseater/masseater-utils/browser-test/fonts.conf\"),\n);\nconst FONT_HOME = fileURLToPath(\n new URL(\"..\", import.meta.resolve(\"dejavu-fonts-ttf/ttf/DejaVuSans.ttf\")),\n);\nconst ALLOWED_MISMATCHED_PIXELS = 0.002;\n\nexport const browserTest = (viewport: Readonly<{ width: number; height: number }>): UserConfig => ({\n test: {\n api: { port: 0 },\n browser: {\n enabled: true,\n headless: true,\n provider: playwright({\n launchOptions: { channel: \"chrome\", env: { FONTCONFIG_FILE, XDG_DATA_HOME: FONT_HOME } },\n }),\n instances: [{ browser: \"chromium\" }],\n viewport: { ...viewport },\n expect: {\n toMatchScreenshot: {\n comparatorName: \"pixelmatch\",\n comparatorOptions: { allowedMismatchedPixelRatio: ALLOWED_MISMATCHED_PIXELS },\n },\n },\n },\n },\n});\n"],"mappings":";;;AAKA,MAAM,kBAAkB,cACtB,YAAY,QAAQ,sDAAsD,CAC5E;AACA,MAAM,YAAY,cAChB,IAAI,IAAI,MAAM,YAAY,QAAQ,qCAAqC,CAAC,CAC1E;AACA,MAAM,4BAA4B;AAElC,MAAa,eAAe,cAAuE,EACjG,MAAM;CACJ,KAAK,EAAE,MAAM,EAAE;CACf,SAAS;EACP,SAAS;EACT,UAAU;EACV,UAAU,WAAW,EACnB,eAAe;GAAE,SAAS;GAAU,KAAK;IAAE;IAAiB,eAAe;GAAU;EAAE,EACzF,CAAC;EACD,WAAW,CAAC,EAAE,SAAS,WAAW,CAAC;EACnC,UAAU,EAAE,GAAG,SAAS;EACxB,QAAQ,EACN,mBAAmB;GACjB,gBAAgB;GAChB,mBAAmB,EAAE,6BAA6B,0BAA0B;EAC9E,EACF;CACF;AACF,EACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-main.mjs","names":[],"sources":["../src/features/watch-parent/model/parent-process.ts"],"sourcesContent":["import { Duration, Effect, Option, Schedule, pipe } from \"effect\";\n\nconst PARENT_CHECK_INTERVAL = Duration.fromInputUnsafe(\"2 seconds\");\nconst SIGNAL_PROBE = 0;\n\nconst isAlive = (pid: number): boolean => {\n try {\n return globalThis.process.kill(pid, SIGNAL_PROBE);\n } catch {\n return false;\n }\n};\n\nconst untilExits = (pid: number): Effect.Effect<void> =>\n Effect.sync(() => isAlive(pid)).pipe(\n Effect.repeat({ schedule: Schedule.spaced(PARENT_CHECK_INTERVAL), while: (alive) => alive }),\n Effect.asVoid,\n );\n\nexport const whileParentAlive =\n (parentPid: Option.Option<string>) =>\n <Value, Failure, Requirements>(\n program: Effect.Effect<Value, Failure, Requirements>,\n ): Effect.Effect<void, Failure, Requirements> =>\n Effect.raceFirst(\n Effect.asVoid(program),\n pipe(\n parentPid,\n Option.map((pid) => untilExits(globalThis.Number(pid))),\n Option.getOrElse(() => Effect.never),\n ),\n );\n"],"mappings":";;;AAEA,MAAM,wBAAwB,SAAS,gBAAgB,WAAW;AAClE,MAAM,eAAe;AAErB,MAAM,WAAW,QAAyB;CACxC,IAAI;EACF,OAAO,WAAW,QAAQ,KAAK,KAAK,YAAY;CAClD,QAAQ;EACN,OAAO;CACT;AACF;AAEA,MAAM,cAAc,QAClB,OAAO,WAAW,QAAQ,GAAG,CAAC,CAAC,CAAC,KAC9B,OAAO,OAAO;CAAE,UAAU,SAAS,OAAO,qBAAqB;CAAG,QAAQ,UAAU;AAAM,CAAC,GAC3F,OAAO,MACT;AAEF,MAAa,oBACV,eAEC,YAEA,OAAO,UACL,OAAO,OAAO,OAAO,GACrB,KACE,WACA,OAAO,KAAK,QAAQ,WAAW,WAAW,OAAO,GAAG,CAAC,CAAC,GACtD,OAAO,gBAAgB,OAAO,KAAK,CACrC,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.mjs","names":[],"sources":["../../src/shared/ui/button.tsx"],"sourcesContent":["import type { VariantProps } from \"class-variance-authority\";\nimport { Slot } from \"radix-ui\";\nimport type { ComponentProps, ReactNode } from \"react\";\n\nimport { buttonVariants } from \"#/shared/lib/button-variants.ts\";\nimport { cn } from \"#/shared/lib/cn.ts\";\n\nexport const Button = ({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: ComponentProps<\"button\"> &\n Readonly<VariantProps<typeof buttonVariants>> &\n Readonly<{ asChild?: boolean }>): ReactNode => {\n const classes = cn(buttonVariants({ variant, size, className }));\n if (asChild) {\n return (\n <Slot.Root\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={classes}\n {...props}\n />\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={classes}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;AAOA,MAAa,UAAU,EACrB,WACA,UAAU,WACV,OAAO,WACP,UAAU,OACV,GAAG,YAG4C;CAC/C,MAAM,UAAU,GAAG,eAAe;EAAE;EAAS;EAAM;CAAU,CAAC,CAAC;CAC/D,IAAI,SACF,OACE,oBAAC,KAAK,MAAN;EACE,aAAU;EACV,gBAAc;EACd,aAAW;EACX,WAAW;EACX,GAAI;CACL,CAAA;CAGL,OACE,oBAAC,UAAD;EACE,MAAK;EACL,aAAU;EACV,gBAAc;EACd,aAAW;EACX,WAAW;EACX,GAAI;CACL,CAAA;AAEL"}