Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(whisper): extract MSVC runtime DLLs beside win32 whisper-server (#1687)
Joshuafad475c6f4e7
diff --git a/package-lock.json b/package-lock.jsonindex 9f284419b..d4e5687ee 100644--- a/package-lock.json+++ b/package-lock.json@@ -36,14 +36,14 @@"@radix-ui/react-slot": "^1.2.3","@radix-ui/react-tabs": "^1.1.12","@tanstack/react-virtual": "^3.13.2",- "@tiptap/core": "3.22.5",- "@tiptap/extension-mention": "^3.22.5",- "@tiptap/extension-placeholder": "3.22.5",- "@tiptap/extension-task-item": "3.22.5",- "@tiptap/extension-task-list": "3.22.5",- "@tiptap/react": "3.22.5",- "@tiptap/starter-kit": "3.22.5",- "@tiptap/suggestion": "^3.22.5",+ "@tiptap/core": "3.30.4",+ "@tiptap/extension-mention": "3.30.4",+ "@tiptap/extension-placeholder": "3.30.4",+ "@tiptap/extension-task-item": "3.30.4",+ "@tiptap/extension-task-list": "3.30.4",+ "@tiptap/react": "3.30.4",+ "@tiptap/starter-kit": "3.30.4",+ "@tiptap/suggestion": "3.30.4","ai": "^6.0.116","better-auth": "1.6.27","better-sqlite3": "12.9.0",@@ -4604,48 +4604,49 @@}},"node_modules/@tiptap/core": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.22.5.tgz",- "integrity": "sha512-L1lhWz6ujGny8LduTJ7MBWYhzigwOvfUJUrJ7IzOJSuy3+OAzisdGDD1GV7LEO/hU0Hr2Mkm1wajRIHExvS9HQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.30.4.tgz",+ "integrity": "sha512-V9yKuUfV8qC9WBrnVxkFWmYLBomc3d1CwXoFSjED5DRu5q2oyxv07F+jOJSRogJAY+feHjuxvjhixwxeHm2DXQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/pm": "3.22.5"+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-blockquote": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.22.5.tgz",- "integrity": "sha512-ajyP5W8fG5Hrru47T/eF3xMKOpNvWofgNJqBTeNuGl02sYxsy9a4EunyFxudsaZP9WW3VOD4SaIWr5+MqpbnOQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.30.4.tgz",+ "integrity": "sha512-n25/pFfDpZRJS4f6Ga/PkNrQFBEr3pRvPkDlY99kl8Kt8jFa1EUxbx+uUVIilqwiUjUnHtwCfqjSDFooQjezjg==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-bold": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.22.5.tgz",- "integrity": "sha512-l/uDtpJISiFFyfctvnODNWBN/XPZI1jVZRacTRDDnSn8+x6KQ7G2qgFYueU7KvVJGDFVT39Iio56mcFRG/Pozg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.30.4.tgz",+ "integrity": "sha512-eCOkf+/jdQte7lTZ4pQF10akrsFM4TzYc0ysSAkPa7QA+ex1aI8QT5UUx+mK8RwFo57lqE8PCX/Mx1gTqlCDnQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-bubble-menu": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.22.5.tgz",- "integrity": "sha512-yrNlFQQJY5MmhBpmD8tnmaSmyUQrEvgyPKa3bzVeWEhDSG1CW4A0ZSMx3hrA9yFO0HWfw3IJmvSCycEZQBalpQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.30.4.tgz",+ "integrity": "sha512-diB5stCiuffFIIKhDAVvSYTYW/zzEVh7QqTuk2JAqdkAmAGP2YvUXXZBVhA9ITTIYD1+cp5p6rx9pdM25fsVRQ==","license": "MIT","optional": true,"dependencies": {@@ -4656,80 +4657,80 @@"url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-bullet-list": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.22.5.tgz",- "integrity": "sha512-cf54fG9AybU8NgPMv1TOcoqAkELeRc/VpnSCt/rIJZphWQx9nsFmrtkrlCatrIcCaGtNZYwlHlMnC5LVVMu0uA==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.30.4.tgz",+ "integrity": "sha512-kJFOF3U4b1ad4T7Vm+CIIp+nxcr6wwWVeqpVe6Jhq9gudsWCKP0+KVAmOiJCePoDu9fpc/ZuGMXDefXYnyQDxg==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-code": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.22.5.tgz",- "integrity": "sha512-mwDNOJC9rYbDu/JcqrN4dbUQRklJU8Fuk2raxD/IvFw9qUIcPCmxQ2XT9UTKmZz/Ju7Kdy72fss6XpgWv6gLAQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.30.4.tgz",+ "integrity": "sha512-z9v9rBA/0MecUvf8QkcKKOGgceO9X3DT/JvFNka8Mdd68V5fhBs0jGsxYrj3qDWtdXyyUQIWs0t8HzL6LTdLiA==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-code-block": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.22.5.tgz",- "integrity": "sha512-d123kCfLdJTi4fue1m0+TNFztDkmIRSZGZmGu6H9KqwG5Q7IzjT9o8lzRsz+pXxYqHvqgYmXoEpM6srbzXx/Ag==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.30.4.tgz",+ "integrity": "sha512-eKLKxgLCvi+M5tiLkW+fIMzDtR7HvSKnigSE9RYHZmzSrv1ejVjgNj5FH8nGTim98hXiQGfWotss3zqG6bpdDw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-document": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.22.5.tgz",- "integrity": "sha512-8NJERd+pCtvSuEP4C4WMGYmRRCV12ePZL7bC+QUdFlbdXg+kNZS0zZ7hh879tYA0Kidbi8rWWD1Tx+H2ezkmMw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.30.4.tgz",+ "integrity": "sha512-N+FbI+X1FVH8HxsM8C4fNkkzKXiyhXc9oh9oSqAIKOAAYGAjnHLMxW9TzYXbvm60SlAn6DIMypNf6nULGEc1oQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-dropcursor": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.22.5.tgz",- "integrity": "sha512-Mp40DaFrY3sEUVtFqmxrR0BmU4G3k8GCYYNGqNa9OqWv7BrcFDC03V2n3okESDKt4MKkzhQQmypq+ouLy8dLfA==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.30.4.tgz",+ "integrity": "sha512-P1V0y/FKdyNVBImeW3WN+uGI77Uboc0dW44izAjrII0jcW2KUoBQeNrbbm9UZR1xuRvQJ1Z0OrFHmYrxP5ClNQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extensions": "3.22.5"+ "@tiptap/extensions": "3.30.4"}},"node_modules/@tiptap/extension-floating-menu": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.22.5.tgz",- "integrity": "sha512-dhem4sTPhyQgQ+pFp2Oud4k4FSQz9PVMgeQAC9288SmGwxBkJNveDAw6sKTMrumqDvwkJrtslXIupq9TZYQnzg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.30.4.tgz",+ "integrity": "sha512-75kDLGkVqLBL7OPGNhJZQkmI3KGGVN9S5i+ZHKZEhk4HNOQUU+YMs7qu4I/XSJMXSh7mGrQlMi/OD/Fn3JmkKg==","license": "MIT","optional": true,"funding": {@@ -4738,284 +4739,285 @@},"peerDependencies": {"@floating-ui/dom": "^1.0.0",- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-gapcursor": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.22.5.tgz",- "integrity": "sha512-4WkMu7qqjbsm8hCQS+8X+la1wjriN0SKoRdvpfKH33qM50MB34tYJuGLAO+y7TTh4MMMco3AZCKPBL5JVMqNIg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.30.4.tgz",+ "integrity": "sha512-wsuXsB8Rp9BgfWlWYsRVzoHg9LwhoPAQGaw/gku1buDSTMcbLYQvok5MwJ/uJRECaJRLGgbUe5WBXoRvSY+o3g==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extensions": "3.22.5"+ "@tiptap/extensions": "3.30.4"}},"node_modules/@tiptap/extension-hard-break": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.22.5.tgz",- "integrity": "sha512-n0R2mUVYZU2AVbJhg/WcY9+zx690wVwvsItHJf0DrYbf1tCYHx+PRHUt/AoXk6u8BSmnkb8/FDziS8m3mjfpSg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.30.4.tgz",+ "integrity": "sha512-eZ66SyfgmMK861S5SYtQROT/+ZfXtDHxllz7ao+X+dcl+DMdffmOzBeSfwrHQENmgl7umjbdAjqC7PT95jaU+w==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-heading": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.22.5.tgz",- "integrity": "sha512-hjyEG4947PAhMBfP1G6B0QAh6+y9mp2C5BQmNjprA05/lQzDAT7KFZzNh8ZVp3ol6aICKq/N1gFOW9Dc/9FUOw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.30.4.tgz",+ "integrity": "sha512-sVJxoRnbfK/QC7IoUw/Ezzx9b87+cqFz5d5WZvN8O8yobDWuh7IS8ZgqZiPypTW5RuhnZI+ahvmSyO3WLm8q5Q==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-horizontal-rule": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.22.5.tgz",- "integrity": "sha512-vUV0/ugIbXOc8SJib0h8UMhgcqZXWu/dkEhlswZN4VVven1o5enkfxEiDw+OyIJHi5rUkrdhsQ/KTxG/Xb7X8A==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.30.4.tgz",+ "integrity": "sha512-RmvjVVkUf5pF70XvwI7Sb4vIUSDbLTLEcFl1l5X9vPcDgDT5G0SiUL6l8F49+qYc6wrMvnLcenApnAiiQ0Vbpw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-italic": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.22.5.tgz",- "integrity": "sha512-4T8baSiLkeIymTgEwirxDFt5YgYofkP3m1+MGYdGy2HKcOK+1vpvlPhEO1X5qtZngtJW5S4+njKjinRg52A4PA==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.30.4.tgz",+ "integrity": "sha512-6cEjcyjPRcLEMB75BwiUc6S7yzkqc7VPXCeRgY26UqMg4AvcLrseY70+pO4sLv3n2DS5w8DBbMXZJ4rb1BhpUw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-link": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.22.5.tgz",- "integrity": "sha512-d671MvF3GPKoS2OVxjIlQ7hIE7MS3hREdR+d4cvnnoiLLD+ZJ6KgDnxmWqF0a1s4qxLWK2KxKRSOIfYGE31QWQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.30.4.tgz",+ "integrity": "sha512-HPHaey3+nQZl+lsr/RvjoXSgSC67SAkNEF4qNELzzDwMUfI0UrZ3H/HhBe6XBeRnGli9gfuSpeRkh63ke5JpOw==","license": "MIT","dependencies": {- "linkifyjs": "^4.3.2"+ "linkifyjs": "^4.3.3"},"funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-list": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.22.5.tgz",- "integrity": "sha512-cVO3ZHCgxAWZ4zrFSs81FO2nyCk1wb2EHkpLpW98FzbJLkN9rDkazhW99P3HRWy/CvUldOT+8ecI1YrQtBojMg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.30.4.tgz",+ "integrity": "sha512-Usqez9DBRoG78tdLwPDcd1j1mBBU7mr5D2yrRP2JL/eXXkhAfdWqEFRYXwct5T4/o9JkGcW3aQf+gUvp12v0pw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/extension-list-item": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.22.5.tgz",- "integrity": "sha512-W7uTmyKLhlsvuTPLv+8WwnsY+mlikBFIoLSvVcBaFt4MwpsZ+DeB6KQg02Y7tbtaAnG7rXu9Fvw2QORh2P728A==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.30.4.tgz",+ "integrity": "sha512-8E1ffdC7v3dwSrsqyxY3YP5uEQHTrwBDDmYF6o2YoHfzQ9nhXX5GmBz8fTxukjXUzSpuO76N/gwHIM8hBfdxMQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-list-keymap": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.22.5.tgz",- "integrity": "sha512-cGUnxJ0y515e1bVHNjUmbx7oWHoEon59w6BA5N2KwV9iW2mZZchlTX4yxJSOX+ixeVRChsa7YwC3Z1jUZ6AMEg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.30.4.tgz",+ "integrity": "sha512-6RIzF3aThqIt4sia81K+6wA7H7bgPKjd3D66qLOGxdqdyfnAegk0OD5pUYhMZKhDCWGYKylyRVd2yIn/VNXqAg==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-mention": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-mention/-/extension-mention-3.22.5.tgz",- "integrity": "sha512-rGTbTjyxLc5C/6QjfbQF53nMbxjVgJU1VK6Si1i1J2c5DU09COgEFlYvi4YHjb3xz39SprPfG+GTtgD96eg7Ww==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-mention/-/extension-mention-3.30.4.tgz",+ "integrity": "sha512-btRMl5HmYRNU0Vyu5/J/hg1Ya7v5KOwBm2vG03LQC2+p/4wJw4nYNlQhiMDDe6CAZvChpi+abl8HHX3ob3drGA==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5",- "@tiptap/suggestion": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4",+ "@tiptap/suggestion": "3.30.4"}},"node_modules/@tiptap/extension-ordered-list": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.22.5.tgz",- "integrity": "sha512-OXdh4k4CNrukwiSdWdEQ49uvgnqvR0Z9aNSP4HI5/kZQ/Te1NtRtYCpUrzWyO/7CtjcCisXHti0o9C/TV8YMbQ==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.30.4.tgz",+ "integrity": "sha512-hInlH8I2UFGGULm9XLPtLWWFBECrYf/eNkloQb+udbF7ltLBL5JRCPcB3aM29qSSUQVxCCN8ICHdbwgpnTUAsw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-paragraph": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.22.5.tgz",- "integrity": "sha512-52KCto4+XKpnBWpIufspWLyq4UWxAWC72ANPdGuIhbi72NRTabiTbTVN40uwGSPkyakeESG0/vKdWJCVvB4f0g==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.30.4.tgz",+ "integrity": "sha512-gM0WXvOP1tNcvpyRXTCtGhwVxye0VaFMCzDPjLrVAUtZMpo3cOrqDSrFl5tCurA59Qc2p5TUOR4g3/fKw8Yx9Q==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-placeholder": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-placeholder/-/extension-placeholder-3.22.5.tgz",- "integrity": "sha512-MZAohQ3FCS763BkhGXgaWRya6WruZjwRwEAkXP8vkxbERzl2OJRjniS4uXCWzAlRb3ttE103SnY7LMdM8FvsXw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-placeholder/-/extension-placeholder-3.30.4.tgz",+ "integrity": "sha512-Bbwzse6oTNwkQVmBQF45YJ/zpFQut52tT+s+u6cWi/SwyYTMeaU4XNOV6KidkM8urERFCkF/PplAevusvWuowA==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extensions": "3.22.5"+ "@tiptap/extensions": "3.30.4"}},"node_modules/@tiptap/extension-strike": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.22.5.tgz",- "integrity": "sha512-42WrrFK5gOom/0znH85x12Mw5IQ/6O6DWdyUWoRIrNA/qJpuHtU8oVU+bIgU2tuomMGHruRjIzgBQv5sBjEtww==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.30.4.tgz",+ "integrity": "sha512-iM3QhkEvNwDsxyNKTZM4wwqYhIKOjgXHTamPWnCICrPQ3aYFVdidfpDMePlHl6XL8aEAqPa1Xlj0aumFvSphOQ==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-task-item": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-task-item/-/extension-task-item-3.22.5.tgz",- "integrity": "sha512-OVJKiq67lU+RiC6slIhhgTJBlP/Vads6MZ7Ld5wxzCtWMdGKDuzQ1dgF7vrMEs7mhSeSH3phNcIdQ5ypYftZ9w==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-task-item/-/extension-task-item-3.30.4.tgz",+ "integrity": "sha512-PArRkxRkajtqkCV7wICVCkh6LBtQhvMqRgPmoEfdOIwGSnaWXCmAe8AmtLmCjhtHRxZ5aJlYH2C0/vm2ocoYxg==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-task-list": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-task-list/-/extension-task-list-3.22.5.tgz",- "integrity": "sha512-SfZeJSALtFODs0i3fml1TSi4vQ4Uopu0p/LndK+mX5FGNBtNmWiy7Wr5cH03ANfzj8c2EzfGIyH+F2/V0HLK9g==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-task-list/-/extension-task-list-3.30.4.tgz",+ "integrity": "sha512-X83/OuCBnY97rEusL+1figMUv+aaJiSJuSKdOjm3zJi3M1KI0GbyBVZ3/LL5Y2hynfeu1rOEVd/fkaP3Z/HUBw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/extension-list": "3.22.5"+ "@tiptap/extension-list": "3.30.4"}},"node_modules/@tiptap/extension-text": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.22.5.tgz",- "integrity": "sha512-bzpDOdAEo1JeoVZDIyV0oY0jGXkEG+AzF70SzHoRSjOvFDtKWunyXf9eO1OnOr2/fmMcckT2qwUBNBMQplWBzw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.30.4.tgz",+ "integrity": "sha512-bzgVlPhkVan+m6jycXkyq08fKCNyQff/cl/5U+/wQf8s3GlX+Le2/pTxbbC3ClfO1D8VLzLwcd2HJTYIoBOdAA==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extension-underline": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.22.5.tgz",- "integrity": "sha512-9ut09rJD0iEbS6sk7yd2j6IwuFDLTNmDEGTDLodvqAfi+bq7ddsTDv0YviXoZaA9sdHAdTEVr2ITy2m6WK5jpA==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.30.4.tgz",+ "integrity": "sha512-h6nM3ykKswJLWvJVD1eiUFbanNmNj2SeV+2vuW666/xOy2WPyMnE2NZnsbvCKeK0wlUj7AE3l1m602mFwA4sDg==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5"+ "@tiptap/core": "3.30.4"}},"node_modules/@tiptap/extensions": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.22.5.tgz",- "integrity": "sha512-Ifg4MzKCj3uRqe3ieTwYnomu2y4p7EXr2avVSKZYfh12i2dyWe2Gkn1KuZDREANVE+gHqFlQjJRYzhJFwzSCrg==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.30.4.tgz",+ "integrity": "sha512-WeBl/ggeNCOoOySX7647lwtSUHWbCh8I1Qqp8NQBsGyHXEE6/7jHbKcxpw4fplOgScgVMfPz8WZ+3yrfXYCUFw==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tiptap/pm": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.22.5.tgz",- "integrity": "sha512-Cr9Mv4igxvI2tKMiahw48sZxva3PfDzypErH8IB82N+9qa9n9ygVMt0BOaDg53hLKxEEVeYr2S/wCcJIVFgBTw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.30.4.tgz",+ "integrity": "sha512-oPbE+BOzzDKkxsvF9wepTWELvq385oifDkKIigqKCPKpGqplEIHIjNztCj/nOqHCfJBiU9LcoyyWH0qkHAQ9TQ==","license": "MIT","dependencies": {- "prosemirror-changeset": "^2.3.0",- "prosemirror-commands": "^1.6.2",- "prosemirror-dropcursor": "^1.8.1",- "prosemirror-gapcursor": "^1.3.2",- "prosemirror-history": "^1.4.1",- "prosemirror-keymap": "^1.2.2",- "prosemirror-model": "^1.24.1",- "prosemirror-schema-list": "^1.5.0",- "prosemirror-state": "^1.4.3",- "prosemirror-tables": "^1.6.4",- "prosemirror-transform": "^1.10.2",- "prosemirror-view": "^1.38.1"+ "prosemirror-changeset": "^2.4.1",+ "prosemirror-commands": "^1.7.1",+ "prosemirror-dropcursor": "^1.8.2",+ "prosemirror-gapcursor": "^1.4.1",+ "prosemirror-history": "^1.5.0",+ "prosemirror-inputrules": "^1.5.1",+ "prosemirror-keymap": "^1.2.3",+ "prosemirror-model": "^1.25.11",+ "prosemirror-schema-list": "^1.5.1",+ "prosemirror-state": "^1.4.4",+ "prosemirror-tables": "^1.8.5",+ "prosemirror-transform": "^1.12.0",+ "prosemirror-view": "^1.41.9"},"funding": {"type": "github",@@ -5023,9 +5025,9 @@}},"node_modules/@tiptap/react": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-3.22.5.tgz",- "integrity": "sha512-36WHEs+vPmB//V1ff7Ujcnpz7Ey5g8lhpI/0+hoanSbdiPMTQ7qZVWwMovIkMKDlqWVp2fxBgeYM1861jyFzTw==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-3.30.4.tgz",+ "integrity": "sha512-NxGcKg4xBF6ngk6xORyzRCvG9zb7Z/cf59GpDBsiYpPpD/6m+J4kfNF0KVIOhRSAhNxm2u2ZPuGIWBtS/CDUBQ==","license": "MIT","dependencies": {"@types/use-sync-external-store": "^0.0.6",@@ -5037,12 +5039,12 @@"url": "https://github.com/sponsors/ueberdosis"},"optionalDependencies": {- "@tiptap/extension-bubble-menu": "^3.22.5",- "@tiptap/extension-floating-menu": "^3.22.5"+ "@tiptap/extension-bubble-menu": "^3.30.4",+ "@tiptap/extension-floating-menu": "^3.30.4"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5",+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4","@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0","@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0","react": "^17.0.0 || ^18.0.0 || ^19.0.0",@@ -5050,35 +5052,35 @@}},"node_modules/@tiptap/starter-kit": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.22.5.tgz",- "integrity": "sha512-LZ/LYbwH6rnDi5DnRyagkuNsYAVyhM+yJvvz+ZuYA0JkPiTXJV86J5PWSKew8M0gVfMHcNVtKjfQCvViFCeIgw==",- "license": "MIT",- "dependencies": {- "@tiptap/core": "^3.22.5",- "@tiptap/extension-blockquote": "^3.22.5",- "@tiptap/extension-bold": "^3.22.5",- "@tiptap/extension-bullet-list": "^3.22.5",- "@tiptap/extension-code": "^3.22.5",- "@tiptap/extension-code-block": "^3.22.5",- "@tiptap/extension-document": "^3.22.5",- "@tiptap/extension-dropcursor": "^3.22.5",- "@tiptap/extension-gapcursor": "^3.22.5",- "@tiptap/extension-hard-break": "^3.22.5",- "@tiptap/extension-heading": "^3.22.5",- "@tiptap/extension-horizontal-rule": "^3.22.5",- "@tiptap/extension-italic": "^3.22.5",- "@tiptap/extension-link": "^3.22.5",- "@tiptap/extension-list": "^3.22.5",- "@tiptap/extension-list-item": "^3.22.5",- "@tiptap/extension-list-keymap": "^3.22.5",- "@tiptap/extension-ordered-list": "^3.22.5",- "@tiptap/extension-paragraph": "^3.22.5",- "@tiptap/extension-strike": "^3.22.5",- "@tiptap/extension-text": "^3.22.5",- "@tiptap/extension-underline": "^3.22.5",- "@tiptap/extensions": "^3.22.5",- "@tiptap/pm": "^3.22.5"+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.30.4.tgz",+ "integrity": "sha512-rZiv2QOqfQU4/MNsAmvbymIwx0tKrGrtdJg76aEaej+aGU1QNDhZbUNutV8AnZxFjSJMm8rt810qzAU98OmCAg==",+ "license": "MIT",+ "dependencies": {+ "@tiptap/core": "3.30.4",+ "@tiptap/extension-blockquote": "3.30.4",+ "@tiptap/extension-bold": "3.30.4",+ "@tiptap/extension-bullet-list": "3.30.4",+ "@tiptap/extension-code": "3.30.4",+ "@tiptap/extension-code-block": "3.30.4",+ "@tiptap/extension-document": "3.30.4",+ "@tiptap/extension-dropcursor": "3.30.4",+ "@tiptap/extension-gapcursor": "3.30.4",+ "@tiptap/extension-hard-break": "3.30.4",+ "@tiptap/extension-heading": "3.30.4",+ "@tiptap/extension-horizontal-rule": "3.30.4",+ "@tiptap/extension-italic": "3.30.4",+ "@tiptap/extension-link": "3.30.4",+ "@tiptap/extension-list": "3.30.4",+ "@tiptap/extension-list-item": "3.30.4",+ "@tiptap/extension-list-keymap": "3.30.4",+ "@tiptap/extension-ordered-list": "3.30.4",+ "@tiptap/extension-paragraph": "3.30.4",+ "@tiptap/extension-strike": "3.30.4",+ "@tiptap/extension-text": "3.30.4",+ "@tiptap/extension-underline": "3.30.4",+ "@tiptap/extensions": "3.30.4",+ "@tiptap/pm": "3.30.4"},"funding": {"type": "github",@@ -5086,17 +5088,18 @@}},"node_modules/@tiptap/suggestion": {- "version": "3.22.5",- "resolved": "https://registry.npmjs.org/@tiptap/suggestion/-/suggestion-3.22.5.tgz",- "integrity": "sha512-Uv79Ht/o4mx1GWIT65jeQTE67LMrA+K7d8p51XOe9PJw0H0fS3iCdeMJ8tAo3h6QrMJFejdsB7z8jJL9UbAnhA==",+ "version": "3.30.4",+ "resolved": "https://registry.npmjs.org/@tiptap/suggestion/-/suggestion-3.30.4.tgz",+ "integrity": "sha512-viJYyd8xyYFlJmvxPphj/gojMwDIT1g2HRWEzKstbcLb1ox8X+Ijy45PlqgCJFIIxO9RicfIxdaR/hMK2tqG2Q==","license": "MIT","funding": {"type": "github","url": "https://github.com/sponsors/ueberdosis"},"peerDependencies": {- "@tiptap/core": "3.22.5",- "@tiptap/pm": "3.22.5"+ "@floating-ui/dom": "^1.0.0",+ "@tiptap/core": "3.30.4",+ "@tiptap/pm": "3.30.4"}},"node_modules/@tybys/wasm-util": {@@ -5580,9 +5583,9 @@}},"node_modules/@xmldom/xmldom": {- "version": "0.8.13",- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.13.tgz",- "integrity": "sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==",+ "version": "0.8.15",+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz",+ "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==","license": "MIT","engines": {"node": ">=10.0.0"@@ -11403,18 +11406,18 @@}},"node_modules/prosemirror-changeset": {- "version": "2.4.1",- "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.1.tgz",- "integrity": "sha512-96WBLhOaYhJ+kPhLg3uW359Tz6I/MfcrQfL4EGv4SrcqKEMC1gmoGrXHecPE8eOwTVCJ4IwgfzM8fFad25wNfw==",+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.2.tgz",+ "integrity": "sha512-ViYrjMSg3YFiXwIhKaluu+/mi3Yrxt6AR8ri14ulTaGcZtXO1CThl7A2gv79qx5fQnOw8woKwyBU2u+9PVCm3w==","license": "MIT","dependencies": {"prosemirror-transform": "^1.0.0"}},"node_modules/prosemirror-commands": {- "version": "1.7.1",- "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz",- "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==",+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.2.tgz",+ "integrity": "sha512-q6Q6szxqdu9Xd6EcdKsqXghu5nQdZTpB4Q9yd04WRc7/jt763e/rT60Owh0L1GYY+T46o5rD+9lEN36dZS43tw==","license": "MIT","dependencies": {"prosemirror-model": "^1.0.0",@@ -11457,6 +11460,16 @@"rope-sequence": "^1.3.0"}},+ "node_modules/prosemirror-inputrules": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.1.tgz",+ "integrity": "sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-state": "^1.0.0",+ "prosemirror-transform": "^1.0.0"+ }+ },"node_modules/prosemirror-keymap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz",@@ -11501,9 +11514,9 @@"license": "MIT"},"node_modules/prosemirror-model": {- "version": "1.25.10",- "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.10.tgz",- "integrity": "sha512-9n6rH4DbJU1eH4SxLt6Y0HhJIo6cZsb7DJ/30uob1hOKPeO6TAaMWI2tc7kwR92BjfPOU2fFHWbZLovLi3XQfA==",+ "version": "1.25.11",+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.11.tgz",+ "integrity": "sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ==","license": "MIT","dependencies": {"orderedmap": "^2.0.0"@@ -11545,18 +11558,18 @@}},"node_modules/prosemirror-transform": {- "version": "1.12.0",- "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.0.tgz",- "integrity": "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w==",+ "version": "1.12.1",+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.1.tgz",+ "integrity": "sha512-t4F5615FycnCqsX7ShTUs8+jfnwcf46kuFRvSl/3qFx2QTZ4DjgowesLHQXcFP7G//TjesqZG3WtgL7vdyVJyA==","license": "MIT","dependencies": {"prosemirror-model": "^1.21.0"}},"node_modules/prosemirror-view": {- "version": "1.42.0",- "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.0.tgz",- "integrity": "sha512-N54DF3OXNWDuP81G1kbfCys8ZzIjuL1VnvJ2mk5STSu/fNxWIcX/EutQLA3s9KR/2wVhgDi4hzBB/1fINVxk0A==",+ "version": "1.42.3",+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.3.tgz",+ "integrity": "sha512-oTN7EtH+CpwxU9NrwEYWd0UZ4JUx7l048l5A2Xppm4p/60isZYLnth9QVQmC3VRIvdrIWCxwZSd+Uz791G31/w==","license": "MIT","dependencies": {"prosemirror-model": "^1.25.8",diff --git a/package.json b/package.jsonindex 6adbe7401..ddb1b66ba 100644--- a/package.json+++ b/package.json@@ -146,14 +146,14 @@"@radix-ui/react-slot": "^1.2.3","@radix-ui/react-tabs": "^1.1.12","@tanstack/react-virtual": "^3.13.2",- "@tiptap/core": "3.22.5",- "@tiptap/extension-mention": "^3.22.5",- "@tiptap/extension-placeholder": "3.22.5",- "@tiptap/extension-task-item": "3.22.5",- "@tiptap/extension-task-list": "3.22.5",- "@tiptap/react": "3.22.5",- "@tiptap/starter-kit": "3.22.5",- "@tiptap/suggestion": "^3.22.5",+ "@tiptap/core": "3.30.4",+ "@tiptap/extension-mention": "3.30.4",+ "@tiptap/extension-placeholder": "3.30.4",+ "@tiptap/extension-task-item": "3.30.4",+ "@tiptap/extension-task-list": "3.30.4",+ "@tiptap/react": "3.30.4",+ "@tiptap/starter-kit": "3.30.4",+ "@tiptap/suggestion": "3.30.4","ai": "^6.0.116","better-auth": "1.6.27","better-sqlite3": "12.9.0",@@ -189,32 +189,32 @@},"overrides": {"adm-zip": "^0.6.0",- "@tiptap/extension-blockquote": "3.22.5",- "@tiptap/extension-bold": "3.22.5",- "@tiptap/extension-bubble-menu": "3.22.5",- "@tiptap/extension-bullet-list": "3.22.5",- "@tiptap/extension-code": "3.22.5",- "@tiptap/extension-code-block": "3.22.5",- "@tiptap/extension-document": "3.22.5",- "@tiptap/extension-dropcursor": "3.22.5",- "@tiptap/extension-floating-menu": "3.22.5",- "@tiptap/extension-gapcursor": "3.22.5",- "@tiptap/extension-hard-break": "3.22.5",- "@tiptap/extension-heading": "3.22.5",- "@tiptap/extension-horizontal-rule": "3.22.5",- "@tiptap/extension-italic": "3.22.5",- "@tiptap/extension-link": "3.22.5",- "@tiptap/extension-list": "3.22.5",- "@tiptap/extension-list-item": "3.22.5",- "@tiptap/extension-list-keymap": "3.22.5",- "@tiptap/extension-ordered-list": "3.22.5",- "@tiptap/extension-paragraph": "3.22.5",- "@tiptap/extension-strike": "3.22.5",- "@tiptap/extension-text": "3.22.5",- "@tiptap/extension-underline": "3.22.5",- "@tiptap/extensions": "3.22.5",- "@tiptap/pm": "3.22.5",- "@xmldom/xmldom": "0.8.13",+ "@tiptap/extension-blockquote": "3.30.4",+ "@tiptap/extension-bold": "3.30.4",+ "@tiptap/extension-bubble-menu": "3.30.4",+ "@tiptap/extension-bullet-list": "3.30.4",+ "@tiptap/extension-code": "3.30.4",+ "@tiptap/extension-code-block": "3.30.4",+ "@tiptap/extension-document": "3.30.4",+ "@tiptap/extension-dropcursor": "3.30.4",+ "@tiptap/extension-floating-menu": "3.30.4",+ "@tiptap/extension-gapcursor": "3.30.4",+ "@tiptap/extension-hard-break": "3.30.4",+ "@tiptap/extension-heading": "3.30.4",+ "@tiptap/extension-horizontal-rule": "3.30.4",+ "@tiptap/extension-italic": "3.30.4",+ "@tiptap/extension-link": "3.30.4",+ "@tiptap/extension-list": "3.30.4",+ "@tiptap/extension-list-item": "3.30.4",+ "@tiptap/extension-list-keymap": "3.30.4",+ "@tiptap/extension-ordered-list": "3.30.4",+ "@tiptap/extension-paragraph": "3.30.4",+ "@tiptap/extension-strike": "3.30.4",+ "@tiptap/extension-text": "3.30.4",+ "@tiptap/extension-underline": "3.30.4",+ "@tiptap/extensions": "3.30.4",+ "@tiptap/pm": "3.30.4",+ "@xmldom/xmldom": "0.8.15","fast-xml-builder": "1.2.0","fast-xml-parser": "5.7.2","ip-address": "10.2.0",diff --git a/scripts/download-llama-server.js b/scripts/download-llama-server.jsindex 4fa713cbf..ace0a3807 100644--- a/scripts/download-llama-server.js+++ b/scripts/download-llama-server.js@@ -2,6 +2,7 @@const fs = require("fs");const path = require("path");const {+ copyLibraries,downloadFile,extractArchive,fetchLatestRelease,@@ -62,36 +63,6 @@ function findAsset(release, pattern) {return release?.assets?.find((a) => pattern.test(a.name));}-function findLibrariesInDir(dir, pattern, maxDepth = 5, currentDepth = 0) {- if (currentDepth >= maxDepth) return [];-- const results = [];- const entries = fs.readdirSync(dir, { withFileTypes: true });-- for (const entry of entries) {- const fullPath = path.join(dir, entry.name);-- if (entry.isDirectory()) {- results.push(...findLibrariesInDir(fullPath, pattern, maxDepth, currentDepth + 1));- } else if (matchesPattern(entry.name, pattern)) {- results.push(fullPath);- }- }-- return results;-}--function matchesPattern(filename, pattern) {- if (pattern === "*.dylib") {- return filename.endsWith(".dylib");- } else if (pattern === "*.dll") {- return filename.endsWith(".dll");- } else if (pattern === "*.so*") {- return /\.so(\.\d+)*$/.test(filename) || filename.endsWith(".so");- }- return false;-}-async function downloadBinary(key, config, release, isForce = false) {if (!config) {console.log(` ${key}: Not supported`);@@ -135,14 +106,7 @@ async function downloadBinary(key, config, release, isForce = false) {console.log(` ${key}: Extracted to ${config.outputName}`);if (config.libPattern) {- const libraries = findLibrariesInDir(extractDir, config.libPattern);-- for (const libPath of libraries) {- const libName = path.basename(libPath);- const destPath = path.join(BIN_DIR, libName);-- fs.copyFileSync(libPath, destPath);- setExecutable(destPath);+ for (const libName of copyLibraries(extractDir, BIN_DIR, config.libPattern)) {console.log(` ${key}: Copied library ${libName}`);}}diff --git a/scripts/download-sherpa-onnx.js b/scripts/download-sherpa-onnx.jsindex 900ee5aec..b0963f235 100644--- a/scripts/download-sherpa-onnx.js+++ b/scripts/download-sherpa-onnx.js@@ -6,6 +6,7 @@ const {cleanupFiles,downloadFile,findBinaryInDir,+ findLibrariesInDir,parseArgs,setExecutable,} = require("./lib/download-utils");@@ -163,40 +164,6 @@ function extractTarBz2(archivePath, destDir) {});}-function findLibrariesInDir(dir, pattern, maxDepth = 5, currentDepth = 0) {- if (currentDepth >= maxDepth) return [];-- const results = [];- try {- const entries = fs.readdirSync(dir, { withFileTypes: true });-- for (const entry of entries) {- const fullPath = path.join(dir, entry.name);-- if (entry.isDirectory()) {- results.push(...findLibrariesInDir(fullPath, pattern, maxDepth, currentDepth + 1));- } else if (matchesPattern(entry.name, pattern)) {- results.push(fullPath);- }- }- } catch {- // Ignore permission errors- }-- return results;-}--function matchesPattern(filename, pattern) {- if (pattern === "*.dylib") {- return filename.endsWith(".dylib");- } else if (pattern === "*.dll") {- return filename.endsWith(".dll");- } else if (pattern === "*.so*") {- return /\.so(\.\d+)*$/.test(filename) || filename.endsWith(".so");- }- return false;-}-function copyBinary(extractDir, binaryName, outputPath, platformArch) {const foundPath = findBinaryInDir(extractDir, binaryName);@@ -271,7 +238,9 @@ async function downloadBinary(platformArch, config, isForce = false) {// Copy shared librariesconst copiedLibraries = [];if (config.libPattern) {- const libraries = findLibrariesInDir(extractDir, config.libPattern);+ const libraries = findLibrariesInDir(extractDir, config.libPattern, {+ ignoreReadErrors: true,+ });// Separate versioned and unversioned libraries to create symlinks where possible// e.g. libonnxruntime.dylib -> libonnxruntime.1.23.2.dylib (saves ~71MB)diff --git a/scripts/download-whisper-cpp.js b/scripts/download-whisper-cpp.jsindex 505cf90db..a8ad1a710 100644--- a/scripts/download-whisper-cpp.js+++ b/scripts/download-whisper-cpp.js@@ -2,6 +2,7 @@const fs = require("fs");const path = require("path");const {+ copyLibraries,downloadFile,extractZip,fetchLatestRelease,@@ -10,13 +11,16 @@ const {setExecutable,cleanupFiles,} = require("./lib/download-utils");+const {+ WHISPER_CPP_TAG,+ WINDOWS_MSVC_RUNTIME_LIBRARIES,+} = require("../src/helpers/whisperCppRelease");const WHISPER_CPP_REPO = "OpenWhispr/whisper.cpp";// Pinned to a tested build. Tracking the latest release let an upstream whisper.cpp bump// change transcription output between app releases with no diff to review. See #1348.-const WHISPER_CPP_TAG = process.env.WHISPER_CPP_VERSION || "0.0.8";-+// 0.0.10 is the first release whose win32 zips bundle the MSVC runtime DLLs (CUS-113).const BINARIES = {"darwin-arm64": {zipName: "whisper-server-darwin-arm64.zip",@@ -32,6 +36,10 @@ const BINARIES = {zipName: "whisper-server-win32-x64-cpu.zip",binaryName: "whisper-server-win32-x64-cpu.exe",outputName: "whisper-server-win32-x64.exe",+ // MSVC runtime DLLs the exe links dynamically; without them beside the exe,+ // machines lacking the VC++ redistributable die at load with 0xC0000135 (CUS-113)+ libPattern: "*.dll",+ requiredLibraries: WINDOWS_MSVC_RUNTIME_LIBRARIES,},"linux-x64": {zipName: "whisper-server-linux-x64-cpu.zip",@@ -57,6 +65,27 @@ function getDownloadUrl(release, zipName) {return asset?.url || null;}+function isCompleteInstall(markerPath, binaryPath, config) {+ if (!fs.existsSync(binaryPath)) return false;++ try {+ const marker = JSON.parse(fs.readFileSync(markerPath, "utf8"));+ if (marker.version !== WHISPER_CPP_TAG || !Array.isArray(marker.libraries)) return false;++ const binDir = path.dirname(markerPath);+ if (marker.libraries.some((library) => !fs.existsSync(path.join(binDir, library)))) {+ return false;+ }++ const installedLibraries = new Set(marker.libraries.map((library) => library.toLowerCase()));+ return (config.requiredLibraries || []).every((library) =>+ installedLibraries.has(library.toLowerCase())+ );+ } catch {+ return false;+ }+}+async function downloadBinary(platformArch, config, release, isForce = false) {if (!config) {console.log(` [server] ${platformArch}: Not supported`);@@ -64,11 +93,13 @@ async function downloadBinary(platformArch, config, release, isForce = false) {}const outputPath = path.join(BIN_DIR, config.outputName);+ const installMarkerPath = path.join(BIN_DIR, `.whisper-cpp-${platformArch}.json`);- if (fs.existsSync(outputPath) && !isForce) {+ if (!isForce && isCompleteInstall(installMarkerPath, outputPath, config)) {console.log(` [server] ${platformArch}: Already exists (use --force to re-download)`);return true;}+ if (isForce && fs.existsSync(installMarkerPath)) fs.unlinkSync(installMarkerPath);const url = getDownloadUrl(release, config.zipName);if (!url) {@@ -91,6 +122,27 @@ async function downloadBinary(platformArch, config, release, isForce = false) {fs.copyFileSync(binaryPath, outputPath);setExecutable(outputPath);console.log(` [server] ${platformArch}: Extracted to ${config.outputName}`);++ let copiedLibraries = [];+ if (config.libPattern) {+ copiedLibraries = copyLibraries(extractDir, BIN_DIR, config.libPattern);+ for (const libName of copiedLibraries) {+ console.log(` [server] ${platformArch}: Copied library ${libName}`);+ }+ }++ const copiedLibraryNames = new Set(copiedLibraries.map((library) => library.toLowerCase()));+ const missingLibraries = (config.requiredLibraries || []).filter(+ (library) => !copiedLibraryNames.has(library.toLowerCase())+ );+ if (missingLibraries.length > 0) {+ throw new Error(`Archive missing required libraries: ${missingLibraries.join(", ")}`);+ }++ fs.writeFileSync(+ installMarkerPath,+ JSON.stringify({ version: WHISPER_CPP_TAG, libraries: copiedLibraries })+ );} else {console.error(` [server] ${platformArch}: Binary "${config.binaryName}" not found in archive`@@ -108,6 +160,17 @@ async function downloadBinary(platformArch, config, release, isForce = false) {}}+async function downloadAllBinaries(release, isForce, download = downloadBinary) {+ let allSucceeded = true;++ for (const platformArch of Object.keys(BINARIES)) {+ const succeeded = await download(platformArch, BINARIES[platformArch], release, isForce);+ if (!succeeded) allSucceeded = false;+ }++ return allSucceeded;+}+async function main() {console.log(`\n[whisper-server] Using pinned version: ${WHISPER_CPP_TAG}`);const release = await getRelease();@@ -150,9 +213,8 @@ async function main() {}} else {console.log("Downloading binaries for all platforms:");- for (const platformArch of Object.keys(BINARIES)) {- await downloadBinary(platformArch, BINARIES[platformArch], release, args.isForce);- }+ const allSucceeded = await downloadAllBinaries(release, args.isForce);+ if (!allSucceeded) process.exitCode = 1;}console.log("\n---");@@ -170,4 +232,8 @@ async function main() {}}-main().catch(console.error);+if (require.main === module) {+ main().catch(console.error);+}++module.exports = { BINARIES, WHISPER_CPP_TAG, downloadAllBinaries, isCompleteInstall };diff --git a/scripts/lib/download-utils.js b/scripts/lib/download-utils.jsindex a3cc6e9f7..a67bb3f0e 100644--- a/scripts/lib/download-utils.js+++ b/scripts/lib/download-utils.js@@ -319,6 +319,55 @@ function setExecutable(filePath) {}}+function matchesPattern(filename, pattern) {+ if (pattern === "*.dylib") {+ return filename.endsWith(".dylib");+ } else if (pattern === "*.dll") {+ return filename.endsWith(".dll");+ } else if (pattern === "*.so*") {+ return /\.so(\.\d+)*$/.test(filename) || filename.endsWith(".so");+ }+ return false;+}++function findLibrariesInDir(dir, pattern, options = {}, currentDepth = 0) {+ const { maxDepth = 5, ignoreReadErrors = false } = options;+ if (currentDepth >= maxDepth) return [];++ const results = [];+ let entries;+ try {+ entries = fs.readdirSync(dir, { withFileTypes: true });+ } catch (error) {+ if (ignoreReadErrors) return [];+ throw error;+ }++ for (const entry of entries) {+ const fullPath = path.join(dir, entry.name);++ if (entry.isDirectory()) {+ results.push(...findLibrariesInDir(fullPath, pattern, options, currentDepth + 1));+ } else if (matchesPattern(entry.name, pattern)) {+ results.push(fullPath);+ }+ }++ return results;+}++function copyLibraries(extractDir, destDir, pattern) {+ const copied = [];+ for (const libPath of findLibrariesInDir(extractDir, pattern)) {+ const libName = path.basename(libPath);+ const destPath = path.join(destDir, libName);+ fs.copyFileSync(libPath, destPath);+ setExecutable(destPath);+ copied.push(libName);+ }+ return copied;+}+function cleanupFiles(binDir, prefix, keepPrefix) {const keepPrefixes = Array.isArray(keepPrefix) ? keepPrefix : [keepPrefix];// Never delete shared libraries; only platform binaries. The b9763 split ships@@ -335,11 +384,14 @@ function cleanupFiles(binDir, prefix, keepPrefix) {}module.exports = {+ copyLibraries,downloadFile,extractArchive,extractZip,fetchLatestRelease,findBinaryInDir,+ findLibrariesInDir,+ matchesPattern,parseArgs,setExecutable,cleanupFiles,diff --git a/src/helpers/gpuBinaryManager.js b/src/helpers/gpuBinaryManager.jsindex f10662c68..1230f1d66 100644--- a/src/helpers/gpuBinaryManager.js+++ b/src/helpers/gpuBinaryManager.js@@ -36,10 +36,17 @@ function sha256File(filePath) {});}+function getMissingRequiredLibraries(directory, assetConfig) {+ return (assetConfig.requiredLibraries || []).filter(+ (library) => !fs.existsSync(path.join(directory, library))+ );+}+// Shared download/install pipeline for GPU server binaries fetched from GitHub// releases (whisper CUDA, whisper Vulkan, llama Vulkan). Subclasses configure// the release URL, a dirName, and per-`${platform}-${arch}` assets (exact-// assetName or assetPattern regex; optional libPattern for companion libs).+// assetName or assetPattern regex; optional libPattern for companion libs and+// requiredLibraries for companions that must be present in a complete pack).// Archives are sha256-verified against expectedDigests, falling back to the// digest the GitHub API reports.//@@ -77,7 +84,8 @@ class GpuBinaryManager {if (!assetConfig) return null;const binaryPath = path.join(this.binDir, assetConfig.outputName);try {- if (fs.existsSync(binaryPath)) return binaryPath;+ if (!fs.existsSync(binaryPath)) return null;+ if (getMissingRequiredLibraries(this.binDir, assetConfig).length === 0) return binaryPath;} catch {}return null;}@@ -207,6 +215,13 @@ class GpuBinaryManager {}}+ const missingLibraries = getMissingRequiredLibraries(stagingDir, assetConfig);+ if (missingLibraries.length > 0) {+ throw new Error(+ `${this.config.name} archive is missing required libraries: ${missingLibraries.join(", ")}`+ );+ }+await fsPromises.rm(this.binDir, { recursive: true, force: true });await fsPromises.rename(stagingDir, this.binDir);stagingDir = null;diff --git a/src/helpers/whisperCppRelease.js b/src/helpers/whisperCppRelease.jsnew file mode 100644index 000000000..4dd3caa83--- /dev/null+++ b/src/helpers/whisperCppRelease.js@@ -0,0 +1,10 @@+const WHISPER_CPP_TAG = process.env.WHISPER_CPP_VERSION || "0.0.10";++const WINDOWS_MSVC_RUNTIME_LIBRARIES = Object.freeze([+ "msvcp140.dll",+ "vcruntime140.dll",+ "vcruntime140_1.dll",+ "vcomp140.dll",+]);++module.exports = { WHISPER_CPP_TAG, WINDOWS_MSVC_RUNTIME_LIBRARIES };diff --git a/src/helpers/whisperCudaManager.js b/src/helpers/whisperCudaManager.jsindex 8de193927..039b9332a 100644--- a/src/helpers/whisperCudaManager.js+++ b/src/helpers/whisperCudaManager.js@@ -1,10 +1,16 @@const GpuBinaryManager = require("./gpuBinaryManager");+const { WHISPER_CPP_TAG, WINDOWS_MSVC_RUNTIME_LIBRARIES } = require("./whisperCppRelease");// Pinned so untested future binaries never auto-ship; bump together with the digests below-const WHISPER_CPP_TAG = process.env.WHISPER_CPP_VERSION || "0.0.9";-// sha256 per release tag; tags without an entry fall back to the API-reported digestconst EXPECTED_DIGESTS = {+ // Adds app-local MSVC runtime DLLs to the Windows archive+ "0.0.10": {+ "whisper-server-win32-x64-cuda.zip":+ "4bcf9f28bb1f725163442789015a600cdbccc4c40063de97d29f40b5855bb041",+ "whisper-server-linux-x64-cuda.zip":+ "9282d706a3c1853e10f563be5fab3d7e9e544142cc73fe9e6470aaeeaf0a5454",+ },// Same source as 0.0.8; adds Pascal (sm_61) CUDA kernels"0.0.9": {"whisper-server-win32-x64-cuda.zip":@@ -35,6 +41,7 @@ class WhisperCudaManager extends GpuBinaryManager {binaryName: "whisper-server-win32-x64-cuda.exe",outputName: "whisper-server-win32-x64-cuda.exe",libPattern: /\.dll$/i,+ requiredLibraries: WINDOWS_MSVC_RUNTIME_LIBRARIES,},"linux-x64": {assetName: "whisper-server-linux-x64-cuda.zip",diff --git a/src/helpers/whisperVulkanManager.js b/src/helpers/whisperVulkanManager.jsindex a0ace36b2..300040c1f 100644--- a/src/helpers/whisperVulkanManager.js+++ b/src/helpers/whisperVulkanManager.js@@ -1,10 +1,16 @@const GpuBinaryManager = require("./gpuBinaryManager");+const { WHISPER_CPP_TAG, WINDOWS_MSVC_RUNTIME_LIBRARIES } = require("./whisperCppRelease");// Pinned so untested future binaries never auto-ship; bump together with the digests below-const WHISPER_CPP_TAG = process.env.WHISPER_CPP_VERSION || "0.0.9";-// sha256 per release tag; tags without an entry fall back to the API-reported digestconst EXPECTED_DIGESTS = {+ // Adds app-local MSVC runtime DLLs to the Windows archive+ "0.0.10": {+ "whisper-server-win32-x64-vulkan.zip":+ "327b76fb88dd6a71fe981a68d8fcf52c61b37577b5e2b71ac1849e653a4a7766",+ "whisper-server-linux-x64-vulkan.zip":+ "7bcd8b226cae9b0384613ce315fd8afab533fbdc5c3731343a09de8693eca203",+ },// Same source as 0.0.8, rebuilt alongside the Pascal CUDA kernels"0.0.9": {"whisper-server-win32-x64-vulkan.zip":@@ -22,7 +28,7 @@ const EXPECTED_DIGESTS = {const BIN_SUBDIR = "whisper-vulkan";-// Statically linked — no companion libs to copy+// Linux is statically linked; Windows still needs the app-local MSVC runtimeclass WhisperVulkanManager extends GpuBinaryManager {constructor() {super({@@ -35,6 +41,8 @@ class WhisperVulkanManager extends GpuBinaryManager {assetName: "whisper-server-win32-x64-vulkan.zip",binaryName: "whisper-server-win32-x64-vulkan.exe",outputName: "whisper-server-win32-x64-vulkan.exe",+ libPattern: /\.dll$/i,+ requiredLibraries: WINDOWS_MSVC_RUNTIME_LIBRARIES,},"linux-x64": {assetName: "whisper-server-linux-x64-vulkan.zip",diff --git a/src/utils/gpuDetection.js b/src/utils/gpuDetection.jsindex 00cccf0c8..ff1eb10cd 100644--- a/src/utils/gpuDetection.js+++ b/src/utils/gpuDetection.js@@ -3,7 +3,7 @@ const fs = require("fs");const path = require("path");const debugLogger = require("../helpers/debugLogger");-// The shipped CUDA whisper build (release 0.0.9) carries kernels for Pascal+// The shipped CUDA whisper build (release 0.0.10) carries kernels for Pascal// (compute capability 6.1) and newer; 6.1's embedded PTX also covers Volta via// driver JIT. On cards below the floor the server starts, loads the model into// VRAM, then aborts on the first kernel launch with "no kernel image isdiff --git a/test/helpers/gpuBinaryManager.test.js b/test/helpers/gpuBinaryManager.test.jsindex 8d49daf60..d20493579 100644--- a/test/helpers/gpuBinaryManager.test.js+++ b/test/helpers/gpuBinaryManager.test.js@@ -25,6 +25,13 @@ Object.defineProperty(process, "arch", { value: "x64" });const state = {};+const WINDOWS_MSVC_RUNTIME_LIBRARIES = [+ "msvcp140.dll",+ "vcruntime140.dll",+ "vcruntime140_1.dll",+ "vcomp140.dll",+];+function sha256(content) {return crypto.createHash("sha256").update(content).digest("hex");}@@ -99,6 +106,29 @@ function makeRelease(assetName, overrides = {}) {};}+function requiredLibrariesManager() {+ return new GpuBinaryManager({+ name: "test",+ dirName: "test-pack",+ releaseUrl: "https://api.github.com/repos/x/y/releases/latest",+ assets: {+ "linux-x64": {+ assetName: "bin.zip",+ binaryName: "server",+ outputName: "server-out",+ libPattern: /\.dll$/i,+ requiredLibraries: ["msvcp140.dll", "vcruntime140.dll"],+ },+ },+ });+}++function useWindowsAsset(manager) {+ const windowsAsset = manager.config.assets["win32-x64"];+ manager._getAssetConfig = () => windowsAsset;+ return manager;+}+test.beforeEach(() => {userDataDir = fs.mkdtempSync(path.join(os.tmpdir(), "gpuBinaryManager-user-"));tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "gpuBinaryManager-tmp-"));@@ -133,7 +163,7 @@ test("CUDA: resolves its exact asset from the pinned tag and installs binary + cconst manager = cudaManagerWithoutDigestPin();await manager.download();- assert.match(state.fetchedUrls[0], /OpenWhispr\/whisper\.cpp\/releases\/tags\/0\.0\.9$/);+ assert.match(state.fetchedUrls[0], /OpenWhispr\/whisper\.cpp\/releases\/tags\/0\.0\.10$/);assert.equal(state.downloads[0].url, "https://dl/whisper-server-linux-x64-cuda.zip");const binDir = path.join(userDataDir, "bin", "whisper-cuda");@@ -377,6 +407,89 @@ test("atomic install: a failure after extraction leaves no half-installed pack",);});+test("required libraries: a cached pack is incomplete when a required library is missing", () => {+ const manager = requiredLibrariesManager();+ const packDir = seedPack("test-pack", ["server-out"]);++ assert.equal(manager.isDownloaded(), false);++ fs.writeFileSync(path.join(packDir, "msvcp140.dll"), "runtime");+ assert.equal(manager.isDownloaded(), false);++ fs.writeFileSync(path.join(packDir, "vcruntime140.dll"), "runtime");+ assert.equal(manager.isDownloaded(), true);++ fs.unlinkSync(path.join(packDir, "msvcp140.dll"));+ assert.equal(manager.isDownloaded(), false);+});++test("required libraries: an incomplete archive cannot replace a working pack", async () => {+ const packDir = seedPack("test-pack", [+ "server-out",+ "msvcp140.dll",+ "vcruntime140.dll",+ ]);+ fs.writeFileSync(path.join(packDir, "server-out"), "working-binary");++ state.release = makeRelease("bin.zip");+ state.extractedFiles = {+ server: "new-binary",+ "msvcp140.dll": "new-runtime",+ };++ const manager = requiredLibrariesManager();+ await assert.rejects(() => manager.download(), {+ message: /missing required libraries: vcruntime140\.dll/,+ });++ assert.equal(fs.readFileSync(path.join(packDir, "server-out"), "utf8"), "working-binary");+ assert.equal(manager.isDownloaded(), true);+});++test("Windows whisper GPU packs require every app-local MSVC runtime library", () => {+ const managers = [+ useWindowsAsset(new WhisperCudaManager()),+ useWindowsAsset(new WhisperVulkanManager()),+ ];++ for (const manager of managers) {+ const assetConfig = manager._getAssetConfig();+ const packDir = seedPack(manager.config.dirName, [assetConfig.outputName]);++ assert.equal(manager.isDownloaded(), false, `${manager.config.name} rejects a bare exe`);++ for (const library of WINDOWS_MSVC_RUNTIME_LIBRARIES.slice(0, -1)) {+ fs.writeFileSync(path.join(packDir, library), "runtime");+ }+ assert.equal(manager.isDownloaded(), false, `${manager.config.name} rejects a partial runtime`);++ fs.writeFileSync(path.join(packDir, "vcomp140.dll"), "runtime");+ assert.equal(manager.isDownloaded(), true, `${manager.config.name} accepts the complete pack`);+ }+});++test("Windows whisper Vulkan installs the MSVC runtime libraries from its release archive", async () => {+ const manager = useWindowsAsset(new WhisperVulkanManager());+ manager.config.expectedDigests = undefined;+ const assetConfig = manager._getAssetConfig();++ state.release = makeRelease(assetConfig.assetName);+ state.extractedFiles = {+ [assetConfig.binaryName]: "binary",+ "msvcp140.dll": "runtime",+ "vcruntime140.dll": "runtime",+ "vcruntime140_1.dll": "runtime",+ "vcomp140.dll": "runtime",+ };++ await manager.download();++ assert.equal(manager.isDownloaded(), true);+ for (const library of WINDOWS_MSVC_RUNTIME_LIBRARIES) {+ assert.ok(fs.existsSync(path.join(manager.binDir, library)), `${library} copied`);+ }+});+test("re-download replaces the previous install, including stale libs", async () => {seedPack("whisper-cuda", ["whisper-server-linux-x64-cuda", "libstale.so"]);@@ -428,6 +541,20 @@ test("legacy migration: lib-free pack is moved, lib-carrying packs are cleared fassert.equal(vulkan.isDownloaded(), true);});+test("legacy migration: win32 Vulkan without the 0.0.10 DLLs is cleared for re-download", () => {+ const { migrateLegacyBinDir } = GpuBinaryManager;+ const manager = useWindowsAsset(new WhisperVulkanManager());+ const windowsAsset = manager._getAssetConfig();++ const binRoot = path.join(userDataDir, "bin");+ fs.mkdirSync(binRoot, { recursive: true });+ fs.writeFileSync(path.join(binRoot, windowsAsset.outputName), "binary");++ assert.deepEqual(migrateLegacyBinDir([manager]), ["Vulkan whisper"]);+ assert.equal(manager.isDownloaded(), false);+ assert.ok(!fs.existsSync(path.join(binRoot, windowsAsset.outputName)));+});+test("orphan detection: enabled flag with no pack on disk is reported for the notice", () => {const { detectOrphanedGpuPacks } = GpuBinaryManager;const packs = [diff --git a/test/helpers/gpuDetection.test.js b/test/helpers/gpuDetection.test.jsindex 92df13d3b..a6279fe6c 100644--- a/test/helpers/gpuDetection.test.js+++ b/test/helpers/gpuDetection.test.js@@ -24,7 +24,7 @@ test("Turing and newer report cudaSupported", () => {});});-test("Pascal is CUDA-supported since the 0.0.9 build ships sm_61 kernels", () => {+test("Pascal is CUDA-supported since the 0.0.10 build ships sm_61 kernels", () => {const info = parseNvidiaSmiGpuInfo("NVIDIA GeForce GTX 1080 Ti, 582.66, 11264, 6.1");assert.equal(info.hasNvidiaGpu, true);assert.equal(info.computeCap, 6.1);diff --git a/test/scripts/downloadWhisperCpp.test.js b/test/scripts/downloadWhisperCpp.test.jsnew file mode 100644index 000000000..e6f70b91b--- /dev/null+++ b/test/scripts/downloadWhisperCpp.test.js@@ -0,0 +1,131 @@+const test = require("node:test");+const assert = require("node:assert/strict");+const fs = require("fs");+const os = require("os");+const path = require("path");++const {+ copyLibraries,+ findLibrariesInDir,+ matchesPattern,+} = require("../../scripts/lib/download-utils");+const {+ BINARIES,+ WHISPER_CPP_TAG,+ downloadAllBinaries,+ isCompleteInstall,+} = require("../../scripts/download-whisper-cpp");++// Regression: the win32 CPU whisper-server.exe links the dynamic MSVC runtime+// (msvcp140/vcruntime140/vcruntime140_1/vcomp140). Shipping the bare exe kills it+// at load with 0xC0000135 on machines without the VC++ redistributable (CUS-113),+// so the zip's DLL companions must be extracted beside the exe like llama/sherpa do.+test("win32 whisper-server config extracts DLL companions from the release zip", () => {+ assert.equal(BINARIES["win32-x64"].libPattern, "*.dll");+ assert.deepEqual(BINARIES["win32-x64"].requiredLibraries, [+ "msvcp140.dll",+ "vcruntime140.dll",+ "vcruntime140_1.dll",+ "vcomp140.dll",+ ]);+});++test("whisper-cpp pin is a release whose win32 zips bundle the MSVC runtime DLLs", () => {+ // 0.0.8 and 0.0.9 ship a bare exe; 0.0.10 is the first tag with the DLLs.+ assert.equal(WHISPER_CPP_TAG, "0.0.10");+});++test("all-platform mode reports failure after attempting every configured download", async () => {+ const attempts = [];+ const download = async (platformArch) => {+ attempts.push(platformArch);+ return platformArch !== "win32-x64";+ };++ assert.equal(await downloadAllBinaries({ assets: [] }, false, download), false);+ assert.deepEqual(attempts, Object.keys(BINARIES));+});++test("cached win32 install is complete only for the current tag with every required DLL", () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "whisper-install-test-"));+ const binaryPath = path.join(tempDir, BINARIES["win32-x64"].outputName);+ const markerPath = path.join(tempDir, ".whisper-cpp-win32-x64.json");+ const requiredLibraries = BINARIES["win32-x64"].requiredLibraries;++ fs.writeFileSync(binaryPath, "binary");+ for (const library of requiredLibraries) {+ fs.writeFileSync(path.join(tempDir, library), library);+ }++ try {+ assert.equal(isCompleteInstall(markerPath, binaryPath, BINARIES["win32-x64"]), false);++ fs.writeFileSync(+ markerPath,+ JSON.stringify({ version: "0.0.9", libraries: requiredLibraries })+ );+ assert.equal(isCompleteInstall(markerPath, binaryPath, BINARIES["win32-x64"]), false);++ fs.writeFileSync(+ markerPath,+ JSON.stringify({ version: WHISPER_CPP_TAG, libraries: requiredLibraries.slice(1) })+ );+ assert.equal(isCompleteInstall(markerPath, binaryPath, BINARIES["win32-x64"]), false);++ fs.writeFileSync(+ markerPath,+ JSON.stringify({ version: WHISPER_CPP_TAG, libraries: requiredLibraries })+ );+ assert.equal(isCompleteInstall(markerPath, binaryPath, BINARIES["win32-x64"]), true);+ } finally {+ fs.rmSync(tempDir, { recursive: true, force: true });+ }+});++test("copyLibraries copies matching libraries from a nested extract dir", () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "whisper-dll-test-"));+ const extractDir = path.join(tempDir, "extract", "nested");+ const destDir = path.join(tempDir, "bin");+ fs.mkdirSync(extractDir, { recursive: true });+ fs.mkdirSync(destDir, { recursive: true });++ const dlls = ["msvcp140.dll", "vcruntime140.dll", "vcruntime140_1.dll", "vcomp140.dll"];+ for (const name of [...dlls, "whisper-server-win32-x64-cpu.exe", "README.md"]) {+ fs.writeFileSync(path.join(extractDir, name), name);+ }++ try {+ const copied = copyLibraries(path.join(tempDir, "extract"), destDir, "*.dll");++ assert.deepEqual(copied.sort(), dlls.slice().sort());+ for (const name of dlls) {+ assert.ok(fs.existsSync(path.join(destDir, name)), `${name} should be copied`);+ }+ assert.ok(!fs.existsSync(path.join(destDir, "whisper-server-win32-x64-cpu.exe")));+ assert.ok(!fs.existsSync(path.join(destDir, "README.md")));+ } finally {+ fs.rmSync(tempDir, { recursive: true, force: true });+ }+});++test("findLibrariesInDir propagates traversal errors by default", () => {+ const missingDir = path.join(os.tmpdir(), `missing-library-dir-${process.pid}-${Date.now()}`);++ assert.throws(() => findLibrariesInDir(missingDir, "*.dll"), { code: "ENOENT" });+});++test("findLibrariesInDir supports explicit best-effort traversal", () => {+ const missingDir = path.join(os.tmpdir(), `missing-library-dir-${process.pid}-${Date.now()}`);++ assert.deepEqual(findLibrariesInDir(missingDir, "*.dll", { ignoreReadErrors: true }), []);+});++test("matchesPattern matches each supported library pattern", () => {+ assert.ok(matchesPattern("msvcp140.dll", "*.dll"));+ assert.ok(!matchesPattern("whisper-server.exe", "*.dll"));+ assert.ok(matchesPattern("libggml.dylib", "*.dylib"));+ assert.ok(!matchesPattern("libggml.dylib", "*.dll"));+ assert.ok(matchesPattern("libonnxruntime.so", "*.so*"));+ assert.ok(matchesPattern("libonnxruntime.so.1.23.2", "*.so*"));+ assert.ok(!matchesPattern("libonnxruntime.so.1.txt", "*.so*"));+});