@r_masseater/masseater-utils 0.8.2 → 0.9.1
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.
- package/README.md +46 -40
- package/dist/browser-test/vite.mjs +1 -29
- package/dist/browser-test-vite-DS3fTcyM.mjs +29 -0
- package/dist/browser-test-vite-DS3fTcyM.mjs.map +1 -0
- package/dist/button-980Op0uF.mjs +30 -0
- package/dist/button-980Op0uF.mjs.map +1 -0
- package/dist/desktop-shell/media-notes/protocol.d.mts +2 -0
- package/dist/desktop-shell/media-notes/protocol.mjs +1 -0
- package/dist/desktop-shell/media-notes.d.mts +125 -0
- package/dist/desktop-shell/media-notes.mjs +865 -0
- package/dist/desktop-shell/media-notes.mjs.map +1 -0
- package/dist/desktop-shell/release-cli.d.mts +1 -0
- package/dist/desktop-shell/release-cli.mjs +290 -0
- package/dist/desktop-shell/release-cli.mjs.map +1 -0
- package/dist/desktop-shell/telemetry.d.mts +5 -0
- package/dist/desktop-shell/telemetry.mjs +55 -0
- package/dist/desktop-shell/telemetry.mjs.map +1 -0
- package/dist/desktop-shell/vite.d.mts +24 -0
- package/dist/desktop-shell/vite.mjs +58 -0
- package/dist/desktop-shell/vite.mjs.map +1 -0
- package/dist/index-BtcxUsGh.d.mts +4 -0
- package/dist/index-CjUS4pmA.d.mts +59 -0
- package/dist/lapse.mjs +1 -1
- package/dist/media-protocol-CMyatw7A.mjs +32 -0
- package/dist/media-protocol-CMyatw7A.mjs.map +1 -0
- package/dist/node-main-Bwril94o.mjs +19 -0
- package/dist/node-main-Bwril94o.mjs.map +1 -0
- package/dist/node-main.mjs +1 -18
- package/dist/plugin-kit.mjs +22 -22
- package/dist/plugin-kit.mjs.map +1 -1
- package/dist/security-headers.d.mts +2 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/button.mjs +1 -30
- package/dist/ui/next-page-trigger.mjs +1 -1
- package/dist/ui/page-footer.d.mts +1 -1
- package/dist/ui/page-header.d.mts +1 -1
- package/dist/ui/table.d.mts +1 -1
- package/dist/ui/web-analytics.d.mts +1 -0
- package/dist/vitest-otlp/workers.mjs +1 -1
- package/dist/workers-tracing/alchemy.d.mts +1 -1
- package/native/desktop-shell/Cargo.toml +38 -0
- package/native/desktop-shell/src/app/builder.rs +39 -0
- package/native/desktop-shell/src/app/mod.rs +3 -0
- package/native/desktop-shell/src/entities/access_token.rs +77 -0
- package/native/desktop-shell/src/entities/mod.rs +1 -0
- package/native/desktop-shell/src/features/mod.rs +4 -0
- package/native/desktop-shell/src/features/record_telemetry/appender.rs +127 -0
- package/native/desktop-shell/src/features/record_telemetry/forwarder.rs +183 -0
- package/native/desktop-shell/src/features/record_telemetry/invoke.rs +80 -0
- package/native/desktop-shell/src/features/record_telemetry/mod.rs +231 -0
- package/native/desktop-shell/src/features/serve_screen/mod.rs +135 -0
- package/native/desktop-shell/src/features/serve_tools/mod.rs +37 -0
- package/native/desktop-shell/src/features/update_app/mod.rs +53 -0
- package/native/desktop-shell/src/lib.rs +17 -0
- package/native/desktop-shell/src/shared/lib/bearer.rs +49 -0
- package/native/desktop-shell/src/shared/lib/host.rs +1 -0
- package/native/desktop-shell/src/shared/lib/mod.rs +5 -0
- package/native/desktop-shell/src/shared/mod.rs +2 -0
- package/native/desktop-shell/src/shared/ui/log.rs +15 -0
- package/native/desktop-shell/src/shared/ui/menu.rs +37 -0
- package/native/desktop-shell/src/shared/ui/mod.rs +7 -0
- package/native/desktop-shell/src/shared/ui/window.rs +49 -0
- package/native/media-notes/Cargo.toml +36 -0
- package/native/media-notes/src/entities/media_file.rs +89 -0
- package/native/media-notes/src/entities/media_notes.rs +31 -0
- package/native/media-notes/src/entities/mod.rs +3 -0
- package/native/media-notes/src/entities/source/credit.rs +129 -0
- package/native/media-notes/src/entities/source/link.rs +194 -0
- package/native/media-notes/src/entities/source/mod.rs +5 -0
- package/native/media-notes/src/features/mod.rs +2 -0
- package/native/media-notes/src/features/open_media/mod.rs +88 -0
- package/native/media-notes/src/features/share_mcp_access.rs +15 -0
- package/native/media-notes/src/lib.rs +12 -0
- package/native/media-notes/src/shared/db/mod.rs +3 -0
- package/native/media-notes/src/shared/db/store.rs +276 -0
- package/native/media-notes/src/shared/lib/failure.rs +55 -0
- package/native/media-notes/src/shared/lib/mcp.rs +34 -0
- package/native/media-notes/src/shared/lib/mod.rs +5 -0
- package/native/media-notes/src/shared/mod.rs +3 -0
- package/native/media-notes/src/shared/protocol.rs +69 -0
- package/package.json +129 -56
- package/skills/build-tauri-app/SKILL.md +58 -0
- package/dist/browser-test/vite.mjs.map +0 -1
- package/dist/node-main.mjs.map +0 -1
- 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.
|
|
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.1",
|
|
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",
|
|
@@ -34,6 +37,10 @@
|
|
|
34
37
|
"LICENSE",
|
|
35
38
|
"dist",
|
|
36
39
|
"skills",
|
|
40
|
+
"native/desktop-shell/Cargo.toml",
|
|
41
|
+
"native/desktop-shell/src",
|
|
42
|
+
"native/media-notes/Cargo.toml",
|
|
43
|
+
"native/media-notes/src",
|
|
37
44
|
"src/app/browser-test-fonts.conf",
|
|
38
45
|
"src/app/skerm.css",
|
|
39
46
|
"src/app/ui-styles.css",
|
|
@@ -48,6 +55,7 @@
|
|
|
48
55
|
"type": "module",
|
|
49
56
|
"sideEffects": [
|
|
50
57
|
"*.css",
|
|
58
|
+
"./dist/desktop-shell/release-cli.mjs",
|
|
51
59
|
"./dist/lapse/sdk.mjs",
|
|
52
60
|
"./dist/model-server/process.mjs",
|
|
53
61
|
"./dist/vitest-otlp/setup.mjs"
|
|
@@ -56,67 +64,43 @@
|
|
|
56
64
|
"#/*": "./src/*"
|
|
57
65
|
},
|
|
58
66
|
"exports": {
|
|
59
|
-
"./
|
|
60
|
-
"./
|
|
61
|
-
"./
|
|
62
|
-
"./
|
|
63
|
-
"./
|
|
64
|
-
"./
|
|
65
|
-
"./
|
|
66
|
-
"./
|
|
67
|
-
"./
|
|
67
|
+
"./app-name": "./dist/app-name.mjs",
|
|
68
|
+
"./browser-test/fonts.conf": "./src/app/browser-test-fonts.conf",
|
|
69
|
+
"./browser-test/vite": "./dist/browser-test/vite.mjs",
|
|
70
|
+
"./desktop-shell/media-notes": "./dist/desktop-shell/media-notes.mjs",
|
|
71
|
+
"./desktop-shell/media-notes/protocol": "./dist/desktop-shell/media-notes/protocol.mjs",
|
|
72
|
+
"./desktop-shell/release-cli": "./dist/desktop-shell/release-cli.mjs",
|
|
73
|
+
"./desktop-shell/telemetry": "./dist/desktop-shell/telemetry.mjs",
|
|
74
|
+
"./desktop-shell/vite": "./dist/desktop-shell/vite.mjs",
|
|
75
|
+
"./effect2cs": "./dist/effect2cs.mjs",
|
|
76
|
+
"./effect2rs": "./dist/effect2rs.mjs",
|
|
68
77
|
"./github-workflow": "./dist/github-workflow.mjs",
|
|
69
|
-
"./
|
|
70
|
-
"./mapped-import/mapper": "./dist/mapped-import/mapper.mjs",
|
|
71
|
-
"./mapped-import/vite": "./dist/mapped-import/vite.mjs",
|
|
78
|
+
"./hook-flags": "./dist/hook-flags.mjs",
|
|
72
79
|
"./kestrion": "./dist/kestrion.mjs",
|
|
80
|
+
"./kestrion/node": "./dist/kestrion/node.mjs",
|
|
73
81
|
"./kestrion/npm": "./dist/kestrion/npm.mjs",
|
|
74
82
|
"./kestrion/pnpm": "./dist/kestrion/pnpm.mjs",
|
|
75
|
-
"./
|
|
76
|
-
"./
|
|
77
|
-
"./
|
|
78
|
-
"./
|
|
79
|
-
"./
|
|
80
|
-
"./
|
|
81
|
-
"./
|
|
82
|
-
"./
|
|
83
|
-
"./
|
|
84
|
-
"./
|
|
85
|
-
"./
|
|
86
|
-
"./
|
|
87
|
-
"./
|
|
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",
|
|
83
|
+
"./lapse": "./dist/lapse.mjs",
|
|
84
|
+
"./lapse/sdk": "./dist/lapse/sdk.mjs",
|
|
85
|
+
"./local-server": "./dist/local-server.mjs",
|
|
86
|
+
"./local-server/node": "./dist/local-server/node.mjs",
|
|
87
|
+
"./local-server/serve": "./dist/local-server/serve.mjs",
|
|
88
|
+
"./mapped-import": "./dist/mapped-import.mjs",
|
|
89
|
+
"./mapped-import/mapper": "./dist/mapped-import/mapper.mjs",
|
|
90
|
+
"./mapped-import/vite": "./dist/mapped-import/vite.mjs",
|
|
91
|
+
"./model-server": "./dist/model-server.mjs",
|
|
92
|
+
"./model-server/process": "./dist/model-server/process.mjs",
|
|
93
|
+
"./node-main": "./dist/node-main.mjs",
|
|
94
|
+
"./plugin-kit": "./dist/plugin-kit.mjs",
|
|
95
|
+
"./process": "./dist/process.mjs",
|
|
107
96
|
"./security-headers": "./dist/security-headers.mjs",
|
|
108
97
|
"./security-headers/http": "./dist/security-headers/http.mjs",
|
|
109
98
|
"./security-headers/request": "./dist/security-headers/request.mjs",
|
|
110
99
|
"./security-headers/response": "./dist/security-headers/response.mjs",
|
|
111
100
|
"./security-headers/static": "./dist/security-headers/static.mjs",
|
|
112
101
|
"./security-headers/vite": "./dist/security-headers/vite.mjs",
|
|
113
|
-
"./
|
|
114
|
-
"./
|
|
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",
|
|
102
|
+
"./skerm": "./dist/skerm.mjs",
|
|
103
|
+
"./skerm.css": "./src/app/skerm.css",
|
|
120
104
|
"./ui/backdrop-palette": "./dist/ui/backdrop-palette.mjs",
|
|
121
105
|
"./ui/badge": "./dist/ui/badge.mjs",
|
|
122
106
|
"./ui/browser-runtime": "./dist/ui/browser-runtime.mjs",
|
|
@@ -140,9 +124,38 @@
|
|
|
140
124
|
"./ui/to-wavy-letters": "./dist/ui/to-wavy-letters.mjs",
|
|
141
125
|
"./ui/view-transition.css": "./src/app/ui-view-transition.css",
|
|
142
126
|
"./ui/web-analytics": "./dist/ui/web-analytics.mjs",
|
|
143
|
-
"./
|
|
144
|
-
"./
|
|
145
|
-
"./
|
|
127
|
+
"./usage-meter": "./dist/usage-meter.mjs",
|
|
128
|
+
"./usage-meter/report": "./dist/usage-meter/report.mjs",
|
|
129
|
+
"./vitest-otlp": "./dist/vitest-otlp.mjs",
|
|
130
|
+
"./vitest-otlp/collector-files": "./dist/vitest-otlp/collector-files.mjs",
|
|
131
|
+
"./vitest-otlp/semconv": "./dist/vitest-otlp/semconv.mjs",
|
|
132
|
+
"./vitest-otlp/setup": "./dist/vitest-otlp/setup.mjs",
|
|
133
|
+
"./vitest-otlp/tail-worker": "./dist/vitest-otlp/tail-worker.mjs",
|
|
134
|
+
"./vitest-otlp/workers": "./dist/vitest-otlp/workers.mjs",
|
|
135
|
+
"./workers-tracing/alchemy": "./dist/workers-tracing/alchemy.mjs",
|
|
136
|
+
"./workers-tracing/browser-logs": "./dist/workers-tracing/browser-logs.mjs",
|
|
137
|
+
"./workers-tracing/browser-spans": "./dist/workers-tracing/browser-spans.mjs",
|
|
138
|
+
"./workers-tracing/effect": {
|
|
139
|
+
"workerd": "./dist/workers-tracing/effect.mjs",
|
|
140
|
+
"browser": "./dist/workers-tracing/effect.browser.mjs",
|
|
141
|
+
"node": "./dist/workers-tracing/effect.browser.mjs",
|
|
142
|
+
"default": "./dist/workers-tracing/effect.mjs"
|
|
143
|
+
},
|
|
144
|
+
"./workers-tracing/elysia": {
|
|
145
|
+
"workerd": "./dist/workers-tracing/elysia.mjs",
|
|
146
|
+
"node": "./dist/workers-tracing/elysia.node.mjs",
|
|
147
|
+
"default": "./dist/workers-tracing/elysia.mjs"
|
|
148
|
+
},
|
|
149
|
+
"./workers-tracing/tanstack-start": {
|
|
150
|
+
"workerd": "./dist/workers-tracing/tanstack-start.mjs",
|
|
151
|
+
"browser": "./dist/workers-tracing/tanstack-start.browser.mjs",
|
|
152
|
+
"node": "./dist/workers-tracing/tanstack-start.browser.mjs",
|
|
153
|
+
"default": "./dist/workers-tracing/tanstack-start.mjs"
|
|
154
|
+
},
|
|
155
|
+
"./workers-tracing/trace-sink-worker": "./dist/workers-tracing/trace-sink-worker.mjs",
|
|
156
|
+
"./workers-tracing/workers-ai": "./dist/workers-tracing/workers-ai.mjs",
|
|
157
|
+
"./yohaku-protocol": "./dist/yohaku-protocol.mjs",
|
|
158
|
+
"./yohaku-protocol/sync": "./dist/yohaku-protocol/sync.mjs",
|
|
146
159
|
"./package.json": "./package.json"
|
|
147
160
|
},
|
|
148
161
|
"publishConfig": {
|
|
@@ -154,6 +167,7 @@
|
|
|
154
167
|
"@bufbuild/buf": "1.75.0",
|
|
155
168
|
"@bufbuild/protobuf": "2.17.0",
|
|
156
169
|
"@cloudflare/workers-types": "5.20261129.1",
|
|
170
|
+
"@effect/atom-react": "4.2.0",
|
|
157
171
|
"@effect/platform-node": "4.2.0",
|
|
158
172
|
"@effect/platform-node-shared": "4.2.0",
|
|
159
173
|
"@effect/sql-sqlite-node": "4.2.0",
|
|
@@ -161,19 +175,28 @@
|
|
|
161
175
|
"@fontsource-variable/roboto-flex": "5.3.0",
|
|
162
176
|
"@npmcli/package-json": "8.0.1",
|
|
163
177
|
"@opentelemetry/api": "1.10.0",
|
|
178
|
+
"@opentelemetry/browser-instrumentation": "0.12.1",
|
|
179
|
+
"@opentelemetry/browser-sdk": "0.9.1",
|
|
180
|
+
"@opentelemetry/exporter-logs-otlp-http": "0.301.2",
|
|
164
181
|
"@opentelemetry/exporter-trace-otlp-http": "0.301.2",
|
|
182
|
+
"@opentelemetry/sdk-logs": "3.1.1",
|
|
165
183
|
"@opentelemetry/sdk-node": "0.301.2",
|
|
184
|
+
"@opentelemetry/sdk-trace": "3.1.1",
|
|
166
185
|
"@paper-design/shaders": "0.0.82",
|
|
167
186
|
"@pnpm/deps.path": "1101.0.11",
|
|
168
187
|
"@pnpm/lockfile.fs": "1100.2.20",
|
|
169
188
|
"@pnpm/workspace.projects-reader": "1101.1.9",
|
|
170
189
|
"@pnpm/workspace.workspace-manifest-reader": "1100.3.4",
|
|
171
190
|
"@pnpm/workspace.workspace-manifest-writer": "1100.2.13",
|
|
191
|
+
"@tailwindcss/vite": "4.3.5",
|
|
172
192
|
"@tanstack/react-start": "1.170.0",
|
|
173
193
|
"@tanstack/router-core": "1.171.39",
|
|
194
|
+
"@tauri-apps/api": "2.13.0",
|
|
174
195
|
"@types/node": "26.6.11",
|
|
175
196
|
"@types/npmcli__package-json": "4.0.4",
|
|
176
197
|
"@types/react": "19.3.3",
|
|
198
|
+
"@types/youtube": "0.3.0",
|
|
199
|
+
"@vitejs/plugin-react": "6.3.0",
|
|
177
200
|
"@vitest/browser-playwright": "5.1.1",
|
|
178
201
|
"alchemy": "2.0.0-beta.87",
|
|
179
202
|
"class-variance-authority": "0.7.1",
|
|
@@ -182,7 +205,9 @@
|
|
|
182
205
|
"effect": "4.2.0",
|
|
183
206
|
"elysia": "1.4.32",
|
|
184
207
|
"happy-dom": "21.0.4",
|
|
208
|
+
"lucide-react": "1.83.0",
|
|
185
209
|
"miniflare": "4.20260730.0",
|
|
210
|
+
"niconico-embed-player": "0.1.2",
|
|
186
211
|
"playwright": "1.65.1",
|
|
187
212
|
"publint": "0.3.25",
|
|
188
213
|
"quicktype-core": "26.0.0",
|
|
@@ -199,18 +224,28 @@
|
|
|
199
224
|
"peerDependencies": {
|
|
200
225
|
"@alchemy.run/cloudflare": "^2.0.0-beta.85",
|
|
201
226
|
"@bufbuild/protobuf": ">=2.17.0",
|
|
227
|
+
"@effect/atom-react": ">=4.1.7",
|
|
202
228
|
"@effect/platform-node": ">=4.1.5",
|
|
203
229
|
"@effect/sql-sqlite-node": ">=4.1.5",
|
|
204
230
|
"@fontsource-variable/roboto-flex": ">=5.3.0",
|
|
205
231
|
"@npmcli/package-json": ">=8.0.1",
|
|
232
|
+
"@opentelemetry/api": ">=1.10.0",
|
|
233
|
+
"@opentelemetry/browser-instrumentation": ">=0.12.1",
|
|
234
|
+
"@opentelemetry/browser-sdk": ">=0.9.1",
|
|
235
|
+
"@opentelemetry/exporter-logs-otlp-http": ">=0.301.2",
|
|
206
236
|
"@opentelemetry/exporter-trace-otlp-http": ">=0.301.2",
|
|
237
|
+
"@opentelemetry/sdk-logs": ">=3.1.1",
|
|
207
238
|
"@opentelemetry/sdk-node": ">=0.301.2",
|
|
239
|
+
"@opentelemetry/sdk-trace": ">=3.1.1",
|
|
208
240
|
"@pnpm/deps.path": ">=1101.0.11",
|
|
209
241
|
"@pnpm/lockfile.fs": ">=1100.2.20",
|
|
210
242
|
"@pnpm/workspace.projects-reader": ">=1101.1.9",
|
|
211
243
|
"@pnpm/workspace.workspace-manifest-reader": ">=1100.3.4",
|
|
212
244
|
"@pnpm/workspace.workspace-manifest-writer": ">=1100.2.13",
|
|
245
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
213
246
|
"@tanstack/react-start": "^1.169.4",
|
|
247
|
+
"@tauri-apps/api": "^2.13.0",
|
|
248
|
+
"@vitejs/plugin-react": ">=6.3.0",
|
|
214
249
|
"@vitest/browser-playwright": ">=5.1.1",
|
|
215
250
|
"alchemy": "^2.0.0-beta.85",
|
|
216
251
|
"class-variance-authority": ">=0.7.1",
|
|
@@ -218,6 +253,8 @@
|
|
|
218
253
|
"dejavu-fonts-ttf": ">=2.37.3",
|
|
219
254
|
"effect": "^4.1.0",
|
|
220
255
|
"elysia": "^1.4.30",
|
|
256
|
+
"lucide-react": ">=1.83.0",
|
|
257
|
+
"niconico-embed-player": ">=0.1.2",
|
|
221
258
|
"playwright": ">=1.65.1",
|
|
222
259
|
"quicktype-core": ">=26.0.0",
|
|
223
260
|
"radix-ui": ">=1.8.1",
|
|
@@ -236,6 +273,9 @@
|
|
|
236
273
|
"@bufbuild/protobuf": {
|
|
237
274
|
"optional": true
|
|
238
275
|
},
|
|
276
|
+
"@effect/atom-react": {
|
|
277
|
+
"optional": true
|
|
278
|
+
},
|
|
239
279
|
"@effect/platform-node": {
|
|
240
280
|
"optional": true
|
|
241
281
|
},
|
|
@@ -248,12 +288,30 @@
|
|
|
248
288
|
"@npmcli/package-json": {
|
|
249
289
|
"optional": true
|
|
250
290
|
},
|
|
291
|
+
"@opentelemetry/api": {
|
|
292
|
+
"optional": true
|
|
293
|
+
},
|
|
294
|
+
"@opentelemetry/browser-instrumentation": {
|
|
295
|
+
"optional": true
|
|
296
|
+
},
|
|
297
|
+
"@opentelemetry/browser-sdk": {
|
|
298
|
+
"optional": true
|
|
299
|
+
},
|
|
300
|
+
"@opentelemetry/exporter-logs-otlp-http": {
|
|
301
|
+
"optional": true
|
|
302
|
+
},
|
|
251
303
|
"@opentelemetry/exporter-trace-otlp-http": {
|
|
252
304
|
"optional": true
|
|
253
305
|
},
|
|
306
|
+
"@opentelemetry/sdk-logs": {
|
|
307
|
+
"optional": true
|
|
308
|
+
},
|
|
254
309
|
"@opentelemetry/sdk-node": {
|
|
255
310
|
"optional": true
|
|
256
311
|
},
|
|
312
|
+
"@opentelemetry/sdk-trace": {
|
|
313
|
+
"optional": true
|
|
314
|
+
},
|
|
257
315
|
"@pnpm/deps.path": {
|
|
258
316
|
"optional": true
|
|
259
317
|
},
|
|
@@ -269,9 +327,18 @@
|
|
|
269
327
|
"@pnpm/workspace.workspace-manifest-writer": {
|
|
270
328
|
"optional": true
|
|
271
329
|
},
|
|
330
|
+
"@tailwindcss/vite": {
|
|
331
|
+
"optional": true
|
|
332
|
+
},
|
|
272
333
|
"@tanstack/react-start": {
|
|
273
334
|
"optional": true
|
|
274
335
|
},
|
|
336
|
+
"@tauri-apps/api": {
|
|
337
|
+
"optional": true
|
|
338
|
+
},
|
|
339
|
+
"@vitejs/plugin-react": {
|
|
340
|
+
"optional": true
|
|
341
|
+
},
|
|
275
342
|
"@vitest/browser-playwright": {
|
|
276
343
|
"optional": true
|
|
277
344
|
},
|
|
@@ -293,6 +360,12 @@
|
|
|
293
360
|
"elysia": {
|
|
294
361
|
"optional": true
|
|
295
362
|
},
|
|
363
|
+
"lucide-react": {
|
|
364
|
+
"optional": true
|
|
365
|
+
},
|
|
366
|
+
"niconico-embed-player": {
|
|
367
|
+
"optional": true
|
|
368
|
+
},
|
|
296
369
|
"playwright": {
|
|
297
370
|
"optional": true
|
|
298
371
|
},
|
|
@@ -0,0 +1,58 @@
|
|
|
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 ship inside the npm package, so the app's `src-tauri/Cargo.toml` reads them from the app's `node_modules` and they move with the npm version:
|
|
28
|
+
|
|
29
|
+
```toml
|
|
30
|
+
[dependencies]
|
|
31
|
+
desktop-shell = { path = "../node_modules/@r_masseater/masseater-utils/native/desktop-shell" }
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The crates take `version`, `edition`, `rust-version`, `repository` and `lints` from the app's workspace, so the root `Cargo.toml` defines `[workspace.package]` and `[workspace.lints]`.
|
|
35
|
+
|
|
36
|
+
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.
|
|
37
|
+
|
|
38
|
+
## Telemetry
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
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.
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
## Updates and releases
|
|
47
|
+
|
|
48
|
+
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`.
|
|
49
|
+
|
|
50
|
+
`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:
|
|
51
|
+
|
|
52
|
+
- `vp run updater-key` makes the signing key in the `<name>-release` environment and prints the public key.
|
|
53
|
+
- `bundleCollect(["nsis"])` copies the Tauri bundles into `release-assets/`.
|
|
54
|
+
- `vp run release:publish` writes the updater feed after the GitHub Release exists.
|
|
55
|
+
|
|
56
|
+
## Media notes
|
|
57
|
+
|
|
58
|
+
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"}
|
package/dist/node-main.mjs.map
DELETED
|
@@ -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"}
|
package/dist/ui/button.mjs.map
DELETED
|
@@ -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"}
|