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
feat(sso): enterprise SSO sign-in in onboarding (#1034)
Gabriel Stein38f26886095b
diff --git a/package-lock.json b/package-lock.jsonindex bb87d4e27..5f19db49f 100644--- a/package-lock.json+++ b/package-lock.json@@ -18,6 +18,7 @@"@ai-sdk/groq": "^3.0.29","@ai-sdk/openai": "^3.0.41","@aws-sdk/credential-providers": "^3.1029.0",+ "@better-auth/sso": "1.6.19","@napi-rs/keyring": "^1.3.0","@qdrant/js-client-rest": "^1.12.0","@radix-ui/react-accordion": "^1.1.2",@@ -37,7 +38,7 @@"@tiptap/react": "3.22.5","@tiptap/starter-kit": "3.22.5","ai": "^6.0.116",- "better-auth": "1.6.11",+ "better-auth": "1.6.19","better-sqlite3": "12.9.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",@@ -255,6 +256,29 @@"zod": "^3.25.76 || ^4.1.8"}},+ "node_modules/@authenio/xml-encryption": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/@authenio/xml-encryption/-/xml-encryption-2.0.2.tgz",+ "integrity": "sha512-cTlrKttbrRHEw3W+0/I609A2Matj5JQaRvfLtEIGZvlN0RaPi+3ANsMeqAyCAVlH/lUIW2tmtBlSMni74lcXeg==",+ "license": "MIT",+ "dependencies": {+ "@xmldom/xmldom": "^0.8.6",+ "escape-html": "^1.0.3",+ "xpath": "0.0.32"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@authenio/xml-encryption/node_modules/xpath": {+ "version": "0.0.32",+ "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.32.tgz",+ "integrity": "sha512-rxMJhSIoiO8vXcWvSifKqhvV96GjiD5wYb8/QHdoRyQvraTpp4IEv944nhGausZZ3u7dhQXteZuZbaqfpB7uYw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6.0"+ }+ },"node_modules/@aws-crypto/crc32": {"version": "5.2.0","license": "Apache-2.0",@@ -1129,23 +1153,24 @@}},"node_modules/@better-auth/core": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/core/-/core-1.6.11.tgz",- "integrity": "sha512-LrwidLCV8azdMGjvtwp30nj9tIv1BwI3VhtC0UaGSjQkAVWw4bN42I8qwbxRziPeSQoj+zUVkOpxZzAWBDARtQ==",+ "version": "1.6.20",+ "resolved": "https://registry.npmjs.org/@better-auth/core/-/core-1.6.20.tgz",+ "integrity": "sha512-y73I1xNXuNYiHBFduWGRcJ2ro2rNuVDEYkgVMJtIaRXtbosdXHs9gfyQrHecgeHMHKx1SYSBT/CExak0vVMTng==","license": "MIT",+ "peer": true,"dependencies": {"@opentelemetry/semantic-conventions": "^1.39.0","@standard-schema/spec": "^1.1.0","zod": "^4.3.6"},"peerDependencies": {- "@better-auth/utils": "0.4.0",- "@better-fetch/fetch": "1.1.21",+ "@better-auth/utils": "0.4.2",+ "@better-fetch/fetch": "1.3.1","@cloudflare/workers-types": ">=4","@opentelemetry/api": "^1.9.0",- "better-call": "1.3.5",+ "better-call": "1.3.6","jose": "^6.1.0",- "kysely": "^0.28.5",+ "kysely": "^0.28.5 || ^0.29.0","nanostores": "^1.0.1"},"peerDependenciesMeta": {@@ -1158,13 +1183,13 @@}},"node_modules/@better-auth/drizzle-adapter": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/drizzle-adapter/-/drizzle-adapter-1.6.11.tgz",- "integrity": "sha512-4jpkETIGZOHCf7BK4jnu22fdN6jjomH0/HhEzkaWy3+Eppi5PYlHTF/460jrTmA3Xc+Vqwp9t282ymHiEPypGw==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/drizzle-adapter/-/drizzle-adapter-1.6.19.tgz",+ "integrity": "sha512-57C9ePorPmIEez6dHuQMz3hCTkYim0lfVRIoRtX7PiVfiRFB2bjXseQwrCJfQmkgMFlkp1s/c9nKgAjc2EvAIg==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0",+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2","drizzle-orm": "^0.45.2"},"peerDependenciesMeta": {@@ -1174,14 +1199,14 @@}},"node_modules/@better-auth/kysely-adapter": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/kysely-adapter/-/kysely-adapter-1.6.11.tgz",- "integrity": "sha512-/g8M9RfIjdcZDnbstSUvQiINkvdNlCeZr248zwqx2/PVksQI1MhQofbzUn3RnQnbPKp0EPwpX/dR3oudRFenUg==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/kysely-adapter/-/kysely-adapter-1.6.19.tgz",+ "integrity": "sha512-DlmvllEd0nv8JL+plX3JB3WTmqDFnGFOmjmIiUDHo8R3PTAvC0ZaJq3Jk+LQLN5PyVQSUzXZKtvTQYaqRHzBaw==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0",- "kysely": "^0.28.17"+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2",+ "kysely": "^0.28.17 || ^0.29.0"},"peerDependenciesMeta": {"kysely": {@@ -1190,23 +1215,23 @@}},"node_modules/@better-auth/memory-adapter": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/memory-adapter/-/memory-adapter-1.6.11.tgz",- "integrity": "sha512-hpdfw0BBf8MuzLkIdmbcUZICbY9r/bhLO2RxSnkzT5+/O+0I0u2I8+m0YUP7vNllP/ZCKASHOYgXPLO75Z0f9Q==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/memory-adapter/-/memory-adapter-1.6.19.tgz",+ "integrity": "sha512-cZ8iLRG/T8Oi/CqE9FTHj3z8pIOqRsINi50trWxPNwyY/Eyb7YCljrBi0PuqgIdyVs7BWfrrtEYTpO4ddfuwEw==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0"+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2"}},"node_modules/@better-auth/mongo-adapter": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/mongo-adapter/-/mongo-adapter-1.6.11.tgz",- "integrity": "sha512-3Tor8rSv8vSEIMEaV2PFpPEuVhqc1gNoZ6eGvoh3LwExXXuj8madew6ob+H1pH7Aphn3Ar5PQ08AguT8TbwFAA==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/mongo-adapter/-/mongo-adapter-1.6.19.tgz",+ "integrity": "sha512-8AReXqhMGiGQIPEpGbmAhh+R4g70TsAVvzwdd6Aj4q+LTSwd3tqC89TFJ4eX8KSplxm9PFBZ6g6gsRmDd7urQg==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0",+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2","mongodb": "^6.0.0 || ^7.0.0"},"peerDependenciesMeta": {@@ -1216,13 +1241,13 @@}},"node_modules/@better-auth/prisma-adapter": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/prisma-adapter/-/prisma-adapter-1.6.11.tgz",- "integrity": "sha512-Pw+7q7zTp+VSci1V+CYMvuxIbAeVMZLe4lRo46LJoAKMHfjFl5T/ycsyFvWs/DkWC7n9gZZzRDEbHp0I5FiKKw==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/prisma-adapter/-/prisma-adapter-1.6.19.tgz",+ "integrity": "sha512-pXZBhR7/bzJb48IUHlGMyz9SM9h1OCO5GIIuHEllJYt8MKgrjtsnXfUkwZh6pAUEIp3WxBEYMMK96bfkqHiWEg==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0",+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2","@prisma/client": "^5.0.0 || ^6.0.0 || ^7.0.0","prisma": "^5.0.0 || ^6.0.0 || ^7.0.0"},@@ -1235,30 +1260,51 @@}}},+ "node_modules/@better-auth/sso": {+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/sso/-/sso-1.6.19.tgz",+ "integrity": "sha512-KW/TjhOk8wqn45cho3b2Hye6oiLpNHMwEZ0XQNtHZpNz7HPAse9mkUbadHhCsyOesRBIHa+quO9E3SMYVhlr3Q==",+ "license": "MIT",+ "dependencies": {+ "fast-xml-parser": "^5.8.0",+ "jose": "^6.1.3",+ "samlify": "^2.13.1",+ "tldts": "^6.1.0",+ "zod": "^4.3.6"+ },+ "peerDependencies": {+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2",+ "@better-fetch/fetch": "1.3.1",+ "better-auth": "^1.6.19",+ "better-call": "1.3.6"+ }+ },"node_modules/@better-auth/telemetry": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/@better-auth/telemetry/-/telemetry-1.6.11.tgz",- "integrity": "sha512-hsjDHc8MZbm6/AHeNdtywrWedXevnBjmdvnHTcZub+rTVjOv+Td0roI8USKuC6uUibmrl//2rJfVCsGbopihNA==",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/telemetry/-/telemetry-1.6.19.tgz",+ "integrity": "sha512-bBaB6SMIsrD3WutDdm5YQ1bQyinANTimHD8RtpLWhNh/jIXvzgwVVCrDFqA256vcGC/ZRCydmtW8ZrUqNMW9Og==","license": "MIT","peerDependencies": {- "@better-auth/core": "^1.6.11",- "@better-auth/utils": "0.4.0",- "@better-fetch/fetch": "1.1.21"+ "@better-auth/core": "^1.6.19",+ "@better-auth/utils": "0.4.2",+ "@better-fetch/fetch": "1.3.1"}},"node_modules/@better-auth/utils": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/@better-auth/utils/-/utils-0.4.0.tgz",- "integrity": "sha512-RpMtLUIQAEWMgdPLNVbIF5ON2mm+CH0U3rCdUCU1VyeAUui4m38DyK7/aXMLZov2YDjG684pS1D0MBllrmgjQA==",+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/@better-auth/utils/-/utils-0.4.2.tgz",+ "integrity": "sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A==","license": "MIT","dependencies": {"@noble/hashes": "^2.0.1"}},"node_modules/@better-fetch/fetch": {- "version": "1.1.21",- "resolved": "https://registry.npmjs.org/@better-fetch/fetch/-/fetch-1.1.21.tgz",- "integrity": "sha512-/ImESw0sskqlVR94jB+5+Pxjf+xBwDZF/N5+y2/q4EqD7IARUTSpPfIo8uf39SYpCxyOCtbyYpUrZ3F/k0zT4A=="+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/@better-fetch/fetch/-/fetch-1.3.1.tgz",+ "integrity": "sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==",+ "license": "MIT"},"node_modules/@derhuerst/http-basic": {"version": "8.2.4",@@ -5440,11 +5486,19 @@}}},+ "node_modules/@xmldom/is-dom-node": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@xmldom/is-dom-node/-/is-dom-node-1.0.1.tgz",+ "integrity": "sha512-CJDxIgE5I0FH+ttq/Fxy6nRpxP70+e2O048EPe85J2use3XKdatVM7dDVvFNjQudd9B49NPoZ+8PG49zj4Er8Q==",+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },"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==",- "dev": true,"license": "MIT","engines": {"node": ">=10.0.0"@@ -5876,7 +5930,6 @@"node_modules/asn1": {"version": "0.2.6","license": "MIT",- "optional": true,"dependencies": {"safer-buffer": "~2.1.0"}@@ -6029,26 +6082,26 @@}},"node_modules/better-auth": {- "version": "1.6.11",- "resolved": "https://registry.npmjs.org/better-auth/-/better-auth-1.6.11.tgz",- "integrity": "sha512-Wwt6+q07dwIhsp6XiM7L1qSXVUWBEtNl+eZvwM778CguFqDZFBN9Pt6LtFaHl55t8Z+Zc//5kxcbgDY8/79vFQ==",- "license": "MIT",- "dependencies": {- "@better-auth/core": "1.6.11",- "@better-auth/drizzle-adapter": "1.6.11",- "@better-auth/kysely-adapter": "1.6.11",- "@better-auth/memory-adapter": "1.6.11",- "@better-auth/mongo-adapter": "1.6.11",- "@better-auth/prisma-adapter": "1.6.11",- "@better-auth/telemetry": "1.6.11",- "@better-auth/utils": "0.4.0",- "@better-fetch/fetch": "1.1.21",+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/better-auth/-/better-auth-1.6.19.tgz",+ "integrity": "sha512-68eXWKj0sxa0xW4+n4tENd6Co94UCynPKe1fncmO6kIB3XhSXWgwDEpiUouJV2dmLBrHM1FPkoI6Q5597zCGpQ==",+ "license": "MIT",+ "dependencies": {+ "@better-auth/core": "1.6.19",+ "@better-auth/drizzle-adapter": "1.6.19",+ "@better-auth/kysely-adapter": "1.6.19",+ "@better-auth/memory-adapter": "1.6.19",+ "@better-auth/mongo-adapter": "1.6.19",+ "@better-auth/prisma-adapter": "1.6.19",+ "@better-auth/telemetry": "1.6.19",+ "@better-auth/utils": "0.4.2",+ "@better-fetch/fetch": "1.3.1","@noble/ciphers": "^2.1.1","@noble/hashes": "^2.0.1",- "better-call": "1.3.5",+ "better-call": "1.3.6","defu": "^6.1.4","jose": "^6.1.3",- "kysely": "^0.28.17",+ "kysely": "^0.28.17 || ^0.29.0","nanostores": "^1.1.1","zod": "^4.3.6"},@@ -6133,10 +6186,39 @@}}},+ "node_modules/better-auth/node_modules/@better-auth/core": {+ "version": "1.6.19",+ "resolved": "https://registry.npmjs.org/@better-auth/core/-/core-1.6.19.tgz",+ "integrity": "sha512-ddE3Y9MoQ8t32QSO5Y8mV7pmnDAv5LdJjX1SPWUH6JUUmuOc7YEy3B5JfXZIJbRaXFdnAitN7pHPVa5u/dYAZA==",+ "license": "MIT",+ "dependencies": {+ "@opentelemetry/semantic-conventions": "^1.39.0",+ "@standard-schema/spec": "^1.1.0",+ "zod": "^4.3.6"+ },+ "peerDependencies": {+ "@better-auth/utils": "0.4.2",+ "@better-fetch/fetch": "1.3.1",+ "@cloudflare/workers-types": ">=4",+ "@opentelemetry/api": "^1.9.0",+ "better-call": "1.3.6",+ "jose": "^6.1.0",+ "kysely": "^0.28.5 || ^0.29.0",+ "nanostores": "^1.0.1"+ },+ "peerDependenciesMeta": {+ "@cloudflare/workers-types": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ }+ }+ },"node_modules/better-call": {- "version": "1.3.5",- "resolved": "https://registry.npmjs.org/better-call/-/better-call-1.3.5.tgz",- "integrity": "sha512-kOFJkBP7utAQLEYrobZm3vkTH8mXq5GNgvjc5/XEST1ilVHaxXUXfeDeFlqoETMtyqS4+3/h4ONX2i++ebZrvA==",+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/better-call/-/better-call-1.3.6.tgz",+ "integrity": "sha512-no1jI+h6Bkxs1NVBo4rONbVIzsPjZ8IUu7IHaJBiFwVX1XEQGN8KpHots5fSWmXe9nNyLuLIcgx6WEUcE6EDaA==","license": "MIT","dependencies": {"@better-auth/utils": "^0.4.0",@@ -7682,6 +7764,12 @@"node": ">=6"}},+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },"node_modules/escape-string-regexp": {"version": "4.0.0","license": "MIT",@@ -10694,6 +10782,15 @@"dev": true,"license": "MIT"},+ "node_modules/node-rsa": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz",+ "integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==",+ "license": "MIT",+ "dependencies": {+ "asn1": "^0.2.4"+ }+ },"node_modules/nopt": {"version": "8.1.0","dev": true,@@ -11824,9 +11921,23 @@},"node_modules/safer-buffer": {"version": "2.1.2",- "devOptional": true,"license": "MIT"},+ "node_modules/samlify": {+ "version": "2.13.1",+ "resolved": "https://registry.npmjs.org/samlify/-/samlify-2.13.1.tgz",+ "integrity": "sha512-vdYr/zohDGBbfWNU4miEzc1jmWOtkLySPViapC6nfGkv9KxzLq4UlGkKyryzwLw4jVlZk88Rw93HaCRVpe+t+g==",+ "license": "MIT",+ "dependencies": {+ "@authenio/xml-encryption": "^2.0.2",+ "@xmldom/xmldom": "^0.8.11",+ "node-rsa": "^1.1.1",+ "xml": "^1.0.1",+ "xml-crypto": "^6.1.2",+ "xml-escape": "^1.1.0",+ "xpath": "^0.0.34"+ }+ },"node_modules/sanitize-filename": {"version": "1.6.4","dev": true,@@ -12459,6 +12570,24 @@"version": "1.0.5","license": "MIT"},+ "node_modules/tldts": {+ "version": "6.1.86",+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz",+ "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==",+ "license": "MIT",+ "dependencies": {+ "tldts-core": "^6.1.86"+ },+ "bin": {+ "tldts": "bin/cli.js"+ }+ },+ "node_modules/tldts-core": {+ "version": "6.1.86",+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz",+ "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==",+ "license": "MIT"+ },"node_modules/tmp": {"version": "0.2.7","resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz",@@ -13271,6 +13400,41 @@}}},+ "node_modules/xml": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",+ "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==",+ "license": "MIT"+ },+ "node_modules/xml-crypto": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/xml-crypto/-/xml-crypto-6.1.2.tgz",+ "integrity": "sha512-leBOVQdVi8FvPJrMYoum7Ici9qyxfE4kVi+AkpUoYCSXaQF4IlBm1cneTK9oAxR61LpYxTx7lNcsnBIeRpGW2w==",+ "license": "MIT",+ "dependencies": {+ "@xmldom/is-dom-node": "^1.0.1",+ "@xmldom/xmldom": "^0.8.10",+ "xpath": "^0.0.33"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/xml-crypto/node_modules/xpath": {+ "version": "0.0.33",+ "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.33.tgz",+ "integrity": "sha512-NNXnzrkDrAzalLhIUc01jO2mOzXGXh1JwPgkihcLLzw98c0WgYDmmjSh1Kl3wzaxSVWMuA+fe0WTWOBDWCBmNA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6.0"+ }+ },+ "node_modules/xml-escape": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/xml-escape/-/xml-escape-1.1.0.tgz",+ "integrity": "sha512-B/T4sDK8Z6aUh/qNr7mjKAwwncIljFuUP+DO/D5hloYFj+90O88z8Wf7oSucZTHxBAsC1/CTP4rtx/x1Uf72Mg==",+ "license": "MIT License"+ },"node_modules/xml-naming": {"version": "0.1.0","resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.1.0.tgz",@@ -13312,6 +13476,15 @@"node": ">=8.0"}},+ "node_modules/xpath": {+ "version": "0.0.34",+ "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.34.tgz",+ "integrity": "sha512-FxF6+rkr1rNSQrhUNYrAFJpRXNzlDoMxeXN5qI84939ylEv3qqPFKa85Oxr6tDaJKqwW6KKyo2v26TSv3k6LeA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6.0"+ }+ },"node_modules/y18n": {"version": "5.0.8","dev": true,diff --git a/package.json b/package.jsonindex dc6a56e5f..fb2f4308e 100644--- a/package.json+++ b/package.json@@ -139,7 +139,8 @@"@tiptap/react": "3.22.5","@tiptap/starter-kit": "3.22.5","ai": "^6.0.116",- "better-auth": "1.6.11",+ "@better-auth/sso": "1.6.19",+ "better-auth": "1.6.19","better-sqlite3": "12.9.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",diff --git a/src/components/AuthenticationStep.tsx b/src/components/AuthenticationStep.tsxindex 079ed7de1..d09db672b 100644--- a/src/components/AuthenticationStep.tsx+++ b/src/components/AuthenticationStep.tsx@@ -5,6 +5,7 @@ import {authClient,AUTH_URL,signInWithSocial,+ signInWithSSO,updateLastSignInTime,type SocialProvider,} from "../lib/auth";@@ -80,6 +81,7 @@ export default function AuthenticationStep({const [isSubmitting, setIsSubmitting] = useState(false);const [isCheckingEmail, setIsCheckingEmail] = useState(false);const [isSocialLoading, setIsSocialLoading] = useState<SocialProvider | null>(null);+ const [isSSOLoading, setIsSSOLoading] = useState(false);const [error, setError] = useState<string | null>(null);const [forgotPasswordOpen, setForgotPasswordOpen] = useState(false);const [oauthProtocolRegistered, setOauthProtocolRegistered] = useState(true);@@ -101,13 +103,14 @@ export default function AuthenticationStep({}, [isLoaded, isSignedIn, user, onAuthComplete]);useEffect(() => {- if (isSocialLoading === null) return;+ if (isSocialLoading === null && !isSSOLoading) return;let timeout: ReturnType<typeof setTimeout>;const handleFocus = () => {timeout = setTimeout(() => {setIsSocialLoading(null);+ setIsSSOLoading(false);}, 1000);};@@ -116,7 +119,7 @@ export default function AuthenticationStep({window.removeEventListener("focus", handleFocus);clearTimeout(timeout);};- }, [isSocialLoading]);+ }, [isSocialLoading, isSSOLoading]);const handleSocialSignIn = useCallback(async (provider: SocialProvider) => {@@ -138,6 +141,22 @@ export default function AuthenticationStep({[t]);+ const handleSSOSignIn = useCallback(async () => {+ if (!email.trim()) {+ setError(t("auth.sso.emailRequired"));+ return;+ }+ setIsSSOLoading(true);+ setError(null);++ const result = await signInWithSSO(email.trim());++ if (result.error) {+ setError(result.error.message || t("auth.sso.failed"));+ setIsSSOLoading(false);+ }+ }, [email, t]);+const handleEmailContinue = useCallback(async () => {if (!email.trim() || !authClient) return;@@ -483,7 +502,9 @@ export default function AuthenticationStep({type="button"variant="social"onClick={() => handleSocialSignIn("apple")}- disabled={isSocialLoading !== null || isCheckingEmail || !oauthProtocolRegistered}+ disabled={+ isSocialLoading !== null || isCheckingEmail || isSSOLoading || !oauthProtocolRegistered+ }title={!oauthProtocolRegistered ? t("auth.social.protocolUnavailable") : undefined}className="w-full h-9">@@ -507,7 +528,9 @@ export default function AuthenticationStep({type="button"variant="social"onClick={() => handleSocialSignIn("google")}- disabled={isSocialLoading !== null || isCheckingEmail || !oauthProtocolRegistered}+ disabled={+ isSocialLoading !== null || isCheckingEmail || isSSOLoading || !oauthProtocolRegistered+ }title={!oauthProtocolRegistered ? t("auth.social.protocolUnavailable") : undefined}className="w-full h-9">@@ -530,7 +553,9 @@ export default function AuthenticationStep({type="button"variant="social"onClick={() => handleSocialSignIn("microsoft")}- disabled={isSocialLoading !== null || isCheckingEmail || !oauthProtocolRegistered}+ disabled={+ isSocialLoading !== null || isCheckingEmail || isSSOLoading || !oauthProtocolRegistered+ }title={!oauthProtocolRegistered ? t("auth.social.protocolUnavailable") : undefined}className="w-full h-9">@@ -577,12 +602,12 @@ export default function AuthenticationStep({onChange={(e) => setEmail(e.target.value)}className="h-9 text-sm"required- disabled={isSocialLoading !== null || isCheckingEmail}+ disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}/><Buttontype="submit"variant="outline"- disabled={!email.trim() || isSocialLoading !== null || isCheckingEmail}+ disabled={!email.trim() || isSocialLoading !== null || isCheckingEmail || isSSOLoading}className="w-full h-9">{isCheckingEmail ? (@@ -596,6 +621,24 @@ export default function AuthenticationStep({</Button></form>+ <button+ type="button"+ onClick={handleSSOSignIn}+ disabled={+ isSocialLoading !== null || isCheckingEmail || isSSOLoading || !oauthProtocolRegistered+ }+ className="w-full text-center text-xs text-muted-foreground/85 hover:text-foreground transition-colors py-1.5 rounded hover:bg-muted/30 disabled:opacity-50 disabled:pointer-events-none flex items-center justify-center gap-1.5"+ >+ {isSSOLoading ? (+ <>+ <Loader2 className="w-3.5 h-3.5 animate-spin" />+ {t("auth.social.completeInBrowser")}+ </>+ ) : (+ t("auth.sso.continueWithSSO")+ )}+ </button>+{error && (<div className="px-3 py-2 rounded-md bg-destructive/5 border border-destructive/20 flex items-center gap-2"><AlertCircle className="w-3.5 h-3.5 text-destructive shrink-0" />@@ -610,7 +653,7 @@ export default function AuthenticationStep({size="sm"onClick={onContinueWithoutAccount}className="w-full font-normal text-muted-foreground/85 hover:text-foreground hover:bg-muted/30"- disabled={isSocialLoading !== null || isCheckingEmail}+ disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}>{t("auth.emailStep.continueWithoutAccount")}</Button>diff --git a/src/lib/auth.ts b/src/lib/auth.tsindex 457745934..1cd361585 100644--- a/src/lib/auth.ts+++ b/src/lib/auth.ts@@ -1,10 +1,12 @@import { createAuthClient } from "better-auth/react";+import { ssoClient } from "@better-auth/sso/client";import { OPENWHISPR_API_URL } from "../config/constants";import { openExternalLink } from "../utils/externalLinks";export const AUTH_URL = import.meta.env.VITE_AUTH_URL || "https://auth.openwhispr.com";export const authClient = createAuthClient({baseURL: AUTH_URL,+ plugins: [ssoClient()],fetchOptions: {auth: {type: "Bearer",@@ -194,6 +196,30 @@ export async function signInWithSocial(provider: SocialProvider): Promise<{ erro}}+export async function signInWithSSO(email: string): Promise<{ error?: Error }> {+ try {+ const isElectron = Boolean((window as any).electronAPI);++ if (isElectron) {+ // Same browser-handoff rationale as signInWithSocial: the SSO state cookie+ // must land in the browser's cookie jar. The /sso shim routes by work-email+ // domain and 302s to the workspace's IdP with the cookies attached.+ const protocol = (await window.electronAPI?.getOAuthProtocol?.()) || "openwhispr";+ const url = new URL(`${AUTH_URL}/api/desktop-signin/sso`);+ url.searchParams.set("email", email);+ url.searchParams.set("callbackURL", `${DESKTOP_OAUTH_CALLBACK_URL}?protocol=${protocol}`);+ openExternalLink(url.toString());+ return {};+ }++ const callbackURL = `${window.location.href.split("?")[0].split("#")[0]}?panel=true`;+ await authClient.signIn.sso({ email, callbackURL });+ return {};+ } catch (error) {+ return { error: error instanceof Error ? error : new Error("Single sign-on failed") };+ }+}+export async function requestPasswordReset(email: string): Promise<{ error?: Error }> {try {await authClient.requestPasswordReset({diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 827f9722c..2d63051b3 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -727,6 +727,11 @@"welcomeBack": "Willkommen zurück","welcomeBackName": "Willkommen zurück, {{name}}"},+ "sso": {+ "continueWithSSO": "Mit SSO anmelden",+ "emailRequired": "Geben Sie Ihre geschäftliche E-Mail-Adresse ein, um SSO zu verwenden.",+ "failed": "Single Sign-on fehlgeschlagen. Bitte versuchen Sie es erneut."+ },"social": {"completeInBrowser": "Anmeldung im Browser abschließen","continueWithApple": "Weiter mit Apple",@@ -1383,9 +1388,9 @@"linuxPttSetupTitle": "Gedrückt halten zum Sprechen erfordert Einrichtung","linuxPttSetupDescription": "Ihr Benutzer benötigt Zugriff auf die Tastatureingabegeräte.","linuxPttSetupNote": "Melden Sie sich nach dem Ausführen des Befehls ab und wieder an.",- "hyprlandConfigWriteWarningTitle": "Hyprland-Tastenkombinationen bleiben nicht bestehen",- "hyprlandConfigWriteWarningDescription": "OpenWhispr kann nicht in {{path}} schreiben, daher überstehen Tastenkombinationen kein Neuladen der Hyprland-Konfiguration. Stellen Sie sicher, dass die Datei existiert und beschreibbar ist.",- "hyprlandUnbindDescription": "Unter Hyprland beansprucht OpenWhispr die ausgewählte Tastenkombination. Jede vorhandene Hyprland-Bindung mit derselben Tastenkombination wird aufgehoben, wenn OpenWhispr seine Tastenkombination registriert."+ "hyprlandConfigWriteWarningTitle": "Hyprland-Tastenkombinationen werden nicht dauerhaft gespeichert",+ "hyprlandConfigWriteWarningDescription": "OpenWhispr kann nicht in {{path}} schreiben. Deshalb bleiben Tastenkombinationen nach einem Neuladen der Hyprland-Konfiguration nicht erhalten. Stellen Sie sicher, dass die Datei existiert und beschreibbar ist.",+ "hyprlandUnbindDescription": "Unter Hyprland beansprucht OpenWhispr die ausgewählte Tastenkombination. Jede vorhandene Hyprland-Belegung mit derselben Tastenkombination wird aufgehoben, wenn OpenWhispr seine Tastenkombination registriert."},"meetingHotkey": {"title": "Meeting-Modus-Hotkey",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex c7c843ab3..79b6fec39 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -727,6 +727,11 @@"welcomeBack": "Welcome back","welcomeBackName": "Welcome back, {{name}}"},+ "sso": {+ "continueWithSSO": "Sign in with SSO",+ "emailRequired": "Enter your work email to use SSO.",+ "failed": "Single sign-on failed. Please try again."+ },"social": {"completeInBrowser": "Complete sign-in in your browser","continueWithApple": "Continue with Apple",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex f75ba5a59..9051c9295 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -727,6 +727,11 @@"welcomeBack": "Bienvenido de nuevo","welcomeBackName": "Bienvenido de nuevo, {{name}}"},+ "sso": {+ "continueWithSSO": "Iniciar sesión con SSO",+ "emailRequired": "Introduce tu correo del trabajo para usar SSO.",+ "failed": "Error al iniciar sesión con SSO. Inténtalo de nuevo."+ },"social": {"completeInBrowser": "Completa el inicio de sesión en tu navegador","continueWithApple": "Continuar con Apple",@@ -1433,7 +1438,7 @@"linuxPttSetupNote": "Después de ejecutar el comando, cierra sesión y vuelve a iniciarla.","hyprlandConfigWriteWarningTitle": "Los atajos de Hyprland no se conservarán","hyprlandConfigWriteWarningDescription": "OpenWhispr no puede escribir en {{path}}, así que los atajos no sobrevivirán a una recarga de la configuración de Hyprland. Asegúrate de que el archivo exista y se pueda escribir.",- "hyprlandUnbindDescription": "En Hyprland, OpenWhispr reclama el atajo seleccionado. Cualquier atajo existente de Hyprland que use la misma combinación de teclas se desvinculará cuando OpenWhispr registre su atajo."+ "hyprlandUnbindDescription": "En Hyprland, OpenWhispr reserva el atajo seleccionado. Cualquier atajo existente de Hyprland que use la misma combinación de teclas se desvinculará cuando OpenWhispr registre su atajo."},"meetingHotkey": {"title": "Atajo modo reunión",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex d81924ce5..4c3f35828 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -727,6 +727,11 @@"welcomeBack": "Bon retour","welcomeBackName": "Bon retour, {{name}}"},+ "sso": {+ "continueWithSSO": "Se connecter avec le SSO",+ "emailRequired": "Saisissez votre e-mail professionnel pour utiliser le SSO.",+ "failed": "Échec de l’authentification unique. Veuillez réessayer."+ },"social": {"completeInBrowser": "Terminez la connexion dans votre navigateur","continueWithApple": "Continuer avec Apple",@@ -1432,8 +1437,8 @@"linuxPttSetupDescription": "Votre utilisateur a besoin d'accéder aux périphériques de saisie clavier.","linuxPttSetupNote": "Après avoir exécuté la commande, déconnectez-vous et reconnectez-vous.","hyprlandConfigWriteWarningTitle": "Les raccourcis Hyprland ne seront pas conservés",- "hyprlandConfigWriteWarningDescription": "OpenWhispr ne peut pas écrire dans {{path}} ; les raccourcis ne survivront donc pas à un rechargement de la configuration Hyprland. Assurez-vous que le fichier existe et qu'il est accessible en écriture.",- "hyprlandUnbindDescription": "Sur Hyprland, OpenWhispr réserve le raccourci sélectionné. Toute association Hyprland existante utilisant la même combinaison de touches sera supprimée lorsque OpenWhispr enregistrera son raccourci."+ "hyprlandConfigWriteWarningDescription": "OpenWhispr ne peut pas écrire dans {{path}} ; les raccourcis ne survivront donc pas à un rechargement de la configuration Hyprland. Vérifiez que le fichier existe et qu'il est accessible en écriture.",+ "hyprlandUnbindDescription": "Sous Hyprland, OpenWhispr réserve le raccourci sélectionné. Tout raccourci Hyprland existant utilisant la même combinaison de touches sera supprimé quand OpenWhispr enregistrera son raccourci."},"meetingHotkey": {"title": "Raccourci mode réunion",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex b6d935ce3..824a5bc56 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -728,6 +728,11 @@"welcomeBack": "Bentornato","welcomeBackName": "Bentornato, {{name}}"},+ "sso": {+ "continueWithSSO": "Accedi con SSO",+ "emailRequired": "Inserisci la tua email di lavoro per usare l’SSO.",+ "failed": "Accesso SSO non riuscito. Riprova."+ },"social": {"completeInBrowser": "Completa l'accesso nel browser","continueWithApple": "Continua con Apple",@@ -1383,7 +1388,7 @@"linuxPttSetupTitle": "Tieni premuto per parlare richiede configurazione","linuxPttSetupDescription": "Il tuo utente ha bisogno di accesso ai dispositivi di input della tastiera.","linuxPttSetupNote": "Dopo aver eseguito il comando, esci e riaccedi.",- "hyprlandConfigWriteWarningTitle": "Le scorciatoie di Hyprland non saranno persistenti",+ "hyprlandConfigWriteWarningTitle": "Le scorciatoie di Hyprland non verranno mantenute","hyprlandConfigWriteWarningDescription": "OpenWhispr non può scrivere in {{path}}, quindi le scorciatoie non sopravvivranno a un ricaricamento della configurazione di Hyprland. Assicurati che il file esista e sia scrivibile.","hyprlandUnbindDescription": "Su Hyprland, OpenWhispr riserva la scorciatoia selezionata. Qualsiasi associazione Hyprland esistente che usa la stessa combinazione di tasti verrà rimossa quando OpenWhispr registra la sua scorciatoia."},diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex 22acc7f4a..701ad753e 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -728,6 +728,11 @@"welcomeBack": "おかえりなさい","welcomeBackName": "おかえりなさい、{{name}} さん"},+ "sso": {+ "continueWithSSO": "SSO でサインイン",+ "emailRequired": "SSO を使用するには勤務先のメールアドレスを入力してください。",+ "failed": "シングルサインオンに失敗しました。もう一度お試しください。"+ },"social": {"completeInBrowser": "ブラウザでサインインを完了してください","continueWithApple": "Apple で続ける",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex abaf655f8..e627b2eef 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -707,6 +707,11 @@"welcomeBack": "Que bom ter você de volta","welcomeBackName": "Que bom ter você de volta, {{name}}"},+ "sso": {+ "continueWithSSO": "Entrar com SSO",+ "emailRequired": "Insira seu e-mail corporativo para usar o SSO.",+ "failed": "Falha no logon único. Tente novamente."+ },"social": {"completeInBrowser": "Conclua o login no navegador","continueWithApple": "Continuar com a Apple",@@ -1363,8 +1368,8 @@"linuxPttSetupDescription": "O seu utilizador precisa de acesso aos dispositivos de entrada do teclado.","linuxPttSetupNote": "Depois de executar o comando, termine e reinicie a sessão.","hyprlandConfigWriteWarningTitle": "Os atalhos do Hyprland não serão mantidos",- "hyprlandConfigWriteWarningDescription": "O OpenWhispr não consegue escrever em {{path}}, por isso os atalhos não sobreviverão a um recarregamento da configuração do Hyprland. Certifique-se de que o ficheiro existe e pode ser escrito.",- "hyprlandUnbindDescription": "No Hyprland, o OpenWhispr reserva o atalho selecionado. Qualquer associação existente do Hyprland que use a mesma combinação de teclas será removida quando o OpenWhispr registar o seu atalho."+ "hyprlandConfigWriteWarningDescription": "O OpenWhispr não consegue escrever em {{path}}, por isso os atalhos não serão mantidos após recarregar a configuração do Hyprland. Verifique se o ficheiro existe e permite escrita.",+ "hyprlandUnbindDescription": "No Hyprland, o OpenWhispr reserva o atalho selecionado. Qualquer atalho existente do Hyprland que use a mesma combinação de teclas será desvinculado quando o OpenWhispr registar o atalho."},"meetingHotkey": {"title": "Atalho modo reunião",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 9434d09ce..34f68fbad 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -727,6 +727,11 @@"welcomeBack": "С возвращением","welcomeBackName": "С возвращением, {{name}}"},+ "sso": {+ "continueWithSSO": "Войти через SSO",+ "emailRequired": "Введите рабочий адрес электронной почты для использования SSO.",+ "failed": "Не удалось выполнить единый вход. Повторите попытку."+ },"social": {"completeInBrowser": "Завершите вход в браузере","continueWithApple": "Продолжить с Apple",@@ -1385,7 +1390,7 @@"linuxPttSetupNote": "После выполнения команды выйдите из системы и войдите снова.","hyprlandConfigWriteWarningTitle": "Привязки клавиш Hyprland не будут сохраняться","hyprlandConfigWriteWarningDescription": "OpenWhispr не может записывать в {{path}}, поэтому привязки клавиш не сохранятся после перезагрузки конфигурации Hyprland. Убедитесь, что файл существует и доступен для записи.",- "hyprlandUnbindDescription": "В Hyprland OpenWhispr занимает выбранное сочетание клавиш. Любая существующая привязка Hyprland с тем же сочетанием будет снята, когда OpenWhispr зарегистрирует свой хоткей."+ "hyprlandUnbindDescription": "В Hyprland OpenWhispr резервирует выбранное сочетание клавиш. Любая существующая привязка Hyprland, использующая ту же комбинацию, будет удалена, когда OpenWhispr зарегистрирует своё сочетание."},"meetingHotkey": {"title": "Горячая клавиша режима встречи",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex d6068e378..3ae063fa6 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -727,6 +727,11 @@"welcomeBack": "欢迎回来","welcomeBackName": "欢迎回来,{{name}}"},+ "sso": {+ "continueWithSSO": "使用 SSO 登录",+ "emailRequired": "输入您的工作邮箱以使用 SSO。",+ "failed": "单点登录失败,请重试。"+ },"social": {"completeInBrowser": "在浏览器中完成登录","continueWithApple": "使用 Apple 继续",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 0f5b5500e..87fd476a0 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -727,6 +727,11 @@"welcomeBack": "歡迎回來","welcomeBackName": "歡迎回來,{{name}}"},+ "sso": {+ "continueWithSSO": "使用 SSO 登入",+ "emailRequired": "輸入您的工作電子郵件以使用 SSO。",+ "failed": "單一登入失敗,請再試一次。"+ },"social": {"completeInBrowser": "請在瀏覽器中完成登入","continueWithApple": "使用 Apple 繼續",@@ -1378,9 +1383,9 @@"linuxPttSetupTitle": "按住說話需要設定","linuxPttSetupDescription": "您的使用者需要存取鍵盤輸入裝置的權限。","linuxPttSetupNote": "執行指令後,請登出並重新登入。",- "hyprlandConfigWriteWarningTitle": "Hyprland 鍵綁定不會持久保存",- "hyprlandConfigWriteWarningDescription": "OpenWhispr 無法寫入 {{path}},因此鍵綁定不會在 Hyprland 設定重新載入後保留。請確認該檔案存在且可寫入。",- "hyprlandUnbindDescription": "在 Hyprland 上,OpenWhispr 會占用所選快捷鍵。OpenWhispr 註冊快捷鍵時,任何使用相同組合鍵的既有 Hyprland 綁定都會被解除。"+ "hyprlandConfigWriteWarningTitle": "Hyprland 按鍵綁定不會保留",+ "hyprlandConfigWriteWarningDescription": "OpenWhispr 無法寫入 {{path}},因此重新載入 Hyprland 設定後按鍵綁定不會保留。請確認該檔案存在且可寫入。",+ "hyprlandUnbindDescription": "在 Hyprland 上,OpenWhispr 會佔用所選快捷鍵。當 OpenWhispr 註冊該快捷鍵時,任何使用相同按鍵組合的既有 Hyprland 綁定都會被解除。"},"meetingHotkey": {"title": "會議模式快捷鍵",