diff --git a/.env.example b/.env.example index 4a833811..8c6e893e 100644 --- a/.env.example +++ b/.env.example @@ -77,6 +77,7 @@ WEBPUSH_VAPID_PRIVATE_KEY= WEBPUSH_SUBJECT= # Browser bundle copy of the same public key. This is public by design and must # match WEBPUSH_VAPID_PUBLIC_KEY; never expose the private key as NEXT_PUBLIC_*. +# If blank, NAS deploy scripts read release/webpush-vapid-public.key. NEXT_PUBLIC_VAPID_PUBLIC_KEY= # Apple Push Notification service transport (Firebase-free). Token-based .p8 auth. APNS_KEY_ID= diff --git a/.gitignore b/.gitignore index 92571907..bf881db2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ release/ !/release/ /release/* !/release/product-version.json +!/release/webpush-vapid-public.key !/release/android-release-identity.json !/release/mobile-release-evidence-public.pem !/release/update-policy.json diff --git a/AGENTS.md b/AGENTS.md index e20d5eb9..644c9101 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -174,11 +174,13 @@ Rules: `npm run version:sync` when syncing surfaces; `npm run version:check` must be clean. - **Channels.** `latest` (stable), `beta`, `alpha`. Stable clients never receive a prerelease unless their channel allows it. -- **Major vs incremental.** `release/update-policy.json` decides whether an update - is mandatory (`minimumSupportedVersion`, `forceInstallBelow`) and whether to use a - full installer instead of a blockmap delta (`fullInstallOnMajorChange`, - `fullInstallVersionGap`). `stagingPercentage` limits rollout; `killSwitch` stops - update checks remotely. +- **Mandatory updates & rollout.** `release/update-policy.json` decides whether an + update is mandatory (`minimumSupportedVersion`, `forceInstallBelow`). + `stagingPercentage` limits rollout; `killSwitch` stops update checks remotely. +- **Windows full installers.** `nsis.differentialPackage: false` keeps the installer + within Cloudflare's 100 MiB upload limit, so Windows has no `.blockmap` delta and + `fullInstallVersionGap: 0` requests the full installer even for a patch. macOS + packaging is unchanged. The build/smoke gates require exactly that artifact set. - **Secrets stay fail-closed.** Publishing needs `FORGEJO_TOKEN` (`write:package` + `write:repository`) and `D3RO_UPDATE_SIGNING_KEY`; a missing or mismatched signing key fails before any upload. `WIN_CSC_*` Authenticode material is diff --git a/CHANGELOG.md b/CHANGELOG.md index f85ebe41..2bfd03ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Plugin system for custom pipelines +## [1.18.4] - 2026-11-20 + +> Supersedes the unpublished `1.18.0`–`1.18.3` installers and ships everything listed under `1.18.0`. + +### Fixed +- Keep the Windows installer below the feed's 100 MiB upload limit by removing duplicate renderer/workspace packages, non-Windows native binaries, unused SQLite sources, production source maps and the Windows copy of nut-js. Prior release directories are excluded from packaging. + +### Changed +- Windows updates now download a full installer instead of blockmap deltas. This is required to use maximum solid compression within the feed's upload limit; macOS packaging is unchanged. + +## [1.18.3] - 2026-11-20 + +> Not published: packaging included prior release directories recursively, producing an approximately 19 GB ASAR before the build timed out. Superseded by `1.18.4`, which excludes release outputs and verifies their absence. + +## [1.18.2] - 2026-11-20 + +> Not published: the 120,821,907-byte installer exceeded the feed's 100 MiB upload limit; a full-only packaging probe was still too large at 108,504,875 bytes. Superseded by `1.18.3`. + +## [1.18.1] - 2026-11-20 + +> Not published: the 120,821,996-byte installer exceeded the feed's 100 MiB upload limit. Superseded by `1.18.2`. + +### Fixed +- The Electron 43 installer can be built and can open its database again: the SQLite driver is upgraded to better-sqlite3 13, whose Node-API binary runs on both Node and Electron. The previous driver had no Electron 43 build and did not compile against it. +- The release build now verifies the packaged database driver by opening a database and running a query, instead of only checking which runtime it was compiled for. + +## [1.18.0] - 2026-11-20 + +> Screen text capture (OCR) for Windows, plus the Electron 43 toolchain upgrade and the 2026-11-17 backlog batch. Never published — see `1.18.1`. + +### Added +- **Screen text capture (OCR).** Press `Ctrl+Alt+O` (rebindable under Settings → key bindings) to freeze the monitor under the cursor and select the text on it: + - drag from a word to select along the text flow, drag from empty space (or switch to Area mode) to select with a rectangle, double-click a word, triple-click a line, `Shift`+click to extend, `Ctrl+A` for everything; + - copy the text (keeping line breaks or as one line), copy or save the selected area as an image, and save it as a **searchable PDF** whose text can be found and copied; + - translate or summarize the selection with the configured AI model, have it read aloud, open a link found in it, or search the web for it; + - switch the recognition language among the Windows OCR languages installed on the PC. +- Mobile: share a history entry as a Markdown file or as its original audio. + +### Changed +- Desktop runtime upgraded from Electron 33 to Electron 43 (with Vite 8, Vitest 5 and Node 24 for the build); clipboard reads and writes are awaited end to end. +- Screen capture for OCR reads only the target monitor through GDI (about 40 ms) instead of capturing every monitor. + +### Fixed +- Scheduled push delivery no longer fails with HTTP 401: the drain sends the `apikey` header that current Supabase service keys require. + +### Notes +- Screen text capture uses the OCR engine built into Windows and is not available on macOS yet. With only the Korean OCR language installed, small English UI text can be misread; installing the English language pack in Windows Settings adds it to the language list. +- The capture stays on the PC. It is written to disk only as a temporary file for recognition and deleted right after; only the text you select is sent to the AI model when you choose translate or summarize. + + ## [1.17.1] - 2026-11-14 > Supersedes unpublished `1.17.0` with the full-length ASAR Pickle header smoke verification fix and ships the full `1.17.0` multi-surface release. diff --git a/apps/admin-swagger/openapi.json b/apps/admin-swagger/openapi.json index 3b9a742d..42dc9a6f 100644 --- a/apps/admin-swagger/openapi.json +++ b/apps/admin-swagger/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "D3RO-VOICE Admin API", "description": "Admin CRM Edge Functions for user management, subscription CRUD, payment history, and audit logs.", - "version": "1.17.1" + "version": "1.18.4" }, "servers": [ { diff --git a/apps/admin/package.json b/apps/admin/package.json index 4378a306..d634e837 100644 --- a/apps/admin/package.json +++ b/apps/admin/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/admin", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice Admin CRM — SaaS 관리 도구", "scripts": { @@ -23,13 +23,14 @@ "@supabase/ssr": "^0.10.0", "@supabase/supabase-js": "^2.103.0", "lucide-react": "^1.33.0", - "next": "16.3.1", + "next": "16.4.6", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0" + "@types/react-dom": "^19.0.0", + "vitest": "^5.1.0" } } diff --git a/apps/admin/vitest.config.ts b/apps/admin/vitest.config.ts index 9638defc..62818395 100644 --- a/apps/admin/vitest.config.ts +++ b/apps/admin/vitest.config.ts @@ -7,8 +7,8 @@ export default defineConfig({ '@': path.resolve(__dirname, './src'), }, }, - esbuild: { - jsx: 'automatic', + oxc: { + jsx: { runtime: 'automatic' }, }, test: { globals: false, diff --git a/apps/api-server/D3ROVoice.Api.csproj b/apps/api-server/D3ROVoice.Api.csproj index 6a0e06f3..a3af6f4f 100644 --- a/apps/api-server/D3ROVoice.Api.csproj +++ b/apps/api-server/D3ROVoice.Api.csproj @@ -2,7 +2,7 @@ net10.0 - 1.17.1 + 1.18.4 enable enable diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.yml index 3f61199b..3a91573d 100644 --- a/apps/desktop/electron-builder.yml +++ b/apps/desktop/electron-builder.yml @@ -5,8 +5,10 @@ productName: D3RO Voice copyright: Copyright © 2026 D3RO # monorepo(npm workspaces)에서 electron이 루트 node_modules로 호이스팅되어 # 자동 감지가 실패하는 문제를 피하려고 명시적으로 버전 고정. -electronVersion: "33.4.11" +electronVersion: "43.8.10" # 설치 크기 절감 — 지원 로케일만 포함한다 +# Windows full-only 패키지는 차분용 1MiB 사전/비-solid 제약 없이 최대 압축을 사용한다 +compression: maximum electronLanguages: - ko - en-US @@ -19,9 +21,25 @@ directories: files: - out/**/* - - "!out/**/*.map" + # production 실행에는 앱·의존성의 source map이 필요 없다 + - "!**/*.map" + # 이전 설치 산출물은 다음 패키지의 입력이 아니다 — release/ 자체도 전부 제외한다 + - "!release/**" # ffmpeg 정적 바이너리(61MB)는 설치본에 넣지 않는다 — 필요할 때 런타임으로 내려받는다 - "!node_modules/@ffmpeg-installer/**" + # better-sqlite3 13 은 모든 플랫폼의 Node-API 프리빌드를 싣는다 — 내지 않는 플랫폼(linux)은 뺀다 + - "!node_modules/better-sqlite3/prebuilds/linux*" + # 런타임에 쓰지 않는 SQLite 소스(amalgamation) · C++ 소스 + - "!node_modules/better-sqlite3/{deps,src}/**" + # shared packages는 main/preload/renderer에 번들됐고 main locale도 out/main/locales에 복사됐다 + - "!node_modules/@d3ro/**" + # 렌더러 전용 패키지 — Vite 가 out/renderer 번들에 이미 넣었다. 메인/프리로드는 require 하지 않는다 + # (out/main · out/preload 의 require 목록으로 확인). Electron 43 으로 실행 파일이 47MB 커져 + # 설치본이 Cloudflare 업로드 한도(100MiB)를 넘었기 때문에 중복 사본을 뺀다. + - "!node_modules/{lucide-react,react,react-dom,react-is,react-markdown,react-transition-group,hoist-non-react-statics}/**" + - "!node_modules/{@mui,@emotion,@popperjs,@babel,@rollup}/**" + - "!node_modules/{babel-plugin-macros,overlayscrollbars,overlayscrollbars-react,unified,vfile,vfile-message}/**" + - "!node_modules/{micromark,micromark-*,mdast-util-*,hast-util-*,remark-*,unist-util-*}/**" # ──────────────────────────────────────────────────────────────────── # 자동 업데이트 feed — 이 설정이 있어야 electron-builder가 @@ -54,6 +72,11 @@ asarUnpack: # ──────────────────────────────────────────────────────────────────── win: icon: build/icon.ico + files: + - out/**/* + # Windows는 koffi SendInput을 사용하므로 nut-js/Jimp의 macOS·Linux 입력 경로는 제외한다 + - "!node_modules/@nut-tree-fork/**" + - "!node_modules/better-sqlite3/prebuilds/{darwin*,win32-arm64.node}" # Stable artifacts must never silently fall back to an unsigned build. forceCodeSigning: true target: @@ -143,6 +166,8 @@ extraResources: to: ollama/ nsis: + # Cloudflare 100MiB 한도 안에서 최대 solid 압축을 쓴다. Windows는 .blockmap 없이 전체 설치본을 받는다. + differentialPackage: false # 파일명 공백 금지 — mac.artifactName 주석과 동일한 이유 (latest.yml url 정합) artifactName: "D3RO-Voice-Setup-${version}-${arch}.${ext}" # oneClick=false + perMachine=false 조합이 System.dll 0xc0000005 크래시 사례(#7921). diff --git a/apps/desktop/electron.vite.config.ts b/apps/desktop/electron.vite.config.ts index dee49331..e3094497 100644 --- a/apps/desktop/electron.vite.config.ts +++ b/apps/desktop/electron.vite.config.ts @@ -88,7 +88,8 @@ export default defineConfig({ 'popups/suggestion-overlay': resolve( __dirname, 'src/renderer/popups/suggestion-overlay/index.html' - ) + ), + 'popups/screen-ocr': resolve(__dirname, 'src/renderer/popups/screen-ocr/index.html') } } }, diff --git a/apps/desktop/package.json b/apps/desktop/package.json index b54fb5cf..f5a2ea78 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/desktop", - "version": "1.17.1", + "version": "1.18.4", "productName": "d3ro-voice", "description": "로컬 AI 음성 어시스턴트 (Electron)", "main": "./out/main/index.js", @@ -37,16 +37,16 @@ "@electron-toolkit/tsconfig": "^1.0.1", "@playwright/test": "^1.62.1", "@types/better-sqlite3": "^7.6.13", - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@types/ws": "^8.18.1", - "@vitejs/plugin-react": "^4.3.0", - "electron": "33.4.11", + "@vitejs/plugin-react": "^6.3.0", + "electron": "43.8.10", "electron-builder": "^26.8.1", - "electron-vite": "^2.3.0", - "vite": "^5.4.0", - "vitest": "^2.1.0" + "electron-vite": "^6.0.0", + "vite": "^8.3.8", + "vitest": "^5.1.0" }, "dependencies": { "@d3ro/core": "*", @@ -59,7 +59,7 @@ "@mui/material": "^7.0.0", "@nut-tree-fork/nut-js": "^4.2.6", "@supabase/supabase-js": "^2.45.0", - "better-sqlite3": "^12.8.0", + "better-sqlite3": "^13.2.0", "docx": "^9.6.1", "drizzle-orm": "^0.45.2", "electron-log": "^5.2.0", diff --git a/apps/desktop/src/main/bootstrap.ts b/apps/desktop/src/main/bootstrap.ts index 550dbc3c..5917d964 100644 --- a/apps/desktop/src/main/bootstrap.ts +++ b/apps/desktop/src/main/bootstrap.ts @@ -52,6 +52,7 @@ import { RecordingTipPresenter, createWindowRecordingTipView } from './windows/r import { SuggestionOverlayPresenter, createWindowSuggestionOverlayView } from './windows/suggestion-overlay-presenter' import { ConfigEffects } from './config-effects' import { PopupNavigationController } from './windows/popup-navigation' +import { initScreenOcr } from './screen-ocr-wiring' import { setupLifecycle } from './lifecycle' import { getShutdownRegistry } from './shutdown-registry' import { shouldDismissOnEscape } from './suggestion-overlay-policy' @@ -94,6 +95,7 @@ export async function bootstrap(): Promise { { name: 'auto-launch', critical: false, fn: initAutoLaunch }, { name: 'popup-preload', critical: false, fn: initPopupWindows }, { name: 'key-bindings', critical: false, fn: initKeyBindings }, + { name: 'screen-ocr', critical: false, fn: initScreenOcrStep }, { name: 'input-intelligence', critical: false, fn: initInputIntelligence }, { name: 'voice-mode', critical: false, fn: initVoiceMode }, { name: 'stt-warmup', critical: false, fn: initSTTWarmup }, @@ -196,6 +198,12 @@ async function initIpcHandlers(): Promise { registerAllIpcHandlers() } +/** 화면 OCR — 단축키로 화면을 얼려 덮고 글자를 고른다 (조립은 screen-ocr-wiring). */ +async function initScreenOcrStep(): Promise { + const dispose = initScreenOcr() + getShutdownRegistry().register({ name: 'screen-ocr', dispose }) +} + async function initKeyBindings(): Promise { const keyBindings = getKeyBindingService() keyBindings.loadFromConfig() diff --git a/apps/desktop/src/main/screen-ocr-wiring.ts b/apps/desktop/src/main/screen-ocr-wiring.ts new file mode 100644 index 00000000..4d76638d --- /dev/null +++ b/apps/desktop/src/main/screen-ocr-wiring.ts @@ -0,0 +1,169 @@ +// src/main/screen-ocr-wiring.ts +// +// 화면 OCR 조립 — 서비스에 Electron 어댑터를 꽂고, 단축키 · 오버레이 IPC · Esc 를 잇는다. +// 정책은 ScreenOcrService 에 있다. 여기는 얇은 어댑터만 둔다. + +import { globalShortcut, ipcMain, type IpcMainEvent } from 'electron' +import { IPC_CHANNELS } from '@d3ro/core/ipc-channels' +import { D3ROError, ErrorCode } from '@d3ro/core/errors' +import { getLogger } from './services/LoggerService' +import { getKeyBindingService } from './services/KeyBindingService' +import { initScreenOcrService, type ScreenOcrRequest } from './services/ScreenOcrService' +import { createOverlayPort, createScreenOcrDeps } from './services/screen-ocr/electron-adapters' +import { getPopupTranslator, showResultPopup } from './windows/WindowManager' +import { peekScreenOcrOverlayWindow } from './windows/screen-ocr-overlay' + +const logger = getLogger('ScreenOcrWiring') + +/** 오버레이(Vanilla JS)가 쓰는 문구 — 키 이름은 popups/screen-ocr/script.js 와 짝이다. */ +const OVERLAY_STRING_KEYS = [ + 'modeText', + 'modeRect', + 'copy', + 'copyLine', + 'copyImage', + 'saveImage', + 'savePdf', + 'translate', + 'summarize', + 'speak', + 'stopSpeak', + 'openLink', + 'search', + 'selectAll', + 'close', + 'language', + 'languageAuto', + 'statusRecognizing', + 'statusReady', + 'statusEmpty', + 'statusSelected', + 'hint', + 'toastCopied', + 'toastImageCopied', + 'toastSaved', + 'working', + 'resultTranslate', + 'resultSummary', + 'errorRecognition', + 'errorUnavailable', + 'errorExport', + 'errorLlm', + 'errorTts', + 'errorLink', + 'errorInvalid', + 'errorEmpty' +] as const + +export function screenOcrOverlayStrings(): Record { + const t = getPopupTranslator() + const out: Record = {} + for (const key of OVERLAY_STRING_KEYS) out[key] = t(`screenOcr.${key}`) + return out +} + +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null && !Array.isArray(value) +} + +/** 화면 OCR 을 조립한다. 돌려주는 함수는 종료 시 정리한다. */ +export function initScreenOcr(): () => void { + const overlay = createOverlayPort() + + // 오버레이가 포커스를 못 얻은 경우(Windows 전경 잠금)에도 Esc 로 닫히게 열려 있는 동안만 잡는다. + // 저장 대화상자가 떠 있는 동안은 푼다 — 대화상자의 Esc(취소)가 오버레이까지 닫지 않게. + const ESCAPE = 'Escape' + let escapeHeld = false + let overlayOpen = false + let dialogDepth = 0 + const syncEscape = (): void => { + const wanted = overlayOpen && dialogDepth === 0 + if (wanted === escapeHeld) return + if (wanted) { + try { + escapeHeld = globalShortcut.register(ESCAPE, () => service.close()) + } catch (error) { + logger.warn(`Escape capture failed: ${error instanceof Error ? error.message : String(error)}`) + } + } else { + escapeHeld = false + globalShortcut.unregister(ESCAPE) + } + } + + const service = initScreenOcrService( + createScreenOcrDeps( + overlay, + (kind) => getPopupTranslator()(kind === 'pdf' ? 'screenOcr.dialog.savePdf' : 'screenOcr.dialog.saveImage'), + screenOcrOverlayStrings, + { + enter: () => { + dialogDepth += 1 + syncEscape() + }, + leave: () => { + dialogDepth = Math.max(0, dialogDepth - 1) + syncEscape() + } + } + ) + ) + + const start = (): void => { + service.toggle().catch((error: unknown) => { + logger.error(`Screen OCR start failed: ${error instanceof Error ? error.message : String(error)}`) + // 쓸 수 없는 환경 · 캡처 실패를 조용히 삼키지 않는다 — 왜 아무 일도 안 일어났는지 알린다. + const unavailable = error instanceof D3ROError && error.code === ErrorCode.ScreenOcrUnavailable + const t = getPopupTranslator() + showResultPopup(t(unavailable ? 'screenOcr.errorUnavailable' : 'screenOcr.errorCapture')) + }) + } + + const onTriggered = (payload: { type: string; actionId: string }): void => { + if (payload.type === 'pressed' && payload.actionId === 'screen-ocr') start() + } + getKeyBindingService().on('triggered', onTriggered) + + service.on('opened', () => { + overlayOpen = true + syncEscape() + }) + service.on('closed', () => { + overlayOpen = false + syncEscape() + }) + + /** 오버레이 창이 보낸 것만 받는다. */ + const fromOverlay = (event: IpcMainEvent): boolean => { + const win = peekScreenOcrOverlayWindow() + return win !== null && event.sender === win.webContents + } + + const onReady = (event: IpcMainEvent, data: unknown): void => { + if (!fromOverlay(event) || !isRecord(data) || typeof data.sessionId !== 'string') return + overlay.notifyReady(data.sessionId) + } + const onDismiss = (event: IpcMainEvent): void => { + if (fromOverlay(event)) service.close() + } + const onRequest = (event: IpcMainEvent, data: unknown): void => { + if (!fromOverlay(event) || !isRecord(data)) return + const { sessionId, requestId, request } = data + if (typeof sessionId !== 'string' || typeof requestId !== 'number' || !isRecord(request)) return + if (typeof request.type !== 'string') return + // 모양 검증은 서비스가 한다(글 · 영역 · 언어) — 여기서는 봉투만 확인한다. + void service.handleRequest(sessionId, requestId, request as unknown as ScreenOcrRequest) + } + + ipcMain.on(IPC_CHANNELS.POPUP_SCREEN_OCR.READY, onReady) + ipcMain.on(IPC_CHANNELS.POPUP_SCREEN_OCR.DISMISS, onDismiss) + ipcMain.on(IPC_CHANNELS.POPUP_SCREEN_OCR.REQUEST, onRequest) + + return () => { + getKeyBindingService().off('triggered', onTriggered) + ipcMain.removeListener(IPC_CHANNELS.POPUP_SCREEN_OCR.READY, onReady) + ipcMain.removeListener(IPC_CHANNELS.POPUP_SCREEN_OCR.DISMISS, onDismiss) + ipcMain.removeListener(IPC_CHANNELS.POPUP_SCREEN_OCR.REQUEST, onRequest) + service.dispose() + } +} diff --git a/apps/desktop/src/main/services/ConfigService.ts b/apps/desktop/src/main/services/ConfigService.ts index 3e11b441..62530c50 100644 --- a/apps/desktop/src/main/services/ConfigService.ts +++ b/apps/desktop/src/main/services/ConfigService.ts @@ -182,6 +182,7 @@ const CONFIG_DEFAULTS: AppConfig = { agentModeEnabled: false, handsFreeEnabled: false, screenContextEnabled: false, + screenOcrLanguage: 'auto', hfToken: '', diarizationEnabled: false, supabaseUrl: '', diff --git a/apps/desktop/src/main/services/ScreenContextService.ts b/apps/desktop/src/main/services/ScreenContextService.ts index 35ba1237..c5c2715d 100644 --- a/apps/desktop/src/main/services/ScreenContextService.ts +++ b/apps/desktop/src/main/services/ScreenContextService.ts @@ -248,7 +248,7 @@ export class ScreenContextService { // 1. 기존 클립보드 저장 + 온전히 되돌릴 수 있는지 판정 (삽입과 같은 정책) // 탐색기에서 복사한 파일·Excel 셀처럼 다 되돌릴 수 없으면 캡처를 건너뛴다 — 부가 문맥 하나 때문에 // 사용자가 복사해 둔 것을 지우면 안 된다(예전엔 파일 복사본이 '비어 있음'으로 보여 clear() 됐다). - const restore = planClipboardRestore(captureClipboard(port)) + const restore = planClipboardRestore(await captureClipboard(port)) if (restore.kind === 'unrestorable' || (restore.kind === 'write' && restore.dropped.length > 0)) { logger.info('선택 텍스트 캡처 건너뜀: 클립보드를 온전히 되돌릴 수 없다') return null @@ -271,7 +271,7 @@ export class ScreenContextService { await this._sleep(150) // 5. 클립보드에서 텍스트 읽기 - const text = port.readText() + const text = await port.readText() // 6. 클립보드 복원 this._restoreClipboard(restore) diff --git a/apps/desktop/src/main/services/ScreenOcrService.ts b/apps/desktop/src/main/services/ScreenOcrService.ts new file mode 100644 index 00000000..e0ef3155 --- /dev/null +++ b/apps/desktop/src/main/services/ScreenOcrService.ts @@ -0,0 +1,555 @@ +// src/main/services/ScreenOcrService.ts +// +// 화면 OCR — 단축키로 지금 화면을 얼려 덮고, 그 위의 글자를 끌어서 고르게 한다. +// +// 이 서비스가 소유하는 것은 **캡처 한 번의 수명주기와 그 위의 동작 정책**이다: +// 캡처 → 오버레이 표시 → (비동기) 글자 인식 → 오버레이의 요청 처리 → 닫기(정리) +// 선택 계산 · 글 만들기 · PDF 문서 모양은 @d3ro/core/screen-ocr 가 정본이고, 화면 캡처 · OCR 엔진 · +// 창 · 파일 · 클립보드 · LLM · TTS 는 전부 포트로 받는다(Electron 어댑터는 screen-ocr/electron-adapters.ts). +// +// 사생활: 캡처한 그림은 인식에 쓰는 임시 파일 하나로만 디스크에 닿고, 인식이 끝나면 곧바로 지운다. +// 닫으면 메모리의 그림도 놓는다. 어디에도 보내지 않는다(번역·요약은 사용자가 고른 글자만 LLM 으로 간다). + +import { EventEmitter } from 'events' +import { randomUUID } from 'crypto' +import { D3ROError, ErrorCode } from '@d3ro/core/errors' +import { + buildSearchablePdfHtml, + chooseOcrScale, + clampRect, + pickTranslationTarget, + wordsRelativeTo, + type OcrRect, + type OcrResult +} from '@d3ro/core/screen-ocr' +import { getLogger } from './LoggerService' +import type { OcrEnginePort } from './screen-ocr/windows-ocr-engine' + +const logger = getLogger('ScreenOcrService') + +/** LLM 으로 보내는 글의 상한 — 화면 한 장을 통째로 골라도 프롬프트가 터지지 않게. */ +export const SCREEN_OCR_MAX_LLM_CHARS = 12_000 +const LLM_TIMEOUT_MS = 90_000 + +// ============================================================ +// 포트 +// ============================================================ + +/** 캡처한 화면 한 장. */ +export interface ScreenShot { + /** 전체 그림 (PNG) */ + png: Buffer + /** 그림 크기 (물리 픽셀) */ + width: number + height: number + /** 그 화면의 배율 (1 · 1.25 · 1.5 · 2 …) */ + scaleFactor: number + /** 그 화면의 자리 (DIP) — 오버레이 창이 덮을 영역 */ + displayBounds: OcrRect + /** 영역을 잘라 PNG 로 (물리 픽셀 좌표) */ + crop(rect: OcrRect): Buffer +} + +export interface ScreenOcrOverlayPort { + /** 오버레이를 화면에 덮고 새 캡처를 알린다 */ + show(bounds: OcrRect, payload: ScreenOcrSessionPayload): void + sendRecognized(payload: ScreenOcrRecognizedPayload): void + respond(payload: ScreenOcrResponse): void + hide(): void +} + +export interface ScreenOcrFilesPort { + /** 임시 파일로 쓰고 경로를 돌려준다 */ + writeTemp(name: string, data: Buffer | string): Promise + remove(path: string): Promise + /** 저장 위치를 묻는다. 취소하면 null */ + askSavePath(kind: 'pdf' | 'png', defaultName: string): Promise + write(path: string, data: Buffer): Promise +} + +export interface ScreenOcrDeps { + capture: () => Promise + engine: OcrEnginePort + overlay: ScreenOcrOverlayPort + files: ScreenOcrFilesPort + /** HTML 파일 → PDF */ + renderPdf: (htmlPath: string) => Promise + /** Electron 43 부터 글 쓰기가 비동기다 — 끝까지 기다려 실패를 성공으로 꾸미지 않는다 */ + clipboard: { writeText(text: string): Promise; writeImage(png: Buffer): Promise } + llm: { + translate(text: string, targetLanguage: string, signal: AbortSignal, timeoutMs: number): Promise + summarize(text: string, signal: AbortSignal, timeoutMs: number): Promise + } + tts: { speak(text: string): Promise; stop(): void } + openExternal: (url: string) => Promise + config: { + getOcrLanguage(): string + setOcrLanguage(language: string): void + getAppLocale(): string + getTranslationTarget(): string + } + /** 오버레이 문구 (앱 언어) */ + strings: () => Record + now?: () => number +} + +// ============================================================ +// 오버레이와 주고받는 값 +// ============================================================ + +export interface ScreenOcrSessionPayload { + sessionId: string + /** 전체 그림 (PNG) */ + image: Uint8Array + width: number + height: number + /** 고를 수 있는 인식 언어 (설치된 것). 아직 못 읽었으면 비어 있고, 인식 결과와 함께 다시 온다. */ + languages: string[] + /** 지금 고른 인식 언어 ('auto' 포함) */ + language: string + _i18n: Record +} + +export type ScreenOcrRecognizedPayload = + | { sessionId: string; ok: true; result: OcrResult; languages: string[] } + | { sessionId: string; ok: false; error: ScreenOcrErrorKind; languages: string[] } + +/** 오버레이가 문구로 옮기는 실패 종류. */ +export type ScreenOcrErrorKind = + | 'recognition' + | 'unavailable' + | 'export' + | 'llm' + | 'tts' + | 'link' + | 'invalid' + | 'empty' + +export type ScreenOcrRequest = + | { type: 'copy-text'; text: string } + | { type: 'copy-image'; rect: OcrRect | null } + | { type: 'save-image'; rect: OcrRect | null } + | { type: 'save-pdf'; rect: OcrRect | null } + | { type: 'translate'; text: string } + | { type: 'summarize'; text: string } + | { type: 'speak'; text: string } + | { type: 'stop-speak' } + | { type: 'open-link'; url: string } + | { type: 'search-web'; text: string } + | { type: 'set-language'; language: string } + +export type ScreenOcrResponse = + | { requestId: number; ok: true; text?: string; cancelled?: boolean } + | { requestId: number; ok: false; error: ScreenOcrErrorKind } + +interface Session { + id: string + shot: ScreenShot + result: OcrResult | null + /** 닫히면 진행 중인 인식 · LLM 호출을 끊는다 */ + abort: AbortController + /** 인식을 다시 돌릴 때마다 올린다 — 늦게 끝난 옛 인식 결과를 버린다 */ + recognitionRound: number + /** 이 캡처에서 읽어 주기를 시작했는지 — 닫을 때 그 읽기만 멈춘다(다른 기능의 재생은 건드리지 않는다) */ + spoke: boolean +} + +interface ScreenOcrServiceEvents { + opened: (payload: { sessionId: string }) => void + closed: (payload: { sessionId: string }) => void +} + +function isRect(value: unknown): value is OcrRect { + if (typeof value !== 'object' || value === null) return false + const r = value as Record + return [r.x, r.y, r.width, r.height].every((n) => typeof n === 'number' && Number.isFinite(n)) +} + +function fileStamp(now: number): string { + const d = new Date(now) + const pad = (n: number): string => String(n).padStart(2, '0') + return `${d.getFullYear()}${pad(d.getMonth() + 1)}${pad(d.getDate())}-${pad(d.getHours())}${pad(d.getMinutes())}${pad(d.getSeconds())}` +} + +// ============================================================ +// ScreenOcrService +// ============================================================ + +export class ScreenOcrService extends EventEmitter { + private _session: Session | null = null + /** 캡처가 진행 중인 동안 단축키를 다시 눌러도 겹쳐 시작하지 않는다 */ + private _starting = false + private _languages: string[] | null = null + + constructor(private readonly _deps: ScreenOcrDeps) { + super() + } + + get isOpen(): boolean { + return this._session !== null + } + + /** 이 환경에서 화면 OCR 을 쓸 수 있는지 */ + isSupported(): boolean { + return this._deps.engine.isSupported() + } + + /** 단축키 — 열려 있으면 닫고, 닫혀 있으면 새로 캡처한다. */ + async toggle(): Promise { + if (this._session) { + this.close() + return + } + await this.start() + } + + /** + * 화면을 캡처해 오버레이를 띄우고 글자 인식을 시작한다. + * 인식은 기다리지 않는다 — 얼린 화면은 곧바로 보이고 글자는 준비되는 대로 고를 수 있게 된다. + */ + async start(): Promise { + if (this._starting || this._session) return + if (!this.isSupported()) { + throw new D3ROError(ErrorCode.ScreenOcrUnavailable, 'Screen OCR is not available on this platform') + } + this._starting = true + try { + let shot: ScreenShot + try { + shot = await this._deps.capture() + } catch (error) { + throw new D3ROError( + ErrorCode.ScreenOcrCaptureFailed, + `Screen capture failed: ${error instanceof Error ? error.message : String(error)}` + ) + } + + const session: Session = { + id: randomUUID(), + shot, + result: null, + abort: new AbortController(), + recognitionRound: 0, + spoke: false + } + this._session = session + + this._deps.overlay.show(shot.displayBounds, { + sessionId: session.id, + image: shot.png, + width: shot.width, + height: shot.height, + languages: this._languages ?? [], + language: this._deps.config.getOcrLanguage(), + _i18n: this._deps.strings() + }) + this.emit('opened', { sessionId: session.id }) + logger.info(`Screen OCR opened: ${shot.width}x${shot.height} @${shot.scaleFactor}x`) + + void this._recognize(session) + } finally { + this._starting = false + } + } + + /** 오버레이를 닫고 캡처를 놓는다. 진행 중인 인식 · LLM 호출 · 읽기는 끊는다. */ + close(): void { + const session = this._session + if (!session) return + this._session = null + session.abort.abort() + if (session.spoke) this._deps.tts.stop() + this._deps.overlay.hide() + this.emit('closed', { sessionId: session.id }) + logger.info('Screen OCR closed') + } + + /** 오버레이의 요청 하나를 처리하고 응답을 보낸다. 끝난 캡처에 대한 요청은 거절한다. */ + async handleRequest(sessionId: string, requestId: number, request: ScreenOcrRequest): Promise { + const session = this._session + if (!session || session.id !== sessionId) { + this._deps.overlay.respond({ requestId, ok: false, error: 'invalid' }) + return + } + try { + const response = await this._perform(session, request) + // 처리하는 사이 닫혔으면 응답할 곳이 없다. + if (this._session !== session) return + this._deps.overlay.respond({ requestId, ...response }) + } catch (error) { + if (this._session !== session) return + const kind = this._errorKind(request, error) + logger.warn( + `Screen OCR request "${request.type}" failed (${kind}): ${error instanceof Error ? error.message : String(error)}` + ) + this._deps.overlay.respond({ requestId, ok: false, error: kind }) + } + } + + dispose(): void { + this.close() + this.removeAllListeners() + } + + // ── 인식 ────────────────────────────────────────────── + + private async _availableLanguages(): Promise { + if (this._languages) return this._languages + try { + this._languages = await this._deps.engine.listLanguages() + } catch (error) { + // 목록을 못 읽어도 인식 자체는 시도한다(자동 언어). 다음 캡처 때 다시 읽는다. + logger.warn(`OCR language list failed: ${error instanceof Error ? error.message : String(error)}`) + return [] + } + return this._languages + } + + private async _recognize(session: Session): Promise { + const round = ++session.recognitionRound + const isCurrent = (): boolean => this._session === session && session.recognitionRound === round + let tempPath: string | null = null + try { + // 언어 목록은 인식과 나란히 읽는다 — 첫 캡처에서 오버레이가 목록을 기다리지 않게. + const languagesPending = this._availableLanguages() + tempPath = await this._deps.files.writeTemp(`${session.id}.png`, session.shot.png) + const result = await this._deps.engine.recognize({ + imagePath: tempPath, + language: this._deps.config.getOcrLanguage(), + scale: chooseOcrScale( + session.shot.width, + session.shot.height, + session.shot.scaleFactor, + this._deps.engine.maxDimension + ), + signal: session.abort.signal + }) + const languages = await languagesPending + if (!isCurrent()) return + session.result = result + this._deps.overlay.sendRecognized({ sessionId: session.id, ok: true, result, languages }) + logger.info(`Screen OCR recognized ${result.words.length} word(s) in ${result.lines.length} line(s) [${result.language}]`) + } catch (error) { + if (!isCurrent()) return + const unavailable = error instanceof D3ROError && error.code === ErrorCode.ScreenOcrUnavailable + logger.error(`Screen OCR recognition failed: ${error instanceof Error ? error.message : String(error)}`) + this._deps.overlay.sendRecognized({ + sessionId: session.id, + ok: false, + error: unavailable ? 'unavailable' : 'recognition', + languages: this._languages ?? [] + }) + } finally { + if (tempPath) { + await this._deps.files.remove(tempPath).catch((error: unknown) => { + logger.warn(`Screen OCR temp file cleanup failed: ${error instanceof Error ? error.message : String(error)}`) + }) + } + } + } + + // ── 요청 처리 ───────────────────────────────────────── + + private async _perform( + session: Session, + request: ScreenOcrRequest + ): Promise<{ ok: true; text?: string; cancelled?: boolean } | { ok: false; error: ScreenOcrErrorKind }> { + switch (request.type) { + case 'copy-text': { + const text = this._requireText(request.text) + await this._deps.clipboard.writeText(text) + return { ok: true } + } + case 'copy-image': { + await this._deps.clipboard.writeImage(this._imageOf(session, request.rect)) + return { ok: true } + } + case 'save-image': { + const png = this._imageOf(session, request.rect) + const path = await this._deps.files.askSavePath('png', `screen-${fileStamp(this._now())}.png`) + if (!path) return { ok: true, cancelled: true } + await this._deps.files.write(path, png) + return { ok: true } + } + case 'save-pdf': + return this._savePdf(session, request.rect) + case 'translate': { + const text = this._requireText(request.text).slice(0, SCREEN_OCR_MAX_LLM_CHARS) + const target = pickTranslationTarget( + text, + this._deps.config.getAppLocale(), + this._deps.config.getTranslationTarget() + ) + const translated = await this._deps.llm.translate(text, target, session.abort.signal, LLM_TIMEOUT_MS) + return this._llmResult(translated) + } + case 'summarize': { + const text = this._requireText(request.text).slice(0, SCREEN_OCR_MAX_LLM_CHARS) + const summary = await this._deps.llm.summarize(text, session.abort.signal, LLM_TIMEOUT_MS) + return this._llmResult(summary) + } + case 'speak': { + const text = this._requireText(request.text) + if (session.spoke) this._deps.tts.stop() + session.spoke = true + // 읽기는 끝날 때까지 기다리지 않는다 — 시작만 확인하고, 읽는 중 실패는 로그로 남긴다. + void this._deps.tts.speak(text).catch((error: unknown) => { + logger.warn(`Screen OCR read-aloud failed: ${error instanceof Error ? error.message : String(error)}`) + }) + return { ok: true } + } + case 'stop-speak': + this._deps.tts.stop() + return { ok: true } + case 'open-link': { + const opened = await this._deps.openExternal(String(request.url)) + return opened ? { ok: true } : { ok: false, error: 'link' } + } + case 'search-web': { + const query = this._requireText(request.text).replace(/\s+/gu, ' ').slice(0, 300) + const opened = await this._deps.openExternal( + `https://www.google.com/search?q=${encodeURIComponent(query)}` + ) + return opened ? { ok: true } : { ok: false, error: 'link' } + } + case 'set-language': { + const language = String(request.language) + const known = language === 'auto' || (await this._availableLanguages()).includes(language) + if (!known) return { ok: false, error: 'invalid' } + this._deps.config.setOcrLanguage(language) + session.result = null + void this._recognize(session) + return { ok: true } + } + default: + return { ok: false, error: 'invalid' } + } + } + + private async _savePdf( + session: Session, + rect: OcrRect | null + ): Promise<{ ok: true; cancelled?: boolean }> { + const area = this._areaOf(session, rect) + const png = area ? session.shot.crop(area) : session.shot.png + const width = area ? area.width : session.shot.width + const height = area ? area.height : session.shot.height + // 인식이 아직 안 끝났거나 실패했어도 그림만 든 PDF 는 만든다 — 글자 층은 있는 만큼만 넣는다. + const words = session.result + ? wordsRelativeTo(session.result, area ?? { x: 0, y: 0, width, height }) + : [] + + const path = await this._deps.files.askSavePath('pdf', `screen-${fileStamp(this._now())}.pdf`) + if (!path) return { ok: true, cancelled: true } + + const html = buildSearchablePdfHtml({ + imageDataUrl: `data:image/png;base64,${png.toString('base64')}`, + width, + height, + words, + language: session.result?.language ?? '' + }) + const htmlPath = await this._deps.files.writeTemp(`${session.id}-${randomUUID()}.html`, html) + try { + const pdf = await this._deps.renderPdf(htmlPath) + await this._deps.files.write(path, pdf) + } finally { + await this._deps.files.remove(htmlPath).catch(() => { + /* 임시 파일 정리 실패는 저장 결과를 바꾸지 않는다 */ + }) + } + return { ok: true } + } + + private _llmResult(text: string): { ok: true; text: string } | { ok: false; error: ScreenOcrErrorKind } { + const trimmed = text.trim() + // 빈 응답을 성공으로 꾸미지 않는다. + return trimmed.length === 0 ? { ok: false, error: 'llm' } : { ok: true, text: trimmed } + } + + private _requireText(value: unknown): string { + const text = typeof value === 'string' ? value.trim() : '' + if (text.length === 0) { + throw new D3ROError(ErrorCode.ScreenOcrInvalidRequest, 'No text selected') + } + return text + } + + /** 요청한 영역(없으면 화면 전체)을 그림 안으로 자른다. */ + private _areaOf(session: Session, rect: OcrRect | null): OcrRect | null { + if (rect === null || rect === undefined) return null + const clamped = isRect(rect) ? clampRect(rect, { width: session.shot.width, height: session.shot.height }) : null + if (!clamped) { + throw new D3ROError(ErrorCode.ScreenOcrInvalidRequest, 'Selected area is outside the capture') + } + return clamped + } + + private _imageOf(session: Session, rect: OcrRect | null): Buffer { + const area = this._areaOf(session, rect) + return area ? session.shot.crop(area) : session.shot.png + } + + private _errorKind(request: ScreenOcrRequest, error: unknown): ScreenOcrErrorKind { + if (error instanceof D3ROError && error.code === ErrorCode.ScreenOcrInvalidRequest) { + return request.type === 'copy-image' || request.type === 'save-image' || request.type === 'save-pdf' + ? 'invalid' + : 'empty' + } + switch (request.type) { + case 'translate': + case 'summarize': + return 'llm' + case 'speak': + case 'stop-speak': + return 'tts' + case 'open-link': + case 'search-web': + return 'link' + case 'set-language': + return 'recognition' + default: + return 'export' + } + } + + private _now(): number { + return this._deps.now ? this._deps.now() : Date.now() + } + + // ── EventEmitter 타입 오버라이드 ─────────────────────── + + override on(event: K, listener: ScreenOcrServiceEvents[K]): this { + return super.on(event, listener) + } + + override emit( + event: K, + ...args: Parameters + ): boolean { + return super.emit(event, ...args) + } +} + +// ── 싱글톤 ──────────────────────────────────────────── + +let instance: ScreenOcrService | null = null + +/** 앱 조립부(bootstrap)가 Electron 어댑터를 넣어 한 번 만든다. */ +export function initScreenOcrService(deps: ScreenOcrDeps): ScreenOcrService { + instance?.dispose() + instance = new ScreenOcrService(deps) + return instance +} + +export function getScreenOcrService(): ScreenOcrService { + if (!instance) { + throw new D3ROError(ErrorCode.ScreenOcrUnavailable, 'ScreenOcrService is not initialized') + } + return instance +} + +export function resetScreenOcrServiceForTests(): void { + instance?.dispose() + instance = null +} diff --git a/apps/desktop/src/main/services/TextInsertService.ts b/apps/desktop/src/main/services/TextInsertService.ts index a2374ae4..874f68e2 100644 --- a/apps/desktop/src/main/services/TextInsertService.ts +++ b/apps/desktop/src/main/services/TextInsertService.ts @@ -210,7 +210,7 @@ export class TextInsertService extends EventEmitter { */ private async _insertViaClipboard(text: string): Promise { // 1. 기존 클립보드 저장 + 복원 가능성 판정 - const snapshot = this.saveClipboard() + const snapshot = await this.saveClipboard() const plan = planClipboardRestore(snapshot) if (plan.kind === 'unrestorable') { logger.info( @@ -225,7 +225,7 @@ export class TextInsertService extends EventEmitter { try { // 2. 클립보드에 텍스트 설정 - this._clipboard.writeText(text) + await this._clipboard.writeText(text) // 짧은 지연: 일부 앱이 클립보드 변경을 받아들일 시간 필요 await this._sleep(20) @@ -239,14 +239,14 @@ export class TextInsertService extends EventEmitter { await this._sleep(250) // 5. 클립보드 복원 (원래 내용으로 되돌림) - if (this._restoreIfStillOurs(text, snapshot)) { + if (await this._restoreIfStillOurs(text, snapshot)) { this.emit('clipboard-restored', {}) } return 'clipboard' } catch (error) { // 실패 시에도 클립보드 복원 시도 try { - this._restoreIfStillOurs(text, snapshot) + await this._restoreIfStillOurs(text, snapshot) } catch { logger.warn('Failed to restore clipboard after insert error') } @@ -258,8 +258,8 @@ export class TextInsertService extends EventEmitter { * 클립보드가 아직 우리가 넣은 텍스트일 때만 되돌린다. 그 사이 사용자가 새로 복사했다면 * 그 내용을 덮어쓰지 않는다 (writeText 자체가 실패한 경우도 여기서 걸러진다). */ - private _restoreIfStillOurs(text: string, snapshot: ClipboardSnapshot): boolean { - if (this._clipboard.readText() !== text) { + private async _restoreIfStillOurs(text: string, snapshot: ClipboardSnapshot): Promise { + if (await this._clipboard.readText() !== text) { logger.debug('Clipboard changed during insert; skipping restore') return false } @@ -277,7 +277,7 @@ export class TextInsertService extends EventEmitter { /** * 현재 클립보드 상태를 모든 포맷으로 캡처한다. */ - saveClipboard(): ClipboardSnapshot { + saveClipboard(): Promise> { return captureClipboard(this._clipboard) } diff --git a/apps/desktop/src/main/services/keybinding-accelerator-policy.ts b/apps/desktop/src/main/services/keybinding-accelerator-policy.ts index 9b214a74..e4d1a7a0 100644 --- a/apps/desktop/src/main/services/keybinding-accelerator-policy.ts +++ b/apps/desktop/src/main/services/keybinding-accelerator-policy.ts @@ -24,9 +24,17 @@ const SUGGESTION_ACTIONS: ReadonlySet = new Set = new Set(['screen-ocr']) + /** 액션 활성 판정에 필요한 기능 스위치 */ export interface KeyBindingFeatureFlags { suggestionEnabled: boolean + /** 이 환경에서 화면 OCR 을 쓸 수 있는가 (생략하면 쓸 수 없는 것으로 본다) */ + screenOcrAvailable?: boolean } /** 액션이 쓰이는 기능이 켜져 있는가. 기능 스위치가 없는 액션은 항상 켜져 있다. */ @@ -35,6 +43,7 @@ export function isKeyBindingActionFeatureEnabled( flags: KeyBindingFeatureFlags ): boolean { if (SUGGESTION_ACTIONS.has(actionId)) return flags.suggestionEnabled + if (SCREEN_OCR_ACTIONS.has(actionId)) return flags.screenOcrAvailable === true return true } diff --git a/apps/desktop/src/main/services/screen-ocr/electron-adapters.ts b/apps/desktop/src/main/services/screen-ocr/electron-adapters.ts new file mode 100644 index 00000000..6d557235 --- /dev/null +++ b/apps/desktop/src/main/services/screen-ocr/electron-adapters.ts @@ -0,0 +1,246 @@ +// src/main/services/screen-ocr/electron-adapters.ts +// +// ScreenOcrService 포트의 Electron 어댑터 — 화면 캡처 · 파일 · PDF · 클립보드 · LLM · TTS. +// 정책은 서비스(ScreenOcrService)와 core(@d3ro/core/screen-ocr)에 있고, 여기는 OS/Electron 호출만 한다. + +import { promises as fs } from 'fs' +import { join } from 'path' +import { app, BrowserWindow, clipboard, desktopCapturer, dialog, nativeImage, screen } from 'electron' +import { IPC_CHANNELS } from '@d3ro/core/ipc-channels' +import type { OcrRect } from '@d3ro/core/screen-ocr' +import { configGet, configSet } from '../ConfigService' +import { getLlmGateway } from '../llm/LlmGateway' +import { getTTSPlaybackService } from '../TTSPlaybackService' +import { getLogger } from '../LoggerService' +import { openExternalSafe } from '../../windows/web-contents-hardening' +import { captureScreenRegion } from '../../utils/win32-screen-capture' +import { + hideScreenOcrOverlay, + peekScreenOcrOverlayWindow, + getScreenOcrOverlayWindow, + sendToScreenOcrOverlay, + showScreenOcrOverlay +} from '../../windows/screen-ocr-overlay' +import type { + ScreenOcrDeps, + ScreenOcrFilesPort, + ScreenOcrOverlayPort, + ScreenShot +} from '../ScreenOcrService' +import { createWindowsOcrEngine } from './windows-ocr-engine' + +const logger = getLogger('ScreenOcrAdapters') + +/** 오버레이가 그림을 다 그렸다고 알리기를 기다리는 최대 시간 — 넘으면 그냥 보인다. */ +const OVERLAY_READY_TIMEOUT_MS = 500 + +// ── 화면 캡처 ───────────────────────────────────────── + +/** + * 커서가 있는 모니터를 물리 해상도로 캡처한다. + * Windows 는 GDI 로 그 모니터 한 장만 읽고(수십 ms), 안 되면 desktopCapturer 로 넘어간다. + */ +export async function captureDisplayAtCursor(): Promise { + const display = screen.getDisplayNearestPoint(screen.getCursorScreenPoint()) + const image = captureWithGdi(display) ?? (await captureWithDesktopCapturer(display)) + const size = image.getSize() + return { + png: image.toPNG(), + width: size.width, + height: size.height, + scaleFactor: display.scaleFactor, + displayBounds: { ...display.bounds }, + crop: (rect: OcrRect): Buffer => image.crop(rect).toPNG() + } +} + +function captureWithGdi(display: Electron.Display): Electron.NativeImage | null { + if (process.platform !== 'win32') return null + // 모니터 영역(DIP) → 가상 화면의 물리 픽셀. 배율이 섞인 다중 모니터에서도 OS 가 준 값을 그대로 쓴다. + const pixels = captureScreenRegion(screen.dipToScreenRect(null, display.bounds)) + if (!pixels) return null + const image = nativeImage.createFromBitmap(pixels.bgra, { width: pixels.width, height: pixels.height }) + return image.isEmpty() ? null : image +} + +async function captureWithDesktopCapturer(display: Electron.Display): Promise { + const width = Math.round(display.size.width * display.scaleFactor) + const height = Math.round(display.size.height * display.scaleFactor) + + const sources = await desktopCapturer.getSources({ types: ['screen'], thumbnailSize: { width, height } }) + // display_id 가 비는 환경(드라이버·원격 세션)이 있다 — 모니터가 하나뿐이면 그 하나를 쓴다. + const source = + sources.find((candidate) => candidate.display_id === String(display.id)) ?? + (sources.length === 1 ? sources[0] : undefined) + if (!source || source.thumbnail.isEmpty()) { + throw new Error(`no capture source for display ${display.id} (${sources.length} source(s))`) + } + return source.thumbnail +} + +// ── 오버레이 창 ─────────────────────────────────────── + +/** + * 오버레이 표시는 2단계다: 숨긴 창에 그림을 먼저 보내고, 다 그렸다는 신호(READY)가 오면 보인다. + * 곧바로 보이면 이전 캡처나 빈 바탕이 한 프레임 비친다. + */ +export function createOverlayPort(): ScreenOcrOverlayPort & { notifyReady(sessionId: string): void } { + let pending: { sessionId: string; bounds: Electron.Rectangle; timer: NodeJS.Timeout } | null = null + + const reveal = (): void => { + if (!pending) return + clearTimeout(pending.timer) + const { bounds } = pending + pending = null + showScreenOcrOverlay(bounds) + } + + return { + show(bounds, payload) { + if (pending) clearTimeout(pending.timer) + const win = getScreenOcrOverlayWindow() + // 숨긴 채로 크기를 먼저 맞춘다 — 렌더러가 보이기 전에 최종 크기로 배치를 끝내게. + win.setBounds(bounds) + pending = { + sessionId: payload.sessionId, + bounds, + timer: setTimeout(() => { + logger.warn('Screen OCR overlay did not report ready in time — showing anyway') + reveal() + }, OVERLAY_READY_TIMEOUT_MS) + } + sendToScreenOcrOverlay(IPC_CHANNELS.POPUP_SCREEN_OCR.SESSION, payload) + }, + notifyReady(sessionId) { + if (pending?.sessionId === sessionId) reveal() + }, + sendRecognized(payload) { + sendToScreenOcrOverlay(IPC_CHANNELS.POPUP_SCREEN_OCR.RECOGNIZED, payload) + }, + respond(payload) { + sendToScreenOcrOverlay(IPC_CHANNELS.POPUP_SCREEN_OCR.RESPONSE, payload) + }, + hide() { + if (pending) { + clearTimeout(pending.timer) + pending = null + } + // 그림을 놓게 한다(닫힌 뒤에도 캡처가 렌더러 메모리에 남지 않게). + sendToScreenOcrOverlay(IPC_CHANNELS.POPUP_SCREEN_OCR.SESSION, null) + hideScreenOcrOverlay() + } + } +} + +// ── 파일 ────────────────────────────────────────────── + +function tempDir(): string { + return join(app.getPath('temp'), 'd3ro-voice-screen-ocr') +} + +/** 저장 대화상자가 떠 있는 동안을 알린다 — 그동안은 전역 Esc 잡기를 풀어 대화상자의 Esc 가 살아 있게 한다. */ +export interface DialogGuard { + enter(): void + leave(): void +} + +export function createFilesPort(dialogTitle: (kind: 'pdf' | 'png') => string, guard: DialogGuard): ScreenOcrFilesPort { + return { + async writeTemp(name, data) { + const dir = tempDir() + await fs.mkdir(dir, { recursive: true }) + const path = join(dir, name) + await fs.writeFile(path, data) + return path + }, + async remove(path) { + await fs.rm(path, { force: true }) + }, + async askSavePath(kind, defaultName) { + const options: Electron.SaveDialogOptions = { + title: dialogTitle(kind), + defaultPath: join(app.getPath('documents'), defaultName), + filters: [kind === 'pdf' ? { name: 'PDF', extensions: ['pdf'] } : { name: 'PNG', extensions: ['png'] }] + } + // 오버레이가 최상위 단계라 부모 없이 띄우면 대화상자가 그 뒤에 깔린다. + const parent = peekScreenOcrOverlayWindow() + guard.enter() + try { + const { canceled, filePath } = parent + ? await dialog.showSaveDialog(parent, options) + : await dialog.showSaveDialog(options) + return canceled || !filePath ? null : filePath + } finally { + guard.leave() + } + }, + async write(path, data) { + await fs.writeFile(path, data) + } + } +} + +/** 임시 HTML 한 쪽을 숨긴 창에서 PDF 로 찍는다 (쪽 크기는 문서의 @page 를 따른다). */ +export async function renderHtmlFileToPdf(htmlPath: string): Promise { + const win = new BrowserWindow({ + show: false, + width: 800, + height: 600, + webPreferences: { javascript: false, sandbox: true, contextIsolation: true, nodeIntegration: false } + }) + try { + win.webContents.on('will-navigate', (event) => event.preventDefault()) + win.webContents.setWindowOpenHandler(() => ({ action: 'deny' })) + await win.loadFile(htmlPath) + return await win.webContents.printToPDF({ + printBackground: true, + preferCSSPageSize: true, + margins: { top: 0, bottom: 0, left: 0, right: 0 } + }) + } finally { + win.destroy() + } +} + +// ── 조립 ────────────────────────────────────────────── + +export function createScreenOcrDeps( + overlay: ScreenOcrOverlayPort, + dialogTitle: (kind: 'pdf' | 'png') => string, + strings: () => Record, + guard: DialogGuard +): ScreenOcrDeps { + return { + capture: captureDisplayAtCursor, + engine: createWindowsOcrEngine(), + overlay, + files: createFilesPort(dialogTitle, guard), + renderPdf: renderHtmlFileToPdf, + clipboard: { + writeText: async (text) => { + await clipboard.writeText(text) + }, + writeImage: async (png) => { + await clipboard.writeImage(nativeImage.createFromBuffer(png)) + } + }, + llm: { + translate: (text, targetLanguage, signal, timeoutMs) => + getLlmGateway().processText(text, 'translate', targetLanguage, undefined, { signal, timeoutMs }), + summarize: (text, signal, timeoutMs) => + getLlmGateway().processText(text, 'summarize', undefined, undefined, { signal, timeoutMs }) + }, + tts: { + speak: (text) => getTTSPlaybackService().speak(text), + stop: () => getTTSPlaybackService().stop() + }, + openExternal: (url) => openExternalSafe(url), + config: { + getOcrLanguage: () => configGet('screenOcrLanguage') || 'auto', + setOcrLanguage: (language) => configSet('screenOcrLanguage', language), + getAppLocale: () => (configGet('language') as string) || 'ko', + getTranslationTarget: () => configGet('targetLanguage') || 'English' + }, + strings + } +} diff --git a/apps/desktop/src/main/services/screen-ocr/windows-ocr-engine.ts b/apps/desktop/src/main/services/screen-ocr/windows-ocr-engine.ts new file mode 100644 index 00000000..fac6da15 --- /dev/null +++ b/apps/desktop/src/main/services/screen-ocr/windows-ocr-engine.ts @@ -0,0 +1,267 @@ +// src/main/services/screen-ocr/windows-ocr-engine.ts +// +// Windows 내장 OCR(Windows.Media.Ocr) 어댑터 — PowerToys Text Extractor 와 같은 엔진이다. +// +// 왜 이 엔진인가 (2026-11-20 조사): +// - 설치본에 모델·네이티브 모듈을 더 싣지 않는다(이 저장소는 install script 를 허용하지 않고, +// ffmpeg 처럼 큰 바이너리는 런타임에 내려받는다). +// - 화면 글자 기준 2배 확대 입력에서 한국어·영어 혼합 줄을 0.2~0.3초에 읽는다. +// - WinRT 는 Windows PowerShell 5.1(powershell.exe — 모든 Windows 에 있다)에서 바로 부를 수 있다. +// PowerShell 7(pwsh)은 WinRT 투영이 빠져 쓸 수 없다. +// +// 스크립트는 파일로 쓰지 않고 -EncodedCommand 로 넘긴다 — 스크립트 파일 실행 정책에 걸리지 않고 +// 임시 파일도 남지 않는다. 입력은 환경 변수로만 준다(명령줄에 경로를 이어 붙이지 않는다). + +import { execFile } from 'child_process' +import { join } from 'path' +import { D3ROError, ErrorCode } from '@d3ro/core/errors' +import { parseOcrEngineOutput, type OcrResult } from '@d3ro/core/screen-ocr' + +/** Windows.Media.Ocr.OcrEngine.MaxImageDimension — 이 변 길이를 넘는 그림은 인식하지 못한다. */ +export const WINDOWS_OCR_MAX_DIMENSION = 10000 + +const ENGINE_TIMEOUT_MS = 30_000 +const MAX_OUTPUT_BYTES = 32 * 1024 * 1024 + +export interface OcrRecognizeRequest { + /** 인식할 PNG 파일의 절대 경로 */ + imagePath: string + /** 언어 태그. 'auto' 면 Windows 사용자 언어를 따른다. */ + language: string + /** 인식 전 확대 배율 (좌표는 원본 크기 기준으로 되돌려 준다) */ + scale: number + signal?: AbortSignal +} + +/** OCR 엔진 포트 — 서비스는 이 모양에만 의존한다. */ +export interface OcrEnginePort { + /** 이 환경에서 엔진을 쓸 수 있는지 */ + isSupported(): boolean + /** 그림 한 변의 최대 길이 */ + readonly maxDimension: number + /** 설치된 인식 언어 태그 목록 */ + listLanguages(): Promise + recognize(request: OcrRecognizeRequest): Promise +} + +// 스크립트 본문. 결과는 항상 한 줄 JSON 으로 표준 출력에 쓴다. +// D3RO_OCR_MODE=languages → { languages: [...] } +// 그 외 → { lang, lines: [{ words: [{ t, x, y, w, h }] }] } 또는 { error } +const OCR_SCRIPT = String.raw` +$ErrorActionPreference = 'Stop' +[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 +try { + Add-Type -AssemblyName System.Runtime.WindowsRuntime + $null = [Windows.Media.Ocr.OcrEngine, Windows.Foundation, ContentType = WindowsRuntime] + $null = [Windows.Graphics.Imaging.BitmapDecoder, Windows.Foundation, ContentType = WindowsRuntime] + $null = [Windows.Storage.StorageFile, Windows.Storage, ContentType = WindowsRuntime] + $null = [Windows.Globalization.Language, Windows.Foundation, ContentType = WindowsRuntime] + + if ($env:D3RO_OCR_MODE -eq 'languages') { + $tags = @([Windows.Media.Ocr.OcrEngine]::AvailableRecognizerLanguages | ForEach-Object { $_.LanguageTag }) + [pscustomobject]@{ languages = $tags } | ConvertTo-Json -Depth 3 -Compress + exit 0 + } + + $asTask = [System.WindowsRuntimeSystemExtensions].GetMethods() | Where-Object { + $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation` + '`' + String.raw`1' + } | Select-Object -First 1 + function Await($operation, [Type]$type) { + $task = $asTask.MakeGenericMethod($type).Invoke($null, @($operation)) + $task.Wait() + $task.Result + } + + $scale = [double]::Parse($env:D3RO_OCR_SCALE, [System.Globalization.CultureInfo]::InvariantCulture) + $file = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($env:D3RO_OCR_IMAGE)) ([Windows.Storage.StorageFile]) + $stream = Await ($file.OpenAsync([Windows.Storage.FileAccessMode]::Read)) ([Windows.Storage.Streams.IRandomAccessStream]) + try { + $decoder = Await ([Windows.Graphics.Imaging.BitmapDecoder]::CreateAsync($stream)) ([Windows.Graphics.Imaging.BitmapDecoder]) + $transform = New-Object Windows.Graphics.Imaging.BitmapTransform + $transform.ScaledWidth = [uint32][math]::Round($decoder.PixelWidth * $scale) + $transform.ScaledHeight = [uint32][math]::Round($decoder.PixelHeight * $scale) + $transform.InterpolationMode = [Windows.Graphics.Imaging.BitmapInterpolationMode]::Fant + $bitmap = Await ($decoder.GetSoftwareBitmapAsync( + [Windows.Graphics.Imaging.BitmapPixelFormat]::Bgra8, + [Windows.Graphics.Imaging.BitmapAlphaMode]::Premultiplied, + $transform, + [Windows.Graphics.Imaging.ExifOrientationMode]::IgnoreExifOrientation, + [Windows.Graphics.Imaging.ColorManagementMode]::DoNotColorManage)) ([Windows.Graphics.Imaging.SoftwareBitmap]) + } finally { + $stream.Dispose() + } + + $engine = $null + if ($env:D3RO_OCR_LANG -and $env:D3RO_OCR_LANG -ne 'auto') { + $engine = [Windows.Media.Ocr.OcrEngine]::TryCreateFromLanguage((New-Object Windows.Globalization.Language $env:D3RO_OCR_LANG)) + } + if (-not $engine) { $engine = [Windows.Media.Ocr.OcrEngine]::TryCreateFromUserProfileLanguages() } + if (-not $engine) { + $first = [Windows.Media.Ocr.OcrEngine]::AvailableRecognizerLanguages | Select-Object -First 1 + if ($first) { $engine = [Windows.Media.Ocr.OcrEngine]::TryCreateFromLanguage($first) } + } + if (-not $engine) { + '{"error":"no-language"}' + exit 0 + } + + $result = Await ($engine.RecognizeAsync($bitmap)) ([Windows.Media.Ocr.OcrResult]) + $lines = foreach ($line in $result.Lines) { + [pscustomobject]@{ + words = @(foreach ($word in $line.Words) { + $r = $word.BoundingRect + [pscustomobject]@{ + t = $word.Text + x = [math]::Round($r.X / $scale, 2) + y = [math]::Round($r.Y / $scale, 2) + w = [math]::Round($r.Width / $scale, 2) + h = [math]::Round($r.Height / $scale, 2) + } + }) + } + } + [pscustomobject]@{ lang = $engine.RecognizerLanguage.LanguageTag; lines = @($lines) } | ConvertTo-Json -Depth 6 -Compress +} catch { + [pscustomobject]@{ error = 'exception'; message = "$($_.Exception.Message)" } | ConvertTo-Json -Compress + exit 0 +} +` + +function encodeCommand(script: string): string { + return Buffer.from(script, 'utf16le').toString('base64') +} + +function powershellPath(): string { + const root = process.env['SystemRoot'] ?? process.env['windir'] ?? 'C:\\Windows' + return join(root, 'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe') +} + +/** 엔진 프로세스를 한 번 돌려 표준 출력의 JSON 을 돌려준다. */ +export type OcrProcessRunner = (env: Record, signal?: AbortSignal) => Promise + +const runPowerShell: OcrProcessRunner = (env, signal) => + new Promise((resolve, reject) => { + execFile( + powershellPath(), + ['-NoLogo', '-NoProfile', '-NonInteractive', '-EncodedCommand', encodeCommand(OCR_SCRIPT)], + { + env: { ...process.env, ...env }, + encoding: 'utf8', + timeout: ENGINE_TIMEOUT_MS, + maxBuffer: MAX_OUTPUT_BYTES, + windowsHide: true, + signal + }, + (error, stdout) => { + if (error) { + reject(error) + return + } + resolve(stdout) + } + ) + }) + +/** 표준 출력에서 JSON 한 덩어리를 꺼낸다 (앞뒤에 경고 줄이 섞여도 견딘다). */ +function parseJsonOutput(stdout: string): unknown { + const start = stdout.indexOf('{') + const end = stdout.lastIndexOf('}') + if (start === -1 || end <= start) return null + try { + return JSON.parse(stdout.slice(start, end + 1)) as unknown + } catch { + return null + } +} + +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null && !Array.isArray(value) +} + +export interface WindowsOcrEngineDeps { + platform?: NodeJS.Platform + run?: OcrProcessRunner +} + +export function createWindowsOcrEngine(deps: WindowsOcrEngineDeps = {}): OcrEnginePort { + const platform = deps.platform ?? process.platform + const run = deps.run ?? runPowerShell + + const invoke = async (env: Record, signal?: AbortSignal): Promise> => { + let stdout: string + try { + stdout = await run(env, signal) + } catch (error) { + if (signal?.aborted) throw error + throw new D3ROError( + ErrorCode.ScreenOcrRecognitionFailed, + `OCR engine process failed: ${error instanceof Error ? error.message : String(error)}` + ) + } + const parsed = parseJsonOutput(stdout) + if (!isRecord(parsed)) { + throw new D3ROError(ErrorCode.ScreenOcrRecognitionFailed, 'OCR engine returned no parsable output') + } + if (parsed.error === 'no-language') { + throw new D3ROError(ErrorCode.ScreenOcrUnavailable, 'No Windows OCR language is installed') + } + if (typeof parsed.error === 'string') { + throw new D3ROError( + ErrorCode.ScreenOcrRecognitionFailed, + `OCR engine error: ${typeof parsed.message === 'string' ? parsed.message : parsed.error}` + ) + } + return parsed + } + + return { + maxDimension: WINDOWS_OCR_MAX_DIMENSION, + + isSupported: () => platform === 'win32', + + async listLanguages(): Promise { + if (platform !== 'win32') return [] + const parsed = await invoke({ D3RO_OCR_MODE: 'languages' }) + const languages = parsed.languages + // 언어가 하나뿐이면 ConvertTo-Json 이 배열이 아니라 문자열로 낸다. + if (typeof languages === 'string') return [languages] + if (!Array.isArray(languages)) return [] + return languages.filter((tag): tag is string => typeof tag === 'string' && tag.length > 0) + }, + + async recognize(request: OcrRecognizeRequest): Promise { + if (platform !== 'win32') { + throw new D3ROError(ErrorCode.ScreenOcrUnavailable, `Screen OCR is not available on ${platform}`) + } + const parsed = await invoke( + { + D3RO_OCR_MODE: 'recognize', + D3RO_OCR_IMAGE: request.imagePath, + D3RO_OCR_LANG: request.language, + D3RO_OCR_SCALE: String(request.scale) + }, + request.signal + ) + // 줄이 하나뿐이면 ConvertTo-Json 이 lines 를 배열이 아닌 객체로, 단어가 하나뿐이면 words 를 객체로 낸다. + const result = parseOcrEngineOutput(normalizeSingletons(parsed)) + if (!result) { + throw new D3ROError(ErrorCode.ScreenOcrRecognitionFailed, 'OCR engine output has an unexpected shape') + } + return result + } + } +} + +/** PowerShell 5.1 의 ConvertTo-Json 은 원소가 하나인 배열을 풀어 버린다 — 다시 배열로 싼다. */ +function normalizeSingletons(parsed: Record): Record { + const rawLines = parsed.lines + const lines = Array.isArray(rawLines) ? rawLines : isRecord(rawLines) ? [rawLines] : [] + return { + ...parsed, + lines: lines.map((line: unknown) => { + if (!isRecord(line)) return line + const words = line.words + return { ...line, words: Array.isArray(words) ? words : isRecord(words) ? [words] : [] } + }) + } +} diff --git a/apps/desktop/src/main/services/text-insert/clipboard-snapshot.ts b/apps/desktop/src/main/services/text-insert/clipboard-snapshot.ts index f89de3d5..d3622aff 100644 --- a/apps/desktop/src/main/services/text-insert/clipboard-snapshot.ts +++ b/apps/desktop/src/main/services/text-insert/clipboard-snapshot.ts @@ -29,7 +29,7 @@ export interface ClipboardWriteData { /** 클립보드 IO 포트. 운영은 Electron clipboard, 테스트는 메모리 구현을 꽂는다. */ export interface ClipboardPort { availableFormats(): string[] - readText(): string + readText(): string | Promise readHTML(): string readRTF(): string readImage(): TImage @@ -88,9 +88,9 @@ export function isStandardClipboardFormat(format: string): boolean { export const UNKNOWN_FORMATS = '' /** 현재 클립보드의 모든 포맷을 캡처한다. */ -export function captureClipboard( +export async function captureClipboard( port: ClipboardPort -): ClipboardSnapshot { +): Promise> { const buffers: ClipboardBufferEntry[] = [] const unreadable: string[] = [] @@ -121,7 +121,7 @@ export function captureClipboard( return { formats, - text: port.readText() || null, + text: (await port.readText()) || null, html: port.readHTML() || null, rtf: port.readRTF() || null, image: image && !image.isEmpty() ? image : null, diff --git a/apps/desktop/src/main/utils/win32-screen-capture.ts b/apps/desktop/src/main/utils/win32-screen-capture.ts new file mode 100644 index 00000000..140579dd --- /dev/null +++ b/apps/desktop/src/main/utils/win32-screen-capture.ts @@ -0,0 +1,171 @@ +// src/main/utils/win32-screen-capture.ts +// +// koffi(FFI) + GDI BitBlt 로 화면의 한 영역을 물리 픽셀 그대로 읽는다. +// +// 왜 desktopCapturer 가 아닌가 (2026-11-20 실측, 모니터 3대): +// - desktopCapturer.getSources 는 **모든** 모니터를 캡처하고, DXGI 복제가 프레임을 못 받으면 +// 모니터마다 500ms 를 기다린 뒤 GDI 로 넘어간다 — 한 번에 2.9초가 걸렸다. +// - BitBlt 는 필요한 모니터 한 장만 39ms 에 읽고, 결과 그림은 바이트까지 같았다. +// 단축키를 누른 순간의 화면을 얼려야 하는 화면 OCR 에는 이 차이가 결정적이다. +// +// 실패(비 Windows, 모듈 로드 실패, GDI 호출 실패)는 예외 대신 null 로 돌려준다 — +// 호출자는 desktopCapturer 로 넘어간다. + +import { getLogger } from '../services/LoggerService' + +const logger = getLogger('win32-screen-capture') + +type AnyFunc = (...args: unknown[]) => unknown + +interface GdiApi { + GetDC: AnyFunc + ReleaseDC: AnyFunc + CreateCompatibleDC: AnyFunc + CreateCompatibleBitmap: AnyFunc + SelectObject: AnyFunc + BitBlt: AnyFunc + GetDIBits: AnyFunc + DeleteObject: AnyFunc + DeleteDC: AnyFunc +} + +const SRCCOPY = 0x00cc0020 +/** 레이어드(반투명) 창까지 함께 읽는다 */ +const CAPTUREBLT = 0x40000000 +const BI_RGB = 0 +const DIB_RGB_COLORS = 0 +/** 한 변이 이보다 크면 요청이 잘못된 것으로 본다 (8K 가로 = 7680) */ +const MAX_DIMENSION = 16384 + +let api: GdiApi | null = null +let loadFailed = false + +function loadApi(): GdiApi | null { + if (api) return api + if (loadFailed) return null + if (process.platform !== 'win32') { + loadFailed = true + return null + } + try { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const koffi = require('koffi') as { + load: (lib: string) => { func: (signature: string) => AnyFunc } + struct: (name: string, fields: Record) => unknown + } + const user32 = koffi.load('user32.dll') + const gdi32 = koffi.load('gdi32.dll') + koffi.struct('D3RO_BITMAPINFOHEADER', { + biSize: 'uint32_t', + biWidth: 'int32_t', + biHeight: 'int32_t', + biPlanes: 'uint16_t', + biBitCount: 'uint16_t', + biCompression: 'uint32_t', + biSizeImage: 'uint32_t', + biXPelsPerMeter: 'int32_t', + biYPelsPerMeter: 'int32_t', + biClrUsed: 'uint32_t', + biClrImportant: 'uint32_t' + }) + api = { + GetDC: user32.func('void *GetDC(void *hWnd)'), + ReleaseDC: user32.func('int ReleaseDC(void *hWnd, void *hDC)'), + CreateCompatibleDC: gdi32.func('void *CreateCompatibleDC(void *hdc)'), + CreateCompatibleBitmap: gdi32.func('void *CreateCompatibleBitmap(void *hdc, int cx, int cy)'), + SelectObject: gdi32.func('void *SelectObject(void *hdc, void *h)'), + BitBlt: gdi32.func( + 'bool BitBlt(void *hdc, int x, int y, int cx, int cy, void *hdcSrc, int x1, int y1, uint32_t rop)' + ), + GetDIBits: gdi32.func( + 'int GetDIBits(void *hdc, void *hbm, uint32_t start, uint32_t cLines, _Out_ uint8_t *lpvBits, _Inout_ D3RO_BITMAPINFOHEADER *lpbmi, uint32_t usage)' + ), + DeleteObject: gdi32.func('bool DeleteObject(void *ho)'), + DeleteDC: gdi32.func('bool DeleteDC(void *hdc)') + } + return api + } catch (error) { + loadFailed = true + logger.warn( + `koffi/GDI 사용 불가 — 화면 캡처는 desktopCapturer 로 넘어간다 (${ + error instanceof Error ? error.message : String(error) + })` + ) + return null + } +} + +export interface ScreenPixels { + /** BGRA, 위에서 아래로, 알파는 불투명(255)으로 채움 */ + bgra: Buffer + width: number + height: number +} + +/** + * 가상 화면의 한 영역을 읽는다 (좌표·크기는 **물리 픽셀**, 가상 화면 원점 기준). + * Windows 가 아니거나 캡처에 실패하면 null. + */ +export function captureScreenRegion(rect: { x: number; y: number; width: number; height: number }): ScreenPixels | null { + const a = loadApi() + if (!a) return null + const width = Math.round(rect.width) + const height = Math.round(rect.height) + if (width < 1 || height < 1 || width > MAX_DIMENSION || height > MAX_DIMENSION) return null + + let screenDc: unknown = null + let memoryDc: unknown = null + let bitmap: unknown = null + try { + screenDc = a.GetDC(null) + if (!screenDc) return null + memoryDc = a.CreateCompatibleDC(screenDc) + bitmap = memoryDc ? a.CreateCompatibleBitmap(screenDc, width, height) : null + if (!memoryDc || !bitmap) return null + + const previous = a.SelectObject(memoryDc, bitmap) + const copied = a.BitBlt( + memoryDc, + 0, + 0, + width, + height, + screenDc, + Math.round(rect.x), + Math.round(rect.y), + SRCCOPY | CAPTUREBLT + ) as boolean + // GetDIBits 는 비트맵이 DC 에 선택돼 있지 않아야 한다. + a.SelectObject(memoryDc, previous) + if (!copied) return null + + const bgra = Buffer.alloc(width * height * 4) + const header = { + biSize: 40, + biWidth: width, + // 음수 높이 = 위에서 아래로(top-down) + biHeight: -height, + biPlanes: 1, + biBitCount: 32, + biCompression: BI_RGB, + biSizeImage: 0, + biXPelsPerMeter: 0, + biYPelsPerMeter: 0, + biClrUsed: 0, + biClrImportant: 0 + } + const lines = Number(a.GetDIBits(memoryDc, bitmap, 0, height, bgra, header, DIB_RGB_COLORS)) + if (lines !== height) return null + + // GDI 는 알파 채널을 0 으로 둔다 — 그대로 그림으로 만들면 완전히 투명해진다. + for (let i = 3; i < bgra.length; i += 4) bgra[i] = 255 + return { bgra, width, height } + } catch (error) { + logger.warn(`GDI 화면 캡처 실패: ${error instanceof Error ? error.message : String(error)}`) + return null + } finally { + if (bitmap) a.DeleteObject(bitmap) + if (memoryDc) a.DeleteDC(memoryDc) + if (screenDc) a.ReleaseDC(null, screenDc) + } +} diff --git a/apps/desktop/src/main/windows/WindowManager.ts b/apps/desktop/src/main/windows/WindowManager.ts index 91d6a5e6..c9f3ffb0 100644 --- a/apps/desktop/src/main/windows/WindowManager.ts +++ b/apps/desktop/src/main/windows/WindowManager.ts @@ -38,6 +38,7 @@ import { sendToPopupWindow } from './popup-window-factory' import { createElectronScreenGeometry } from './screen-geometry' +import { peekScreenOcrOverlayWindow } from './screen-ocr-overlay' import { installApplicationMenu } from './app-menu' import { launchedAtLogin } from '../services/AutoLaunchService' import { @@ -1061,6 +1062,7 @@ export function reapplyThemeToAllPopups(): void { commandPopupWindow, captionOverlayWindow, suggestionOverlayWindow, + peekScreenOcrOverlayWindow(), ] for (const win of popupWindows) { if (win && !win.isDestroyed()) { @@ -1072,5 +1074,7 @@ export function reapplyThemeToAllPopups(): void { // ── clipboard:copy IPC (ResultPopup에서 사용) ───────── ipcMain.on(IPC_CHANNELS.CLIPBOARD.COPY, (_event, text: string) => { - clipboard.writeText(text) + void Promise.resolve(clipboard.writeText(text)).catch((error: unknown) => { + logger.error('Clipboard copy failed', error) + }) }) diff --git a/apps/desktop/src/main/windows/popup-window-factory.ts b/apps/desktop/src/main/windows/popup-window-factory.ts index 9e985f7f..e22d7cc8 100644 --- a/apps/desktop/src/main/windows/popup-window-factory.ts +++ b/apps/desktop/src/main/windows/popup-window-factory.ts @@ -31,6 +31,16 @@ export interface PopupWindowSpec { * 항상 보이는 창(자막 오버레이)만 true 로 둔다. */ backgroundThrottling?: boolean + /** + * 키보드 포커스를 받을지. 기본 false — 팝업은 쓰던 앱의 포커스를 빼앗지 않는다. + * 화면 OCR 오버레이만 true 다(화면을 덮고 Esc · Ctrl+C 를 직접 받는다). + */ + focusable?: boolean + /** + * 투명 창인지. 기본 true. 화면 전체를 그림으로 덮는 창은 false 로 둔다 — + * 투명 창은 첫 그리기 전에 뒤 화면이 비쳐 깜빡인다. + */ + transparent?: boolean /** 로드 전에 적용할 창 설정 (클릭 통과 등) */ beforeLoad?: (win: BrowserWindow) => void /** 창이 닫혔다 — 소유자가 참조를 지운다 */ @@ -46,11 +56,11 @@ export function buildPopupWindowOptions( ...spec.bounds, show: false, frame: false, - transparent: true, + transparent: spec.transparent ?? true, resizable: false, alwaysOnTop: true, skipTaskbar: true, - focusable: false, + focusable: spec.focusable ?? false, webPreferences: { preload: preloadPath, sandbox: false, diff --git a/apps/desktop/src/main/windows/screen-ocr-overlay.ts b/apps/desktop/src/main/windows/screen-ocr-overlay.ts new file mode 100644 index 00000000..71fc7a14 --- /dev/null +++ b/apps/desktop/src/main/windows/screen-ocr-overlay.ts @@ -0,0 +1,69 @@ +// src/main/windows/screen-ocr-overlay.ts +// +// 화면 OCR 오버레이 창 — 캡처한 화면 한 장으로 그 모니터를 통째로 덮는 팝업. +// 다른 팝업과 달리 포커스를 받는다(Esc · Ctrl+C · Ctrl+A 를 창이 직접 받는다). +// 창 생성 · 보안 · 로드 전 IPC 보류는 popup-window-factory 정본을 그대로 쓴다. + +import type { BrowserWindow } from 'electron' +import { createPopupWindow, sendToPopupWindow } from './popup-window-factory' +import { getLogger } from '../services/LoggerService' + +const logger = getLogger('ScreenOcrOverlay') + +let overlayWindow: BrowserWindow | null = null + +function createOverlayWindow(): BrowserWindow { + return createPopupWindow({ + name: 'screen-ocr', + // 표시할 때 대상 모니터 크기로 다시 맞춘다. + bounds: { width: 800, height: 600 }, + focusable: true, + transparent: false, + onClosed: () => { + overlayWindow = null + } + }) +} + +export function getScreenOcrOverlayWindow(): BrowserWindow { + if (!overlayWindow || overlayWindow.isDestroyed()) { + overlayWindow = createOverlayWindow() + logger.info('ScreenOcr overlay window created (preloaded)') + } + return overlayWindow +} + +/** 창을 새로 만들지 않고 살아 있는 오버레이만 조회한다. */ +export function peekScreenOcrOverlayWindow(): BrowserWindow | null { + return overlayWindow && !overlayWindow.isDestroyed() ? overlayWindow : null +} + +export function isScreenOcrOverlayVisible(): boolean { + const win = peekScreenOcrOverlayWindow() + return win !== null && win.isVisible() +} + +export function sendToScreenOcrOverlay(channel: string, data: unknown): void { + const win = peekScreenOcrOverlayWindow() + if (win) sendToPopupWindow(win, channel, data) +} + +/** + * 오버레이로 모니터 하나를 덮는다 (bounds 는 그 모니터의 DIP 영역). + * 작업 표시줄 위까지 덮어야 얼린 화면과 실제 화면이 어긋나 보이지 않는다 — 'screen-saver' 단계로 올린다. + */ +export function showScreenOcrOverlay(bounds: Electron.Rectangle): void { + const win = getScreenOcrOverlayWindow() + win.setBounds(bounds) + win.setAlwaysOnTop(true, 'screen-saver') + win.show() + // 배율이 다른 모니터로 옮기면 첫 setBounds 가 옛 배율로 계산될 수 있다 — 보인 뒤 한 번 더 맞춘다. + win.setBounds(bounds) + win.moveTop() + win.focus() +} + +export function hideScreenOcrOverlay(): void { + const win = peekScreenOcrOverlayWindow() + if (win && win.isVisible()) win.hide() +} diff --git a/apps/desktop/src/renderer/popups/screen-ocr/index.html b/apps/desktop/src/renderer/popups/screen-ocr/index.html new file mode 100644 index 00000000..75cadfc8 --- /dev/null +++ b/apps/desktop/src/renderer/popups/screen-ocr/index.html @@ -0,0 +1,62 @@ + + + + + + + Screen OCR + + +
+ + + + +
+ + + + + + + +
+ + + + + + diff --git a/apps/desktop/src/renderer/popups/screen-ocr/script.js b/apps/desktop/src/renderer/popups/screen-ocr/script.js new file mode 100644 index 00000000..30c8ae30 --- /dev/null +++ b/apps/desktop/src/renderer/popups/screen-ocr/script.js @@ -0,0 +1,678 @@ +// 화면 OCR 오버레이 스크립트 (2026-11-20) +// +// 캡처한 화면 위에서 글자를 고른다: +// - 글자 선택(기본): 단어에서 끌기 시작하면 글 흐름대로, 빈 곳에서 끌면 사각형으로 고른다. +// 더블클릭 = 단어, 세 번 클릭 = 줄, Shift+클릭 = 이어서 고르기. +// - 영역 선택: 언제나 사각형으로 고른다(그 영역의 그림 · PDF 를 낼 때도 쓴다). +// 선택 계산 · 글 만들기는 @d3ro/core/screen-ocr 정본을 그대로 쓴다(메인 프로세스와 같은 계산). +// 문구는 전부 main 의 _i18n. 좌표는 캡처 그림의 물리 픽셀로 다루고, 그릴 때만 CSS 픽셀로 바꾼다. + +import { + allWords, + detectLinks, + flowSelection, + lineSelection, + nearestWordIndex, + rectFromPoints, + selectionBounds, + selectionHighlightRects, + selectionText, + wordAtPoint, + wordsInRect +} from '@d3ro/core/screen-ocr' + +const CHANNEL = { + SESSION: 'screenOcr:session', + RECOGNIZED: 'screenOcr:recognized', + RESPONSE: 'screenOcr:response', + REQUEST: 'screenOcr:request', + READY: 'screenOcr:ready', + DISMISS: 'screenOcr:dismiss' +} + +/** 이보다 작게 끈 사각형은 클릭으로 본다 (CSS 픽셀) */ +const CLICK_SLOP = 4 +/** 글자만 골랐을 때 그림 · PDF 로 낼 영역에 두르는 여백 (물리 픽셀) */ +const REGION_PADDING = 8 +const TOAST_MS = 1400 +const CLOSE_AFTER_COPY_MS = 420 + +const $ = (id) => document.getElementById(id) +const stage = $('stage') +const shot = $('shot') +const highlights = $('highlights') +const regionEl = $('region') +const toolbar = $('toolbar') +const actions = $('actions') +const statusEl = $('status') +const languageEl = $('language') +const resultEl = $('result') +const resultTitle = $('result-title') +const resultBody = $('result-body') +const toastEl = $('toast') + +const state = { + sessionId: null, + /** 캡처 그림 크기 (물리 픽셀) */ + width: 0, + height: 0, + imageUrl: null, + /** 인식 결과 (없으면 아직 읽는 중이거나 실패) */ + result: null, + recognizing: false, + recognitionError: null, + mode: 'text', + /** 고른 단어 번호 */ + selected: [], + /** 글 흐름 선택의 시작 단어 */ + anchor: null, + /** 사각형으로 고른 영역 (물리 픽셀). 글 흐름으로 골랐으면 null */ + region: null, + drag: null, + speaking: false, + i18n: {}, + nextRequestId: 1, + pending: new Map(), + toastTimer: null, + closeTimer: null +} + +const unsubs = [] + +function tr(key, vars) { + let text = (state.i18n && state.i18n[key]) || '' + if (vars) { + for (const name of Object.keys(vars)) text = text.split('{{' + name + '}}').join(String(vars[name])) + } + return text +} + +function applyI18n() { + document.querySelectorAll('[data-i18n]').forEach((el) => { + el.textContent = tr(el.getAttribute('data-i18n')) + }) + document.querySelectorAll('[data-i18n-label]').forEach((el) => { + el.setAttribute('aria-label', tr(el.getAttribute('data-i18n-label'))) + el.setAttribute('title', tr(el.getAttribute('data-i18n-label'))) + }) +} + +// ── 좌표 ────────────────────────────────────────────── + +function scaleX() { + return state.width > 0 && window.innerWidth > 0 ? state.width / window.innerWidth : 1 +} + +function scaleY() { + return state.height > 0 && window.innerHeight > 0 ? state.height / window.innerHeight : 1 +} + +/** 마우스 이벤트 → 캡처 그림 좌표 */ +function toImagePoint(event) { + return { x: event.clientX * scaleX(), y: event.clientY * scaleY() } +} + +function toCssRect(rect) { + return { + left: rect.x / scaleX(), + top: rect.y / scaleY(), + width: rect.width / scaleX(), + height: rect.height / scaleY() + } +} + +function place(el, rect) { + const css = toCssRect(rect) + el.style.left = css.left + 'px' + el.style.top = css.top + 'px' + el.style.width = css.width + 'px' + el.style.height = css.height + 'px' +} + +// ── 그리기 ──────────────────────────────────────────── + +function selectedText(singleLine) { + return state.result ? selectionText(state.result, state.selected, { singleLine: Boolean(singleLine) }) : '' +} + +/** 그림 · PDF 로 낼 영역: 끌어 고른 사각형 → 고른 글자를 감싼 사각형 → 없으면 화면 전체(null) */ +function exportRegion() { + if (state.region) return state.region + if (!state.result || state.selected.length === 0) return null + const bounds = selectionBounds(state.result, state.selected) + if (!bounds) return null + return { + x: bounds.x - REGION_PADDING, + y: bounds.y - REGION_PADDING, + width: bounds.width + REGION_PADDING * 2, + height: bounds.height + REGION_PADDING * 2 + } +} + +function renderHighlights() { + highlights.textContent = '' + if (!state.result) return + for (const rect of selectionHighlightRects(state.result, state.selected)) { + const el = document.createElement('div') + el.className = 'hl' + place(el, rect) + highlights.appendChild(el) + } +} + +function renderRegion() { + const rect = state.drag && state.drag.kind === 'rect' ? state.drag.rect : state.region + if (!rect || rect.width < 1 || rect.height < 1) { + regionEl.hidden = true + return + } + regionEl.hidden = false + place(regionEl, rect) +} + +function renderStatus() { + statusEl.classList.toggle('error', Boolean(state.recognitionError)) + if (state.recognitionError) { + statusEl.textContent = tr(state.recognitionError) + } else if (state.recognizing) { + statusEl.textContent = tr('statusRecognizing') + } else if (state.result && state.selected.length > 0) { + statusEl.textContent = tr('statusSelected', { count: Array.from(selectedText(false)).length }) + } else if (state.result && state.result.words.length === 0) { + statusEl.textContent = tr('statusEmpty') + } else if (state.result) { + statusEl.textContent = tr('statusReady', { count: state.result.words.length }) + } else { + statusEl.textContent = '' + } +} + +function renderActions() { + const text = selectedText(false) + const hasText = text.trim().length > 0 + for (const id of ['act-copy', 'act-copy-line', 'act-translate', 'act-summarize', 'act-speak', 'act-link']) { + $(id).disabled = !hasText + } + $('act-select-all').disabled = !state.result || state.result.words.length === 0 + $('act-link').textContent = hasText && detectLinks(text).length > 0 ? tr('openLink') : tr('search') + $('act-speak').textContent = state.speaking ? tr('stopSpeak') : tr('speak') + $('act-speak').classList.toggle('on', state.speaking) + if (state.speaking) $('act-speak').disabled = false + positionActions() +} + +/** 동작 막대를 고른 곳 바로 아래(자리가 없으면 위)에 붙인다. 고른 것이 없으면 화면 아래 가운데. */ +function positionActions() { + const region = exportRegion() + if (!region) { + actions.classList.remove('anchored') + actions.style.left = '' + actions.style.top = '' + return + } + actions.classList.add('anchored') + const css = toCssRect(region) + const size = actions.getBoundingClientRect() + const gap = 10 + let top = css.top + css.height + gap + if (top + size.height > window.innerHeight - 8) top = css.top - size.height - gap + if (top < 8) top = Math.max(8, window.innerHeight - size.height - 8) + let left = css.left + css.width / 2 - size.width / 2 + left = Math.max(8, Math.min(left, window.innerWidth - size.width - 8)) + actions.style.left = Math.round(left) + 'px' + actions.style.top = Math.round(top) + 'px' +} + +function renderMode() { + $('mode-text').classList.toggle('active', state.mode === 'text') + $('mode-rect').classList.toggle('active', state.mode === 'rect') + $('mode-text').setAttribute('aria-pressed', String(state.mode === 'text')) + $('mode-rect').setAttribute('aria-pressed', String(state.mode === 'rect')) +} + +function renderLanguages(languages, current) { + languageEl.textContent = '' + const auto = document.createElement('option') + auto.value = 'auto' + auto.textContent = tr('languageAuto') + languageEl.appendChild(auto) + for (const tag of Array.isArray(languages) ? languages : []) { + const option = document.createElement('option') + option.value = tag + option.textContent = tag + languageEl.appendChild(option) + } + if (typeof current === 'string') languageEl.value = current + if (languageEl.selectedIndex === -1) languageEl.value = 'auto' +} + +function render() { + renderHighlights() + renderRegion() + renderStatus() + renderMode() + renderActions() +} + +function showToast(text, isError) { + if (state.toastTimer) clearTimeout(state.toastTimer) + toastEl.textContent = text + toastEl.classList.toggle('error', Boolean(isError)) + toastEl.hidden = false + state.toastTimer = setTimeout(() => { + toastEl.hidden = true + state.toastTimer = null + }, TOAST_MS) +} + +function errorText(kind) { + const key = 'error' + String(kind || 'export').charAt(0).toUpperCase() + String(kind || 'export').slice(1) + return tr(key) || tr('errorExport') +} + +// ── 선택 ────────────────────────────────────────────── + +function setSelection(selected, region) { + state.selected = selected + state.region = region || null + render() +} + +function clearSelection() { + state.anchor = null + setSelection([], null) +} + +function selectAll() { + if (!state.result) return + state.anchor = null + setSelection(allWords(state.result), null) +} + +function setMode(mode) { + state.mode = mode + renderMode() +} + +function onMouseDown(event) { + if (event.button !== 0 || !state.sessionId) return + closeResult() + const point = toImagePoint(event) + const hit = state.result ? wordAtPoint(state.result, point, 3 * scaleX()) : null + + if (state.mode === 'text' && hit !== null) { + if (event.shiftKey && state.anchor !== null) { + setSelection(flowSelection(state.anchor, hit), null) + } else if (event.detail >= 3) { + state.anchor = hit + setSelection(lineSelection(state.result, hit), null) + return + } else if (event.detail === 2) { + state.anchor = hit + setSelection([hit], null) + return + } else { + state.anchor = hit + setSelection([hit], null) + } + state.drag = { kind: 'flow', moved: false } + } else { + state.drag = { + kind: 'rect', + startCss: { x: event.clientX, y: event.clientY }, + start: point, + rect: { x: point.x, y: point.y, width: 0, height: 0 }, + moved: false + } + } + event.preventDefault() +} + +function onMouseMove(event) { + const point = toImagePoint(event) + const drag = state.drag + if (!drag) { + const over = state.mode === 'text' && state.result ? wordAtPoint(state.result, point, 3 * scaleX()) : null + stage.classList.toggle('over-word', over !== null) + return + } + if (drag.kind === 'flow') { + const focus = nearestWordIndex(state.result, point) + if (focus === null || state.anchor === null) return + drag.moved = true + document.body.classList.add('dragging') + state.selected = flowSelection(state.anchor, focus) + renderHighlights() + return + } + const dx = Math.abs(event.clientX - drag.startCss.x) + const dy = Math.abs(event.clientY - drag.startCss.y) + if (!drag.moved && dx < CLICK_SLOP && dy < CLICK_SLOP) return + drag.moved = true + document.body.classList.add('dragging') + drag.rect = rectFromPoints(drag.start, point) + state.selected = state.result ? wordsInRect(state.result, drag.rect) : [] + renderHighlights() + renderRegion() +} + +function onMouseUp(event) { + const drag = state.drag + if (!drag || event.button !== 0) return + state.drag = null + document.body.classList.remove('dragging') + if (drag.kind === 'rect') { + if (!drag.moved) { + // 빈 곳을 그냥 클릭했다 — 선택을 푼다. + clearSelection() + return + } + state.anchor = null + state.region = drag.rect + } + render() +} + +// ── main 과 주고받기 ────────────────────────────────── + +function send(channel, data) { + if (window.popupAPI) window.popupAPI.send(channel, data) +} + +function listen(channel, handler) { + if (!window.popupAPI) return + const unsub = window.popupAPI.on(channel, handler) + if (typeof unsub === 'function') unsubs.push(unsub) +} + +/** 요청을 보내고 응답을 기다린다. 닫히면(새 캡처 포함) 대기 중인 요청은 버린다. */ +function request(payload) { + const sessionId = state.sessionId + if (!sessionId) return Promise.resolve({ ok: false, error: 'invalid' }) + const requestId = state.nextRequestId + state.nextRequestId += 1 + return new Promise((resolve) => { + state.pending.set(requestId, resolve) + send(CHANNEL.REQUEST, { sessionId, requestId, request: payload }) + }) +} + +function dismiss() { + send(CHANNEL.DISMISS, {}) +} + +function closeAfterToast(text) { + showToast(text) + if (state.closeTimer) clearTimeout(state.closeTimer) + state.closeTimer = setTimeout(() => { + state.closeTimer = null + dismiss() + }, CLOSE_AFTER_COPY_MS) +} + +// ── 동작 ────────────────────────────────────────────── + +async function copyText(singleLine) { + const text = selectedText(singleLine) + if (!text.trim()) return + const response = await request({ type: 'copy-text', text }) + if (response.ok) closeAfterToast(tr('toastCopied')) + else showToast(errorText(response.error), true) +} + +async function copyImage() { + const response = await request({ type: 'copy-image', rect: exportRegion() }) + if (response.ok) closeAfterToast(tr('toastImageCopied')) + else showToast(errorText(response.error), true) +} + +async function saveFile(type) { + const response = await request({ type, rect: exportRegion() }) + if (!response.ok) showToast(errorText(response.error), true) + else if (!response.cancelled) showToast(tr('toastSaved')) +} + +function openResult(title) { + resultTitle.textContent = title + resultBody.textContent = tr('working') + resultBody.className = 'result-body pending' + $('result-copy').disabled = true + resultEl.hidden = false +} + +function closeResult() { + resultEl.hidden = true +} + +async function runLlm(type, title) { + const text = selectedText(false) + if (!text.trim()) return + openResult(title) + const response = await request({ type, text }) + if (resultEl.hidden) return + if (response.ok && typeof response.text === 'string') { + resultBody.textContent = response.text + resultBody.className = 'result-body' + $('result-copy').disabled = false + } else { + resultBody.textContent = errorText(response.ok ? 'llm' : response.error) + resultBody.className = 'result-body error' + } +} + +async function toggleSpeak() { + if (state.speaking) { + state.speaking = false + renderActions() + await request({ type: 'stop-speak' }) + return + } + const text = selectedText(true) + if (!text.trim()) return + const response = await request({ type: 'speak', text }) + if (response.ok) { + state.speaking = true + renderActions() + } else { + showToast(errorText(response.error), true) + } +} + +async function openLinkOrSearch() { + const text = selectedText(true) + if (!text.trim()) return + const links = detectLinks(text) + const response = + links.length > 0 ? await request({ type: 'open-link', url: links[0] }) : await request({ type: 'search-web', text }) + if (response.ok) dismiss() + else showToast(errorText(response.error), true) +} + +async function changeLanguage() { + const language = languageEl.value + state.result = null + state.recognizing = true + state.recognitionError = null + state.anchor = null + state.selected = [] + render() + const response = await request({ type: 'set-language', language }) + if (!response.ok) { + state.recognizing = false + state.recognitionError = 'errorRecognition' + render() + } +} + +// ── 캡처 수명 ───────────────────────────────────────── + +function resetSession() { + for (const resolve of state.pending.values()) resolve({ ok: false, error: 'invalid' }) + state.pending.clear() + if (state.imageUrl) URL.revokeObjectURL(state.imageUrl) + if (state.toastTimer) clearTimeout(state.toastTimer) + if (state.closeTimer) clearTimeout(state.closeTimer) + state.toastTimer = null + state.closeTimer = null + state.imageUrl = null + state.sessionId = null + state.result = null + state.recognizing = false + state.recognitionError = null + state.selected = [] + state.anchor = null + state.region = null + state.drag = null + state.speaking = false + shot.removeAttribute('src') + toastEl.hidden = true + closeResult() + document.body.classList.remove('dragging') +} + +function onSession(data) { + resetSession() + if (!data || typeof data !== 'object') { + render() + return + } + state.i18n = data._i18n || {} + state.sessionId = data.sessionId + state.width = Number(data.width) || 0 + state.height = Number(data.height) || 0 + state.recognizing = true + state.mode = 'text' + applyI18n() + renderLanguages(data.languages, data.language) + render() + + const sessionId = data.sessionId + const ready = () => { + // 그림이 실제로 그려진 다음 프레임에 알린다 — 그 전에 창이 보이면 이전 화면이 비친다. + requestAnimationFrame(() => { + if (state.sessionId === sessionId) send(CHANNEL.READY, { sessionId }) + }) + } + state.imageUrl = URL.createObjectURL(new Blob([data.image], { type: 'image/png' })) + shot.onload = ready + // 그림을 못 읽어도 창은 보여야 한다(닫을 수 있게) — 인식 실패는 따로 표시된다. + shot.onerror = ready + shot.src = state.imageUrl +} + +function onRecognized(data) { + if (!data || data.sessionId !== state.sessionId) return + state.recognizing = false + if (Array.isArray(data.languages) && data.languages.length > 0) { + renderLanguages(data.languages, languageEl.value) + } + if (data.ok) { + state.result = data.result + state.recognitionError = null + // 인식이 끝나기 전에 끌어 둔 영역이 있으면 그 안의 글자를 바로 고른다. + state.selected = state.region ? wordsInRect(state.result, state.region) : [] + } else { + state.result = null + state.selected = [] + state.recognitionError = data.error === 'unavailable' ? 'errorUnavailable' : 'errorRecognition' + } + render() +} + +function onResponse(data) { + if (!data || typeof data.requestId !== 'number') return + const resolve = state.pending.get(data.requestId) + if (!resolve) return + state.pending.delete(data.requestId) + resolve(data) +} + +// ── 키보드 ──────────────────────────────────────────── + +function onKeyDown(event) { + if (!state.sessionId) return + const key = event.key + const ctrl = event.ctrlKey || event.metaKey + // 결과 판 안에서 글을 고르고 복사하는 것은 브라우저 기본 동작에 맡긴다. + const inResult = !resultEl.hidden && resultEl.contains(document.activeElement) + + if (key === 'Escape') { + event.preventDefault() + dismiss() + } else if (ctrl && (key === 'c' || key === 'C')) { + if (inResult || String(window.getSelection()) !== '') return + event.preventDefault() + void copyText(event.shiftKey) + } else if (ctrl && (key === 'a' || key === 'A')) { + event.preventDefault() + selectAll() + } else if (ctrl && (key === 's' || key === 'S')) { + event.preventDefault() + void saveFile('save-image') + } else if (ctrl && (key === 'p' || key === 'P')) { + event.preventDefault() + void saveFile('save-pdf') + } else if (key === 'Enter' && document.activeElement === document.body) { + event.preventDefault() + void copyText(false) + } else if (!ctrl && !event.altKey && document.activeElement === document.body) { + if (key === 't' || key === 'T') setMode('text') + else if (key === 'r' || key === 'R') setMode('rect') + } +} + +// ── 연결 ────────────────────────────────────────────── + +function click(id, handler) { + $(id).addEventListener('click', (event) => { + // 버튼이 포커스를 쥐고 있으면 Enter · T · R 단축키가 버튼으로 간다 — 누른 뒤 곧바로 놓는다. + event.currentTarget.blur() + handler() + }) +} + +stage.addEventListener('mousedown', onMouseDown) +window.addEventListener('mousemove', onMouseMove) +window.addEventListener('mouseup', onMouseUp) +window.addEventListener('keydown', onKeyDown) +window.addEventListener('resize', render) +window.addEventListener('contextmenu', (event) => event.preventDefault()) + +click('mode-text', () => setMode('text')) +click('mode-rect', () => setMode('rect')) +click('close', dismiss) +click('flip', () => { + const bottom = toolbar.classList.toggle('bottom') + document.body.classList.toggle('toolbar-bottom', bottom) +}) +click('act-copy', () => void copyText(false)) +click('act-copy-line', () => void copyText(true)) +click('act-translate', () => void runLlm('translate', tr('resultTranslate'))) +click('act-summarize', () => void runLlm('summarize', tr('resultSummary'))) +click('act-speak', () => void toggleSpeak()) +click('act-link', () => void openLinkOrSearch()) +click('act-select-all', selectAll) +click('act-copy-image', () => void copyImage()) +click('act-save-image', () => void saveFile('save-image')) +click('act-save-pdf', () => void saveFile('save-pdf')) +click('result-close', closeResult) +click('result-copy', async () => { + const response = await request({ type: 'copy-text', text: resultBody.textContent || '' }) + if (response.ok) closeAfterToast(tr('toastCopied')) + else showToast(errorText(response.error), true) +}) +languageEl.addEventListener('change', () => void changeLanguage()) + +listen(CHANNEL.SESSION, onSession) +listen(CHANNEL.RECOGNIZED, onRecognized) +listen(CHANNEL.RESPONSE, onResponse) + +window.addEventListener('beforeunload', () => { + resetSession() + while (unsubs.length > 0) { + const unsub = unsubs.pop() + if (typeof unsub === 'function') unsub() + } +}) + +render() diff --git a/apps/desktop/src/renderer/popups/screen-ocr/style.css b/apps/desktop/src/renderer/popups/screen-ocr/style.css new file mode 100644 index 00000000..a5008b3e --- /dev/null +++ b/apps/desktop/src/renderer/popups/screen-ocr/style.css @@ -0,0 +1,311 @@ +/* screen-ocr/style.css — 화면 OCR 오버레이 (2026-11-20). + * 캡처한 화면 한 장이 모니터를 통째로 덮고, 그 위에 선택 강조 · 도구 막대 · 결과 판이 뜬다. + * 색은 main 이 주입하는 CSS 변수만 쓴다(popup-base.css 의 :root 는 주입 전 폴백). */ + +@import '../_shared/popup-base.css'; + +html, +body { + width: 100%; + height: 100%; + background: var(--d3-bg-inset); +} + +#stage { + position: fixed; + inset: 0; + cursor: crosshair; +} + +#stage.over-word { + cursor: text; +} + +#shot { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + pointer-events: none; + -webkit-user-drag: none; +} + +/* 얼린 화면이라는 표시 — 가장자리 한 줄 */ +#frame { + position: absolute; + inset: 0; + border: 2px solid var(--d3-accent-main); + pointer-events: none; +} + +#highlights { + position: absolute; + inset: 0; + pointer-events: none; +} + +.hl { + position: absolute; + border-radius: 2px; + background: color-mix(in srgb, var(--d3-accent-main) 34%, transparent); + box-shadow: 0 0 0 1px color-mix(in srgb, var(--d3-accent-main) 55%, transparent); +} + +/* 영역 선택 — 바깥을 어둡게 눌러 고른 곳만 또렷하게 */ +#region { + position: absolute; + border: 1px solid var(--d3-accent-light); + box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.42); + pointer-events: none; +} + +.bar { + position: fixed; + left: 50%; + transform: translateX(-50%); + display: flex; + align-items: center; + gap: 6px; + padding: var(--popup-pad); + max-width: calc(100vw - 32px); + white-space: nowrap; + transition: opacity 120ms var(--popup-ease); + z-index: 10; +} + +#toolbar { + top: 14px; +} + +#toolbar.bottom { + top: auto; + bottom: 14px; +} + +#actions { + bottom: 44px; + z-index: 11; +} + +#actions.anchored { + left: 0; + top: 0; + bottom: auto; + transform: none; +} + +/* 끄는 동안은 막대가 글자를 가리지 않게 치운다 */ +body.dragging .bar, +body.dragging #hint { + opacity: 0; + pointer-events: none; +} + +.seg { + display: flex; + gap: 2px; + padding: 2px; + border-radius: var(--popup-radius-item); + background: var(--d3-bg-inset); +} + +.seg-btn, +.act, +.icon-btn { + font: inherit; + color: var(--d3-text-secondary); + background: transparent; + border: 1px solid transparent; + border-radius: var(--popup-radius-item); + padding: 4px 10px; + cursor: pointer; + transition: background 120ms var(--popup-ease), color 120ms var(--popup-ease); +} + +.seg-btn:hover, +.act:hover:not(:disabled), +.icon-btn:hover { + background: var(--d3-overlay-soft); + color: var(--d3-text-primary); +} + +.seg-btn.active { + background: var(--d3-bg-elevated); + color: var(--d3-text-primary); + border-color: var(--d3-border-default); +} + +.act:disabled { + opacity: 0.38; + cursor: default; +} + +.act.primary { + background: var(--d3-accent-solid); + color: var(--d3-accent-ink); +} + +.act.primary:hover:not(:disabled) { + background: var(--d3-accent-solidHover); + color: var(--d3-accent-ink); +} + +.act.on { + color: var(--d3-accent-light); + border-color: var(--d3-border-strong); +} + +.icon-btn { + padding: 4px 8px; + line-height: 1.2; +} + +:is(.seg-btn, .act, .icon-btn, select):focus-visible { + outline: 2px solid var(--d3-accent-light); + outline-offset: 1px; +} + +.sep { + width: 1px; + align-self: stretch; + margin: 2px; + background: var(--d3-border-default); +} + +.status { + min-width: 150px; + padding: 0 6px; + font-size: 12px; + color: var(--d3-text-secondary); + font-variant-numeric: tabular-nums; +} + +.status.error { + color: var(--d3-status-danger); +} + +.lang { + display: flex; + align-items: center; + gap: 6px; + font-size: 12px; + color: var(--d3-text-tertiary); +} + +.lang select { + font: inherit; + font-size: 12px; + color: var(--d3-text-primary); + background: var(--d3-bg-inset); + border: 1px solid var(--d3-border-default); + border-radius: var(--popup-radius-item); + padding: 3px 6px; +} + +.hint { + position: fixed; + left: 50%; + bottom: 14px; + transform: translateX(-50%); + padding: 3px 10px; + border-radius: var(--popup-radius-item); + font-size: 12px; + color: var(--d3-text-secondary); + background: color-mix(in srgb, var(--d3-bg-card) 88%, transparent); + pointer-events: none; + transition: opacity 120ms var(--popup-ease); + z-index: 9; +} + +/* 도구 막대를 아래로 내리면 안내 줄은 위로 올린다 */ +body.toolbar-bottom .hint { + bottom: auto; + top: 14px; +} + +body.toolbar-bottom #actions:not(.anchored) { + bottom: 60px; +} + +#result { + position: fixed; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + width: min(560px, calc(100vw - 48px)); + max-height: min(60vh, 520px); + display: flex; + flex-direction: column; + z-index: 20; +} + +#result[hidden], +#toast[hidden], +#region[hidden] { + display: none; +} + +.result-head { + display: flex; + align-items: center; + justify-content: space-between; + padding: 8px 8px 6px 14px; + border-bottom: 1px solid var(--d3-border-subtle); +} + +.result-title { + font-size: 12px; + font-weight: 600; + color: var(--d3-text-secondary); +} + +.result-body { + padding: 12px 14px; + overflow-y: auto; + white-space: pre-wrap; + overflow-wrap: anywhere; + user-select: text; + cursor: text; + font-size: 14px; + line-height: 1.6; +} + +.result-body.pending { + color: var(--d3-text-tertiary); +} + +.result-body.error { + color: var(--d3-status-danger); +} + +.result-foot { + display: flex; + justify-content: flex-end; + padding: 6px 8px 8px; + border-top: 1px solid var(--d3-border-subtle); +} + +.toast { + position: fixed; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + padding: 8px 16px; + font-weight: 600; + z-index: 30; + pointer-events: none; +} + +.toast.error { + color: var(--d3-status-danger); +} + +@media (prefers-reduced-motion: reduce) { + .bar, + .hint, + .seg-btn, + .act, + .icon-btn { + transition: none; + } +} diff --git a/apps/desktop/tests/main/services/input-intelligence.test.ts b/apps/desktop/tests/main/services/input-intelligence.test.ts index c627292a..06b0c113 100644 --- a/apps/desktop/tests/main/services/input-intelligence.test.ts +++ b/apps/desktop/tests/main/services/input-intelligence.test.ts @@ -42,7 +42,6 @@ import { LEARNING_EXCLUDED_APPS, isAppScopedLearning, TERMINAL_APPS, - isAppExcluded, isLearnablePhrase, withoutPlaceholderText, emptyFocusSnapshot diff --git a/apps/desktop/tests/main/services/keybinding-redteam-r2-16.test.ts b/apps/desktop/tests/main/services/keybinding-redteam-r2-16.test.ts index 76c4d560..d0f91c5a 100644 --- a/apps/desktop/tests/main/services/keybinding-redteam-r2-16.test.ts +++ b/apps/desktop/tests/main/services/keybinding-redteam-r2-16.test.ts @@ -70,6 +70,18 @@ describe('acceleratorsToReserve', () => { ).toEqual(['Control+Shift+V', 'Control+Shift+C']) }) + it('화면OCR단축키예약_쓸수없는환경_키만삼키지않게예약하지않고쓸수있을때만예약한다', () => { + const reserved = (screenOcrAvailable: boolean | undefined): string[] => + acceleratorsToReserve(defaultReservable(), { + platform: 'darwin', + flags: { suggestionEnabled: false, screenOcrAvailable } + }) + expect(reserved(undefined)).not.toContain('Control+Alt+O') + expect(reserved(false)).not.toContain('Control+Alt+O') + expect(reserved(true)).toContain('Control+Alt+O') + expect(isKeyBindingActionFeatureEnabled('screen-ocr', { suggestionEnabled: true })).toBe(false) + }) + it('macOS 에서 제안 기능이 켜져 있으면 suggestion-* 바인딩도 예약한다', () => { expect( acceleratorsToReserve(defaultReservable(), { platform: 'darwin', flags: { suggestionEnabled: true } }) diff --git a/apps/desktop/tests/main/services/screen-ocr-service.test.ts b/apps/desktop/tests/main/services/screen-ocr-service.test.ts new file mode 100644 index 00000000..cd989f57 --- /dev/null +++ b/apps/desktop/tests/main/services/screen-ocr-service.test.ts @@ -0,0 +1,561 @@ +import { describe, expect, it, vi } from 'vitest' +import { D3ROError, ErrorCode } from '@d3ro/core/errors' +import { parseOcrEngineOutput, type OcrRect, type OcrResult } from '@d3ro/core/screen-ocr' +import { + ScreenOcrService, + type ScreenOcrDeps, + type ScreenOcrRecognizedPayload, + type ScreenOcrResponse, + type ScreenOcrSessionPayload +} from '../../../src/main/services/ScreenOcrService' +import { createWindowsOcrEngine } from '../../../src/main/services/screen-ocr/windows-ocr-engine' + +function ocrResult(): OcrResult { + const result = parseOcrEngineOutput({ + lang: 'ko', + lines: [ + { words: [{ t: '화면', x: 10, y: 10, w: 40, h: 20 }, { t: 'OCR', x: 60, y: 10, w: 40, h: 20 }] }, + { words: [{ t: '둘째', x: 10, y: 50, w: 40, h: 20 }] } + ] + }) + if (!result) throw new Error('fixture did not parse') + return result +} + +interface Harness { + service: ScreenOcrService + shown: Array<{ bounds: OcrRect; payload: ScreenOcrSessionPayload }> + recognized: ScreenOcrRecognizedPayload[] + responses: ScreenOcrResponse[] + hidden: { count: number } + temp: Map + written: Map + clipboard: { text: string | null; image: Buffer | null } + crops: OcrRect[] + opened: string[] + config: { language: string } + recognizeCalls: Array<{ imagePath: string; language: string; scale: number }> + finishRecognition: (value: OcrResult | Error) => void + sessionId: () => string + deps: ScreenOcrDeps +} + +interface HarnessOptions { + supported?: boolean + savePath?: string | null + captureError?: Error + /** 인식을 곧바로 끝낼지 (기본 true). false 면 finishRecognition 을 부를 때까지 걸려 있다. */ + autoRecognize?: boolean + openExternal?: (url: string) => Promise + translate?: ScreenOcrDeps['llm']['translate'] + renderPdf?: ScreenOcrDeps['renderPdf'] + clipboardError?: Error +} + +function createHarness(options: HarnessOptions = {}): Harness { + const shown: Harness['shown'] = [] + const recognized: ScreenOcrRecognizedPayload[] = [] + const responses: ScreenOcrResponse[] = [] + const hidden = { count: 0 } + const temp = new Map() + const written = new Map() + const clipboard: Harness['clipboard'] = { text: null, image: null } + const crops: OcrRect[] = [] + const opened: string[] = [] + const config = { language: 'auto' } + const recognizeCalls: Harness['recognizeCalls'] = [] + let pendingRecognition: Array<(value: OcrResult | Error) => void> = [] + + const deps: ScreenOcrDeps = { + capture: async () => { + if (options.captureError) throw options.captureError + return { + png: Buffer.from('full-png'), + width: 1920, + height: 1080, + scaleFactor: 1, + displayBounds: { x: 0, y: 0, width: 1920, height: 1080 }, + crop: (rect) => { + crops.push(rect) + return Buffer.from(`crop-${rect.x}-${rect.y}-${rect.width}-${rect.height}`) + } + } + }, + engine: { + maxDimension: 10000, + isSupported: () => options.supported ?? true, + listLanguages: async () => ['ko', 'en-US'], + recognize: (request) => { + recognizeCalls.push({ imagePath: request.imagePath, language: request.language, scale: request.scale }) + if (options.autoRecognize ?? true) return Promise.resolve(ocrResult()) + return new Promise((resolve, reject) => { + pendingRecognition.push((value) => (value instanceof Error ? reject(value) : resolve(value))) + }) + } + }, + overlay: { + show: (bounds, payload) => shown.push({ bounds, payload }), + sendRecognized: (payload) => recognized.push(payload), + respond: (payload) => responses.push(payload), + hide: () => { + hidden.count += 1 + } + }, + files: { + writeTemp: async (name, data) => { + const path = `/tmp/${name}` + temp.set(path, data) + return path + }, + remove: async (path) => { + temp.delete(path) + }, + askSavePath: async () => (options.savePath === undefined ? '/out/file' : options.savePath), + write: async (path, data) => { + written.set(path, data) + } + }, + renderPdf: options.renderPdf ?? (async () => Buffer.from('%PDF')), + clipboard: { + writeText: async (text) => { + if (options.clipboardError) throw options.clipboardError + clipboard.text = text + }, + writeImage: async (png) => { + clipboard.image = png + } + }, + llm: { + translate: options.translate ?? (async (text, target) => `[${target}] ${text}`), + summarize: async (text) => `요약: ${text}` + }, + tts: { speak: vi.fn(async () => undefined), stop: vi.fn() }, + openExternal: + options.openExternal ?? + (async (url) => { + opened.push(url) + return true + }), + config: { + getOcrLanguage: () => config.language, + setOcrLanguage: (language) => { + config.language = language + }, + getAppLocale: () => 'ko', + getTranslationTarget: () => 'English' + }, + strings: () => ({ copy: '복사' }), + now: () => new Date(2026, 10, 20, 14, 5, 9).getTime() + } + + return { + service: new ScreenOcrService(deps), + shown, + recognized, + responses, + hidden, + temp, + written, + clipboard, + crops, + opened, + config, + recognizeCalls, + finishRecognition: (value) => { + const waiting = pendingRecognition + pendingRecognition = [] + for (const finish of waiting) finish(value) + }, + sessionId: () => shown[shown.length - 1].payload.sessionId, + deps + } +} + +/** 시작하고 인식이 끝나 오버레이에 결과가 갈 때까지 기다린다. */ +async function open(h: Harness): Promise { + await h.service.start() + await vi.waitFor(() => expect(h.recognized).toHaveLength(1)) +} + +describe('ScreenOcrService 캡처 수명주기', () => { + it('화면OCR시작_캡처성공_오버레이를화면크기로띄우고인식결과를보낸다', async () => { + const h = createHarness() + await open(h) + + expect(h.shown).toHaveLength(1) + expect(h.shown[0].bounds).toEqual({ x: 0, y: 0, width: 1920, height: 1080 }) + expect(h.shown[0].payload).toMatchObject({ width: 1920, height: 1080, language: 'auto', _i18n: { copy: '복사' } }) + expect(h.recognized[0]).toMatchObject({ ok: true, languages: ['ko', 'en-US'] }) + expect(h.recognizeCalls[0]).toMatchObject({ language: 'auto', scale: 2 }) + expect(h.service.isOpen).toBe(true) + }) + + it('화면OCR시작_인식이끝난뒤_캡처임시파일이디스크에남지않는다', async () => { + const h = createHarness() + await open(h) + expect(h.recognizeCalls[0].imagePath).toMatch(/\.png$/u) + expect(h.temp.size).toBe(0) + }) + + it('화면OCR시작_인식이실패해도_캡처임시파일을지우고실패를오버레이에알린다', async () => { + const h = createHarness({ autoRecognize: false }) + await h.service.start() + await vi.waitFor(() => expect(h.recognizeCalls).toHaveLength(1)) + h.finishRecognition(new Error('engine crashed')) + await vi.waitFor(() => expect(h.recognized).toHaveLength(1)) + + expect(h.recognized[0]).toMatchObject({ ok: false, error: 'recognition' }) + expect(h.temp.size).toBe(0) + }) + + it('화면OCR시작_설치된인식언어가없음_쓸수없음으로알린다', async () => { + const h = createHarness({ autoRecognize: false }) + await h.service.start() + await vi.waitFor(() => expect(h.recognizeCalls).toHaveLength(1)) + h.finishRecognition(new D3ROError(ErrorCode.ScreenOcrUnavailable, 'no language')) + await vi.waitFor(() => expect(h.recognized).toHaveLength(1)) + expect(h.recognized[0]).toMatchObject({ ok: false, error: 'unavailable' }) + }) + + it('화면OCR시작_지원하지않는플랫폼_오버레이를띄우지않고ScreenOcrUnavailable을던진다', async () => { + const h = createHarness({ supported: false }) + await expect(h.service.start()).rejects.toMatchObject({ code: ErrorCode.ScreenOcrUnavailable }) + expect(h.shown).toHaveLength(0) + expect(h.service.isOpen).toBe(false) + }) + + it('화면OCR시작_캡처실패_ScreenOcrCaptureFailed를던지고열린상태로남지않는다', async () => { + const failing = createHarness({ captureError: new Error('no source') }) + await expect(failing.service.start()).rejects.toMatchObject({ code: ErrorCode.ScreenOcrCaptureFailed }) + expect(failing.shown).toHaveLength(0) + expect(failing.service.isOpen).toBe(false) + }) + + it('화면OCR시작_이미열려있을때다시시작_새캡처를겹쳐만들지않는다', async () => { + const h = createHarness() + await open(h) + await h.service.start() + expect(h.shown).toHaveLength(1) + }) + + it('화면OCR토글_열려있을때단축키_닫고오버레이를숨긴다', async () => { + const h = createHarness() + await open(h) + await h.service.toggle() + expect(h.service.isOpen).toBe(false) + expect(h.hidden.count).toBe(1) + }) + + it('화면OCR닫기_인식이끝나기전에닫음_늦게온결과를오버레이에보내지않는다', async () => { + const h = createHarness({ autoRecognize: false }) + await h.service.start() + await vi.waitFor(() => expect(h.recognizeCalls).toHaveLength(1)) + h.service.close() + h.finishRecognition(ocrResult()) + await vi.waitFor(() => expect(h.temp.size).toBe(0)) + expect(h.recognized).toHaveLength(0) + }) + + it('화면OCR닫기_읽어주기를쓰지않은캡처_다른기능의음성재생을멈추지않는다', async () => { + const h = createHarness() + await open(h) + h.service.close() + expect(h.deps.tts.stop).not.toHaveBeenCalled() + }) + + it('화면OCR닫기_읽어주는중에닫음_읽기를멈춘다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'speak', text: '읽어 줘' }) + expect(h.deps.tts.speak).toHaveBeenCalledWith('읽어 줘') + h.service.close() + expect(h.deps.tts.stop).toHaveBeenCalledTimes(1) + }) +}) + +describe('ScreenOcrService 요청 처리', () => { + it('글자복사_선택한글_클립보드에쓰고성공으로응답한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 7, { type: 'copy-text', text: '화면 OCR\n둘째' }) + expect(h.clipboard.text).toBe('화면 OCR\n둘째') + expect(h.responses).toEqual([{ requestId: 7, ok: true }]) + }) + + it('글자복사_클립보드쓰기실패_성공으로꾸미지않고실패로응답한다', async () => { + const h = createHarness({ clipboardError: new Error('clipboard locked') }) + await open(h) + await h.service.handleRequest(h.sessionId(), 2, { type: 'copy-text', text: '화면' }) + expect(h.responses).toEqual([{ requestId: 2, ok: false, error: 'export' }]) + }) + + it('글자복사_빈글_클립보드를건드리지않고선택없음으로거절한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'copy-text', text: ' ' }) + expect(h.clipboard.text).toBeNull() + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'empty' }]) + }) + + it('요청처리_끝난캡처의요청_아무것도하지않고거절한다', async () => { + const h = createHarness() + await open(h) + const stale = h.sessionId() + h.service.close() + await h.service.handleRequest(stale, 3, { type: 'copy-text', text: '늦은 요청' }) + expect(h.clipboard.text).toBeNull() + expect(h.responses).toEqual([{ requestId: 3, ok: false, error: 'invalid' }]) + }) + + it('이미지복사_영역지정_그림밖부분을잘라낸영역만복사한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { + type: 'copy-image', + rect: { x: 1900, y: -20, width: 100, height: 120 } + }) + expect(h.crops).toEqual([{ x: 1900, y: 0, width: 20, height: 100 }]) + expect(h.clipboard.image?.toString()).toBe('crop-1900-0-20-100') + }) + + it('이미지복사_영역없음_화면전체를복사한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'copy-image', rect: null }) + expect(h.clipboard.image?.toString()).toBe('full-png') + expect(h.crops).toEqual([]) + }) + + it('이미지복사_그림밖영역_복사하지않고거절한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { + type: 'copy-image', + rect: { x: 5000, y: 5000, width: 10, height: 10 } + }) + expect(h.clipboard.image).toBeNull() + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'invalid' }]) + }) + + it('이미지저장_저장위치선택_그림을파일로쓴다', async () => { + const h = createHarness({ savePath: '/out/shot.png' }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'save-image', rect: null }) + expect(h.written.get('/out/shot.png')?.toString()).toBe('full-png') + expect(h.responses).toEqual([{ requestId: 1, ok: true }]) + }) + + it('이미지저장_대화상자취소_파일을쓰지않고취소로응답한다', async () => { + const h = createHarness({ savePath: null }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'save-image', rect: null }) + expect(h.written.size).toBe(0) + expect(h.responses).toEqual([{ requestId: 1, ok: true, cancelled: true }]) + }) + + it('PDF저장_영역지정_그영역의글자만영역기준좌표로넣은문서를PDF로쓴다', async () => { + let html = '' + const h = createHarness({ + savePath: '/out/doc.pdf', + renderPdf: async (htmlPath) => { + html = String(h.temp.get(htmlPath)) + return Buffer.from('%PDF-1.7') + } + }) + await open(h) + // 첫 줄(y 10~30)만 덮는 영역 + await h.service.handleRequest(h.sessionId(), 1, { + type: 'save-pdf', + rect: { x: 0, y: 0, width: 200, height: 40 } + }) + + expect(h.written.get('/out/doc.pdf')?.toString()).toBe('%PDF-1.7') + expect(html).toContain('@page{size:200px 40px;margin:0}') + expect(html).toContain('>화면') + expect(html).toContain('>OCR') + expect(html).not.toContain('둘째') + expect(h.responses).toEqual([{ requestId: 1, ok: true }]) + }) + + it('PDF저장_PDF생성실패_임시HTML을지우고내보내기실패로응답한다', async () => { + const h = createHarness({ + renderPdf: async () => { + throw new Error('print failed') + } + }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'save-pdf', rect: null }) + expect(h.written.size).toBe(0) + expect(h.temp.size).toBe(0) + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'export' }]) + }) + + it('번역_외국어글_앱언어를대상으로번역한결과를돌려준다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'translate', text: 'The quick brown fox' }) + expect(h.responses).toEqual([{ requestId: 1, ok: true, text: '[Korean] The quick brown fox' }]) + }) + + it('번역_LLM이빈응답_성공으로꾸미지않고실패로응답한다', async () => { + const h = createHarness({ translate: async () => ' ' }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'translate', text: 'hello' }) + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'llm' }]) + }) + + it('번역_LLM호출실패_실패종류를llm으로응답한다', async () => { + const h = createHarness({ + translate: async () => { + throw new Error('server unreachable') + } + }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'translate', text: 'hello' }) + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'llm' }]) + }) + + it('번역_처리중에닫음_닫힌오버레이로응답을보내지않는다', async () => { + let finish: (text: string) => void = () => undefined + const h = createHarness({ + translate: () => + new Promise((resolve) => { + finish = resolve + }) + }) + await open(h) + const pending = h.service.handleRequest(h.sessionId(), 1, { type: 'translate', text: 'hello' }) + h.service.close() + finish('안녕') + await pending + expect(h.responses).toEqual([]) + }) + + it('요약_선택한글_요약결과를돌려준다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'summarize', text: '긴 글' }) + expect(h.responses).toEqual([{ requestId: 1, ok: true, text: '요약: 긴 글' }]) + }) + + it('웹검색_선택한글_줄바꿈을정리한검색주소를연다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'search-web', text: '화면 OCR\n둘째' }) + expect(h.opened).toEqual([`https://www.google.com/search?q=${encodeURIComponent('화면 OCR 둘째')}`]) + }) + + it('링크열기_정책이막은주소_링크실패로응답한다', async () => { + const h = createHarness({ openExternal: async () => false }) + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'open-link', url: 'file:///C:/secret' }) + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'link' }]) + }) + + it('인식언어변경_설치된언어_설정을바꾸고그언어로다시인식한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'set-language', language: 'en-US' }) + await vi.waitFor(() => expect(h.recognized).toHaveLength(2)) + expect(h.config.language).toBe('en-US') + expect(h.recognizeCalls[1].language).toBe('en-US') + expect(h.responses).toEqual([{ requestId: 1, ok: true }]) + }) + + it('인식언어변경_설치되지않은언어_설정을바꾸지않고거절한다', async () => { + const h = createHarness() + await open(h) + await h.service.handleRequest(h.sessionId(), 1, { type: 'set-language', language: 'xx-YY' }) + expect(h.config.language).toBe('auto') + expect(h.recognizeCalls).toHaveLength(1) + expect(h.responses).toEqual([{ requestId: 1, ok: false, error: 'invalid' }]) + }) +}) + +describe('Windows OCR 엔진 어댑터', () => { + it('엔진인식_정상출력_정본결과로옮기고입력은환경변수로만넘긴다', async () => { + const calls: Array> = [] + const engine = createWindowsOcrEngine({ + platform: 'win32', + run: async (env) => { + calls.push(env) + return 'WARNING: noise\n{"lang":"ko","lines":[{"words":[{"t":"화면","x":1,"y":2,"w":30,"h":12}]}]}\n' + } + }) + const result = await engine.recognize({ imagePath: 'C:\\tmp\\a b.png', language: 'ko', scale: 1.5 }) + expect(result.words.map((w) => w.text)).toEqual(['화면']) + expect(calls[0]).toEqual({ + D3RO_OCR_MODE: 'recognize', + D3RO_OCR_IMAGE: 'C:\\tmp\\a b.png', + D3RO_OCR_LANG: 'ko', + D3RO_OCR_SCALE: '1.5' + }) + }) + + it('엔진인식_줄과단어가하나뿐이라배열이풀린출력_그대로읽는다', async () => { + const engine = createWindowsOcrEngine({ + platform: 'win32', + run: async () => '{"lang":"en-US","lines":{"words":{"t":"Hello","x":1,"y":2,"w":30,"h":12}}}' + }) + const result = await engine.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 }) + expect(result.words.map((w) => w.text)).toEqual(['Hello']) + expect(result.lines).toHaveLength(1) + }) + + it('엔진인식_글자가없는화면_빈결과를돌려준다', async () => { + const engine = createWindowsOcrEngine({ platform: 'win32', run: async () => '{"lang":"ko","lines":[]}' }) + const result = await engine.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 }) + expect(result.words).toEqual([]) + }) + + it('엔진인식_설치된언어없음_ScreenOcrUnavailable', async () => { + const engine = createWindowsOcrEngine({ platform: 'win32', run: async () => '{"error":"no-language"}' }) + await expect(engine.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 })).rejects.toMatchObject({ + code: ErrorCode.ScreenOcrUnavailable + }) + }) + + it('엔진인식_엔진예외와해석불가출력_ScreenOcrRecognitionFailed', async () => { + const failing = createWindowsOcrEngine({ + platform: 'win32', + run: async () => '{"error":"exception","message":"bad image"}' + }) + await expect(failing.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 })).rejects.toMatchObject({ + code: ErrorCode.ScreenOcrRecognitionFailed + }) + const garbage = createWindowsOcrEngine({ platform: 'win32', run: async () => 'not json at all' }) + await expect(garbage.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 })).rejects.toMatchObject({ + code: ErrorCode.ScreenOcrRecognitionFailed + }) + }) + + it('엔진인식_프로세스실행실패_ScreenOcrRecognitionFailed', async () => { + const engine = createWindowsOcrEngine({ + platform: 'win32', + run: async () => { + throw new Error('spawn ENOENT') + } + }) + await expect(engine.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 })).rejects.toMatchObject({ + code: ErrorCode.ScreenOcrRecognitionFailed + }) + }) + + it('엔진지원여부_Windows가아님_지원하지않고프로세스를띄우지않는다', async () => { + const run = vi.fn(async () => '{}') + const engine = createWindowsOcrEngine({ platform: 'darwin', run }) + expect(engine.isSupported()).toBe(false) + expect(await engine.listLanguages()).toEqual([]) + await expect(engine.recognize({ imagePath: 'x.png', language: 'auto', scale: 2 })).rejects.toMatchObject({ + code: ErrorCode.ScreenOcrUnavailable + }) + expect(run).not.toHaveBeenCalled() + }) + + it('언어목록_하나뿐이라문자열로온출력_목록으로돌려준다', async () => { + const single = createWindowsOcrEngine({ platform: 'win32', run: async () => '{"languages":"ko"}' }) + expect(await single.listLanguages()).toEqual(['ko']) + const many = createWindowsOcrEngine({ platform: 'win32', run: async () => '{"languages":["ko","en-US"]}' }) + expect(await many.listLanguages()).toEqual(['ko', 'en-US']) + }) +}) diff --git a/apps/desktop/tests/main/services/textinsert-redteam-r1-2.test.ts b/apps/desktop/tests/main/services/textinsert-redteam-r1-2.test.ts index 3abb236f..ec970f3b 100644 --- a/apps/desktop/tests/main/services/textinsert-redteam-r1-2.test.ts +++ b/apps/desktop/tests/main/services/textinsert-redteam-r1-2.test.ts @@ -94,7 +94,7 @@ function makeKeyboard(clip: MemoryClipboard, pasted: string[], typed: string[]): return { backspace: vi.fn(async () => undefined), paste: vi.fn(async () => { - pasted.push(clip.readText()) + pasted.push(await clip.readText()) }), type: vi.fn(async (text: string) => { typed.push(text) @@ -129,6 +129,19 @@ describe('TextInsertService 클립보드 복원 (redteam r1-2)', () => { expect(result.success).toBe(true) }) + it('비동기 클립보드 읽기가 끝난 뒤 원본을 복원한다', async () => { + const clip = new MemoryClipboard() + clip.text = 'original' + vi.spyOn(clip, 'readText').mockImplementation(() => Promise.resolve(clip.text)) + const { service, pasted } = makeService(clip) + + const result = await service.insertText('dictated', 'clipboard') + + expect(pasted).toEqual(['dictated']) + expect(result.method).toBe('clipboard') + expect(clip.text).toBe('original') + }) + it('Word/브라우저 서식(텍스트+HTML+RTF+이미지)을 모두 되돌린다', async () => { const clip = new MemoryClipboard() const img = new FakeImage(false, 'table-picture') @@ -293,12 +306,12 @@ describe('clipboard-snapshot 정책', () => { expect(isStandardClipboardFormat('FileNameW')).toBe(false) }) - it('표준 내용이 있으면 함께 쓰고, 같이 쓸 수 없는 포맷은 dropped 로 보고한다', () => { + it('표준 내용이 있으면 함께 쓰고, 같이 쓸 수 없는 포맷은 dropped 로 보고한다', async () => { const clip = new MemoryClipboard() clip.text = 't' clip.html = 'h' clip.buffers.set('vscode-editor-data', Buffer.from('{}')) - const plan = planClipboardRestore(captureClipboard(clip)) + const plan = planClipboardRestore(await captureClipboard(clip)) expect(plan).toEqual({ kind: 'write', data: { text: 't', html: 'h' }, @@ -306,37 +319,37 @@ describe('clipboard-snapshot 정책', () => { }) }) - it('사용자 정의 포맷이 여럿이면 되돌릴 수 없다고 판정한다 (clear 금지)', () => { + it('사용자 정의 포맷이 여럿이면 되돌릴 수 없다고 판정한다 (clear 금지)', async () => { const clip = new MemoryClipboard() clip.buffers.set('A', Buffer.from('a')) clip.buffers.set('B', Buffer.from('b')) - expect(planClipboardRestore(captureClipboard(clip)).kind).toBe('unrestorable') + expect(planClipboardRestore(await captureClipboard(clip)).kind).toBe('unrestorable') }) - it('readBuffer 가 예외를 던지는 포맷은 읽지 못한 포맷으로 분류한다', () => { + it('readBuffer 가 예외를 던지는 포맷은 읽지 못한 포맷으로 분류한다', async () => { const clip = new MemoryClipboard() clip.opaque = ['weird'] vi.spyOn(clip, 'readBuffer').mockImplementation(() => { throw new Error('nope') }) - const snap = captureClipboard(clip) + const snap = await captureClipboard(clip) expect(snap.unreadable).toEqual(['weird']) expect(planClipboardRestore(snap).kind).toBe('unrestorable') }) - it('availableFormats 가 실패하면 비어 있다고 가정하지 않는다', () => { + it('availableFormats 가 실패하면 비어 있다고 가정하지 않는다', async () => { const clip = new MemoryClipboard() vi.spyOn(clip, 'availableFormats').mockImplementation(() => { throw new Error('locked') }) - const snap = captureClipboard(clip) + const snap = await captureClipboard(clip) expect(snap.unreadable).toEqual([UNKNOWN_FORMATS]) expect(planClipboardRestore(snap).kind).toBe('unrestorable') }) - it('표준 포맷만 광고되고 내용이 비었으면 clear 로 되돌린다', () => { + it('표준 포맷만 광고되고 내용이 비었으면 clear 로 되돌린다', async () => { const clip = new MemoryClipboard() vi.spyOn(clip, 'availableFormats').mockReturnValue(['text/plain']) - expect(planClipboardRestore(captureClipboard(clip))).toEqual({ kind: 'clear' }) + expect(planClipboardRestore(await captureClipboard(clip))).toEqual({ kind: 'clear' }) }) }) diff --git a/apps/desktop/tests/main/update-policy.test.ts b/apps/desktop/tests/main/update-policy.test.ts index 3f18df0e..9a16e3dc 100644 --- a/apps/desktop/tests/main/update-policy.test.ts +++ b/apps/desktop/tests/main/update-policy.test.ts @@ -77,6 +77,11 @@ describe('decideUpdate', () => { expect(decision.forceFull).toBe(true) }) + it('full-only 정책이면 작은 패치도 전체 설치 파일을 받는다', () => { + const fullOnly = { ...policy, fullInstallVersionGap: 0 } + expect(decideUpdate(fullOnly, '1.18.2', '1.18.3').forceFull).toBe(true) + }) + it('major 정책이 꺼져 있으면 major 승격도 차분 가능', () => { const relaxed = { ...policy, fullInstallOnMajorChange: false } expect(decideUpdate(relaxed, '1.9.0', '2.0.0').forceFull).toBe(false) diff --git a/apps/desktop/tests/main/windows/popup-window-options.test.ts b/apps/desktop/tests/main/windows/popup-window-options.test.ts new file mode 100644 index 00000000..c5fdc6c3 --- /dev/null +++ b/apps/desktop/tests/main/windows/popup-window-options.test.ts @@ -0,0 +1,45 @@ +import { describe, expect, it, vi } from 'vitest' + +vi.mock('electron', () => ({ + BrowserWindow: class {}, + nativeTheme: { shouldUseDarkColors: true }, + shell: { openExternal: vi.fn() }, + app: { getPath: () => '', isPackaged: false } +})) + +vi.mock('@electron-toolkit/utils', () => ({ is: { dev: false } })) + +import { buildPopupWindowOptions } from '../../../src/main/windows/popup-window-factory' + +const spec = { name: 'history-popup', bounds: { width: 380, height: 200 }, onClosed: () => undefined } + +describe('buildPopupWindowOptions', () => { + it('팝업창옵션_기본팝업_포커스를빼앗지않는투명창이다', () => { + const options = buildPopupWindowOptions(spec, '/preload/popup.js') + expect(options).toMatchObject({ + width: 380, + height: 200, + show: false, + frame: false, + transparent: true, + focusable: false, + alwaysOnTop: true, + skipTaskbar: true + }) + expect(options.webPreferences).toMatchObject({ + preload: '/preload/popup.js', + contextIsolation: true, + nodeIntegration: false, + backgroundThrottling: false + }) + }) + + it('팝업창옵션_화면OCR오버레이_키를받는불투명창이되고보안설정은그대로다', () => { + const options = buildPopupWindowOptions( + { ...spec, name: 'screen-ocr', focusable: true, transparent: false }, + '/preload/popup.js' + ) + expect(options).toMatchObject({ focusable: true, transparent: false, frame: false, alwaysOnTop: true }) + expect(options.webPreferences).toMatchObject({ contextIsolation: true, nodeIntegration: false }) + }) +}) diff --git a/apps/mobile-rn/.maestro/README.md b/apps/mobile-rn/.maestro/README.md index 90e47146..91dd25ca 100644 --- a/apps/mobile-rn/.maestro/README.md +++ b/apps/mobile-rn/.maestro/README.md @@ -12,7 +12,7 @@ 필수 게이트는 실제 가입, OAuth, 결제, 팀 가입, 서버 데이터 생성을 수행하지 않는다. -CI는 같은 `fresh-install-signup.yaml`을 기본 프로필과 `840x1490` 작은 화면에서 각각 실행하고, 실패 여부와 관계없이 디스플레이 override를 초기화한다. Maestro 실행 전에 debug 앱과 AndroidTest APK를 임시 설치해 `CsprngInstrumentedTest`를 한 번 실행한다. 이 계측 검사는 실제 Android `RNGetRandomValuesModule`에서 16바이트 엔트로피를 두 번 받아 길이, non-zero, 비동일성, UUID v4 version/variant 소비 계약을 확인한 뒤 두 패키지를 제거한다. 이후 검증 대상 E2E APK를 fresh install한다. +CI는 같은 `fresh-install-signup.yaml`을 기본 프로필과 `840x1490` 작은 화면에서 각각 실행하고, 실패 여부와 관계없이 디스플레이 override를 초기화한다. 다중 기기 연결 시 `ANDROID_SERIAL`을 지정하면 runner가 모든 Maestro 호출에 같은 `--udid`를 전달해 다른 기기를 선택하지 않는다. 작은 화면에서는 실제 스크롤 후 컨트롤을 탭한다. Maestro 실행 전에 debug 앱과 AndroidTest APK를 임시 설치해 `CsprngInstrumentedTest`를 한 번 실행한다. 이 계측 검사는 실제 Android `RNGetRandomValuesModule`에서 16바이트 엔트로피를 두 번 받아 길이, non-zero, 비동일성, UUID v4 version/variant 소비 계약을 확인한 뒤 두 패키지를 제거한다. 이후 검증 대상 E2E APK를 fresh install한다. ## 외부 계정 게이트 diff --git a/apps/mobile-rn/.maestro/authenticated-parity.yaml b/apps/mobile-rn/.maestro/authenticated-parity.yaml index 71c32657..7a814598 100644 --- a/apps/mobile-rn/.maestro/authenticated-parity.yaml +++ b/apps/mobile-rn/.maestro/authenticated-parity.yaml @@ -20,6 +20,7 @@ name: Authenticated mobile parity navigation and fail-closed billing direction: DOWN timeout: 15000 visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: onboarding-skip - extendedWaitUntil: @@ -29,6 +30,7 @@ name: Authenticated mobile parity navigation and fail-closed billing - tapOn: id: login-email - inputText: ${MOBILE_E2E_EMAIL} +- hideKeyboard - tapOn: id: login-password - inputText: ${MOBILE_E2E_PASSWORD} @@ -39,6 +41,7 @@ name: Authenticated mobile parity navigation and fail-closed billing direction: DOWN timeout: 15000 visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: login-submit - extendedWaitUntil: @@ -60,8 +63,22 @@ name: Authenticated mobile parity navigation and fail-closed billing id: record-fab-dictation - assertVisible: id: record-screen +- scrollUntilVisible: + element: + id: record-import-file + direction: DOWN + timeout: 15000 + visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - assertVisible: id: record-import-file +- scrollUntilVisible: + element: + id: record-start + direction: DOWN + timeout: 15000 + visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: record-start - tapOn: @@ -74,14 +91,30 @@ name: Authenticated mobile parity navigation and fail-closed billing - setPermissions: permissions: microphone: allow +- scrollUntilVisible: + element: + id: record-start + direction: DOWN + timeout: 15000 + visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: record-start - extendedWaitUntil: visible: id: record-stop timeout: 15000 +- scrollUntilVisible: + element: + id: record-cancel + direction: DOWN + timeout: 15000 + visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: record-cancel + waitToSettleTimeoutMs: 1000 + retryTapIfNoChange: false - extendedWaitUntil: visible: id: record-start @@ -95,6 +128,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-talk direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-talk - assertVisible: @@ -109,6 +143,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: more-open-settings direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: more-open-settings - assertVisible: @@ -118,8 +153,16 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-account direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-account +- scrollUntilVisible: + element: + id: account-logout + direction: DOWN + timeout: 15000 + visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - assertVisible: id: account-logout - pressKey: BACK @@ -128,6 +171,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-paywall direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-paywall - assertVisible: @@ -143,6 +187,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-devices direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-devices - assertVisible: @@ -168,6 +213,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-templates direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-templates - assertVisible: @@ -178,6 +224,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-memos direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-memos - assertVisible: @@ -188,6 +235,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-teams direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-teams - assertVisible: @@ -198,6 +246,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-notifications direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-notifications - assertVisible: @@ -215,6 +264,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-notifications direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-notifications - assertVisible: @@ -227,6 +277,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-data-portability direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-data-portability - assertVisible: @@ -235,8 +286,9 @@ name: Authenticated mobile parity navigation and fail-closed billing - scrollUntilVisible: element: id: open-dictionary - direction: DOWN + direction: UP visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-dictionary - assertVisible: @@ -245,8 +297,9 @@ name: Authenticated mobile parity navigation and fail-closed billing - scrollUntilVisible: element: id: open-commands - direction: DOWN + direction: UP visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-commands - assertVisible: @@ -257,6 +310,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-knowledge direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-knowledge - assertVisible: @@ -267,6 +321,7 @@ name: Authenticated mobile parity navigation and fail-closed billing id: open-actions direction: DOWN visibilityPercentage: 50 + waitToSettleTimeoutMs: 1000 - tapOn: id: open-actions - assertVisible: diff --git a/apps/mobile-rn/.maestro/fresh-install-signup.yaml b/apps/mobile-rn/.maestro/fresh-install-signup.yaml index a576b327..2f5e0a6c 100644 --- a/apps/mobile-rn/.maestro/fresh-install-signup.yaml +++ b/apps/mobile-rn/.maestro/fresh-install-signup.yaml @@ -84,8 +84,8 @@ name: Fresh install complete tutorial and new-account boundary id: onboarding-next - scrollUntilVisible: element: - id: onboarding-step-5 - direction: UP + id: onboarding-theme-dark + direction: DOWN timeout: 10000 visibilityPercentage: 50 - swipe: @@ -130,10 +130,12 @@ name: Fresh install complete tutorial and new-account boundary permissions: microphone: allow notifications: allow -- extendedWaitUntil: - visible: +- scrollUntilVisible: + element: id: login-submit + direction: DOWN timeout: 30000 + visibilityPercentage: 50 - assertNotVisible: id: onboarding-screen - assertNotVisible: @@ -148,6 +150,12 @@ name: Fresh install complete tutorial and new-account boundary permissions: microphone: deny notifications: deny +- scrollUntilVisible: + element: + id: login-submit + direction: DOWN + timeout: 30000 + visibilityPercentage: 50 - assertVisible: id: login-submit - assertNotVisible: diff --git a/apps/mobile-rn/.maestro/navigation-shell-search-local.yaml b/apps/mobile-rn/.maestro/navigation-shell-search-local.yaml index e608c8d6..3b6c92a9 100644 --- a/apps/mobile-rn/.maestro/navigation-shell-search-local.yaml +++ b/apps/mobile-rn/.maestro/navigation-shell-search-local.yaml @@ -29,6 +29,7 @@ name: Mobile shell and unified search local proof - tapOn: id: login-email - inputText: ${MOBILE_E2E_EMAIL} +- hideKeyboard - tapOn: id: login-password - inputText: ${MOBILE_E2E_PASSWORD} @@ -86,6 +87,8 @@ name: Mobile shell and unified search local proof visible: id: history-detail-favorite timeout: 30000 +- assertVisible: + id: history-detail-share-markdown - takeScreenshot: unified-search-record-detail - pressKey: BACK - extendedWaitUntil: diff --git a/apps/mobile-rn/__tests__/history-detail-unmount-regression.test.tsx b/apps/mobile-rn/__tests__/history-detail-unmount-regression.test.tsx index 04605035..60f21c58 100644 --- a/apps/mobile-rn/__tests__/history-detail-unmount-regression.test.tsx +++ b/apps/mobile-rn/__tests__/history-detail-unmount-regression.test.tsx @@ -69,6 +69,28 @@ jest.mock('../src/features/history/history-service', () => { } }) +const mockPrepareTranscriptShareFile = jest.fn() +const mockPrepareAudioShareFile = jest.fn() +const mockSharePreparedPortableFile = jest.fn() +const mockDisposePreparedFile = jest.fn(async () => undefined) +const PREPARED_FILE = { + path: '/cache/portable_exports/transcript.md', + uri: 'file:///cache/portable_exports/transcript.md', + fileName: 'transcript.md', + mimeType: 'text/markdown', + format: 'md', + textContent: 'transcript', + dispose: mockDisposePreparedFile, +} + +jest.mock('../src/features/history/history-share', () => ({ + prepareTranscriptShareFile: (...args: unknown[]) => mockPrepareTranscriptShareFile(...args), + prepareAudioShareFile: (...args: unknown[]) => mockPrepareAudioShareFile(...args), +})) +jest.mock('../src/features/data-portability/portable-file', () => ({ + sharePreparedPortableFile: (...args: unknown[]) => mockSharePreparedPortableFile(...args), +})) + import HistoryDetailScreen from '../src/screens/HistoryDetailScreen' const SAMPLE_DETAIL: HistoryDetail = { @@ -129,7 +151,11 @@ describe('HistoryDetailScreen unmount audio & async cleanup', () => { mockPausePlayer.mockClear() mockResumePlayer.mockClear() mockGetHistoryDetail.mockReset().mockResolvedValue(SAMPLE_DETAIL) - mockCreateAudioPlaybackUrl.mockReset() + mockCreateAudioPlaybackUrl.mockReset().mockResolvedValue('https://storage.example/signed.wav') + mockPrepareTranscriptShareFile.mockReset().mockResolvedValue(PREPARED_FILE) + mockPrepareAudioShareFile.mockReset().mockResolvedValue(PREPARED_FILE) + mockSharePreparedPortableFile.mockReset().mockResolvedValue(undefined) + mockDisposePreparedFile.mockClear() mockGoBack.mockClear() }) @@ -181,4 +207,85 @@ describe('HistoryDetailScreen unmount audio & async cleanup', () => { }) expect(mockStartPlayer).not.toHaveBeenCalled() }) + + test('HistoryDetailScreen_Markdown버튼_파일생성및공유호출', async () => { + let renderer!: ReactTestRenderer + await act(async () => { + renderer = create( + , + ) + }) + + await act(async () => { + renderer.root.findByProps({ testID: 'history-detail-share-markdown' }).props.onPress() + await Promise.resolve() + }) + + expect(mockPrepareTranscriptShareFile).toHaveBeenCalledWith( + SAMPLE_DETAIL.entry, + 'md', + 'mobile.hist.summaryLabel', + ) + expect(mockSharePreparedPortableFile).toHaveBeenCalledWith(PREPARED_FILE, 'mobile.hist.shareMarkdown') + act(() => renderer.unmount()) + }) + + test('HistoryDetailScreen_원본오디오버튼_서명URL다운로드후공유', async () => { + let renderer!: ReactTestRenderer + await act(async () => { + renderer = create( + , + ) + }) + + await act(async () => { + renderer.root.findByProps({ testID: `history-audio-share-${AUDIO_ID}` }).props.onPress() + await Promise.resolve() + }) + + expect(mockCreateAudioPlaybackUrl).toHaveBeenCalledWith(USER_ID, SAMPLE_DETAIL.audioFiles[0]) + expect(mockPrepareAudioShareFile).toHaveBeenCalledWith( + SAMPLE_DETAIL.audioFiles[0], + 'https://storage.example/signed.wav', + ) + expect(mockSharePreparedPortableFile).toHaveBeenCalledWith(PREPARED_FILE, 'mobile.hist.shareAudio') + act(() => renderer.unmount()) + }) + + test('HistoryDetailScreen_공유준비중언마운트_늦은공유시트를열지않고파일정리', async () => { + let resolvePreparation: (file: typeof PREPARED_FILE) => void = () => undefined + mockPrepareAudioShareFile.mockImplementation( + () => new Promise((resolve) => { + resolvePreparation = resolve + }), + ) + let renderer!: ReactTestRenderer + await act(async () => { + renderer = create( + , + ) + }) + + await act(async () => { + renderer.root.findByProps({ testID: `history-audio-share-${AUDIO_ID}` }).props.onPress() + await Promise.resolve() + }) + act(() => renderer.unmount()) + await act(async () => { + resolvePreparation(PREPARED_FILE) + await Promise.resolve() + }) + + expect(mockSharePreparedPortableFile).not.toHaveBeenCalled() + expect(mockDisposePreparedFile).toHaveBeenCalledTimes(1) + }) }) diff --git a/apps/mobile-rn/__tests__/history-share.test.ts b/apps/mobile-rn/__tests__/history-share.test.ts new file mode 100644 index 00000000..ba80f6c2 --- /dev/null +++ b/apps/mobile-rn/__tests__/history-share.test.ts @@ -0,0 +1,92 @@ +import { FileSystem } from 'react-native-file-access'; +import { + MAX_SHARED_AUDIO_BYTES, + prepareAudioShareFile, + prepareTranscriptShareFile, +} from '../src/features/history/history-share'; + +jest.mock('react-native-file-access', () => ({ + Dirs: { CacheDir: '/cache' }, + FileSystem: { + exists: jest.fn(async () => true), + mkdir: jest.fn(async () => undefined), + writeFile: jest.fn(async () => undefined), + stat: jest.fn(async () => ({ size: 1 })), + unlink: jest.fn(async () => undefined), + }, +})); + +const ENTRY = { + title: '주간 회의', + original_text: '원문', + polished_text: '다듬은 전사', + summary_text: '요약 내용', +}; + +describe('기록 파일 공유', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('다듬은 전사와 요약을 Markdown 파일로 저장한다', async () => { + const file = await prepareTranscriptShareFile(ENTRY, 'md', '요약'); + + const write = jest.mocked(FileSystem.writeFile); + expect(file.format).toBe('md'); + expect(file.mimeType).toBe('text/markdown'); + expect(file.fileName.endsWith('.md')).toBe(true); + expect(write.mock.calls[0]?.[1]).toBe('# 주간 회의\n\n다듬은 전사\n\n## 요약\n\n요약 내용'); + }); + + it('다듬은 값이 비어 있으면 원문으로 텍스트 파일을 만든다', async () => { + await prepareTranscriptShareFile({ ...ENTRY, polished_text: ' ' }, 'txt', '요약'); + + expect(jest.mocked(FileSystem.writeFile).mock.calls[0]?.[1]).toBe('주간 회의\n\n원문\n\n요약\n\n요약 내용'); + }); + + it('사용자가 선택한 원본 오디오를 제한 안에서 파일로 준비한다', async () => { + const bytes = new Uint8Array([82, 73, 70, 70]); + const fetchAudio: typeof fetch = async () => new Response(bytes, { + status: 200, + headers: { 'content-length': String(bytes.byteLength) }, + }); + + const file = await prepareAudioShareFile({ + mime_type: 'audio/wav', + original_name: '회의.wav', + size_bytes: bytes.byteLength, + }, 'https://example.com/signed-audio', fetchAudio); + + expect(file).toMatchObject({ + format: 'binary', + mimeType: 'audio/wav', + textContent: null, + }); + expect(jest.mocked(FileSystem.writeFile).mock.calls[0]?.[2]).toBe('base64'); + }); + + it('Content-Length가 50 MiB를 넘으면 본문을 파일에 쓰지 않는다', async () => { + const fetchAudio: typeof fetch = async () => new Response(new Uint8Array([1]), { + status: 200, + headers: { 'content-length': String(MAX_SHARED_AUDIO_BYTES + 1) }, + }); + + await expect(prepareAudioShareFile({ + mime_type: 'audio/wav', + original_name: 'large.wav', + size_bytes: 1, + }, 'https://example.com/signed-audio', fetchAudio)).rejects.toThrow('50 MiB'); + expect(FileSystem.writeFile).not.toHaveBeenCalled(); + }); + + it('다운로드 실패를 공유 성공으로 처리하지 않는다', async () => { + const fetchAudio: typeof fetch = async () => new Response(null, { status: 403 }); + + await expect(prepareAudioShareFile({ + mime_type: 'audio/wav', + original_name: 'private.wav', + size_bytes: 4, + }, 'https://example.com/expired-audio', fetchAudio)).rejects.toThrow('HTTP 403'); + expect(FileSystem.writeFile).not.toHaveBeenCalled(); + }); +}); diff --git a/apps/mobile-rn/android/app/build.gradle b/apps/mobile-rn/android/app/build.gradle index 602a1e9b..bcf3e59b 100644 --- a/apps/mobile-rn/android/app/build.gradle +++ b/apps/mobile-rn/android/app/build.gradle @@ -151,8 +151,8 @@ def versionSettingsValid = configuredVersionName != null && configuredVersionName ==~ strictSemver && configuredVersionCodeValue != null && configuredVersionCodeValue <= 2100000000L -def resolvedVersionName = versionSettingsValid ? configuredVersionName : "1.17.1" -def resolvedVersionCode = versionSettingsValid ? configuredVersionCodeValue.toInteger() : 1170100 +def resolvedVersionName = versionSettingsValid ? configuredVersionName : "1.18.4" +def resolvedVersionCode = versionSettingsValid ? configuredVersionCodeValue.toInteger() : 1180400 def requiredReleaseSettings = [ D3RO_RELEASE_STORE_FILE: releaseStoreFilePath, diff --git a/apps/mobile-rn/ios/D3ROVoice.xcodeproj/project.pbxproj b/apps/mobile-rn/ios/D3ROVoice.xcodeproj/project.pbxproj index ac77b4d7..dbcf83b1 100644 --- a/apps/mobile-rn/ios/D3ROVoice.xcodeproj/project.pbxproj +++ b/apps/mobile-rn/ios/D3ROVoice.xcodeproj/project.pbxproj @@ -257,7 +257,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1170100; + CURRENT_PROJECT_VERSION = 1180400; ENABLE_BITCODE = NO; INFOPLIST_FILE = D3ROVoice/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.1; @@ -265,7 +265,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.17.1; + MARKETING_VERSION = 1.18.4; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -287,14 +287,14 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1170100; + CURRENT_PROJECT_VERSION = 1180400; INFOPLIST_FILE = D3ROVoice/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.17.1; + MARKETING_VERSION = 1.18.4; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", diff --git a/apps/mobile-rn/ios/D3ROVoice/Info.plist b/apps/mobile-rn/ios/D3ROVoice/Info.plist index d8aa0624..edf50ffa 100644 --- a/apps/mobile-rn/ios/D3ROVoice/Info.plist +++ b/apps/mobile-rn/ios/D3ROVoice/Info.plist @@ -31,7 +31,6 @@ Editor CFBundleURLSchemes - d3ro d3ro-voice diff --git a/apps/mobile-rn/metadata/android/en-US/changelogs/1180000.txt b/apps/mobile-rn/metadata/android/en-US/changelogs/1180000.txt new file mode 100644 index 00000000..a6c57884 --- /dev/null +++ b/apps/mobile-rn/metadata/android/en-US/changelogs/1180000.txt @@ -0,0 +1 @@ +Stability and performance improvements. diff --git a/apps/mobile-rn/metadata/android/en-US/changelogs/1180100.txt b/apps/mobile-rn/metadata/android/en-US/changelogs/1180100.txt new file mode 100644 index 00000000..a6c57884 --- /dev/null +++ b/apps/mobile-rn/metadata/android/en-US/changelogs/1180100.txt @@ -0,0 +1 @@ +Stability and performance improvements. diff --git a/apps/mobile-rn/metadata/android/en-US/changelogs/1180200.txt b/apps/mobile-rn/metadata/android/en-US/changelogs/1180200.txt new file mode 100644 index 00000000..a6c57884 --- /dev/null +++ b/apps/mobile-rn/metadata/android/en-US/changelogs/1180200.txt @@ -0,0 +1 @@ +Stability and performance improvements. diff --git a/apps/mobile-rn/metadata/android/en-US/changelogs/1180300.txt b/apps/mobile-rn/metadata/android/en-US/changelogs/1180300.txt new file mode 100644 index 00000000..a6c57884 --- /dev/null +++ b/apps/mobile-rn/metadata/android/en-US/changelogs/1180300.txt @@ -0,0 +1 @@ +Stability and performance improvements. diff --git a/apps/mobile-rn/metadata/android/en-US/changelogs/1180400.txt b/apps/mobile-rn/metadata/android/en-US/changelogs/1180400.txt new file mode 100644 index 00000000..a6c57884 --- /dev/null +++ b/apps/mobile-rn/metadata/android/en-US/changelogs/1180400.txt @@ -0,0 +1 @@ +Stability and performance improvements. diff --git a/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180000.txt b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180000.txt new file mode 100644 index 00000000..183fbc16 --- /dev/null +++ b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180000.txt @@ -0,0 +1 @@ +안정성과 성능을 개선했습니다. diff --git a/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180100.txt b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180100.txt new file mode 100644 index 00000000..183fbc16 --- /dev/null +++ b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180100.txt @@ -0,0 +1 @@ +안정성과 성능을 개선했습니다. diff --git a/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180200.txt b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180200.txt new file mode 100644 index 00000000..183fbc16 --- /dev/null +++ b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180200.txt @@ -0,0 +1 @@ +안정성과 성능을 개선했습니다. diff --git a/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180300.txt b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180300.txt new file mode 100644 index 00000000..183fbc16 --- /dev/null +++ b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180300.txt @@ -0,0 +1 @@ +안정성과 성능을 개선했습니다. diff --git a/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180400.txt b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180400.txt new file mode 100644 index 00000000..183fbc16 --- /dev/null +++ b/apps/mobile-rn/metadata/android/ko-KR/changelogs/1180400.txt @@ -0,0 +1 @@ +안정성과 성능을 개선했습니다. diff --git a/apps/mobile-rn/package-lock.json b/apps/mobile-rn/package-lock.json index 73edac53..b2fbf1a7 100644 --- a/apps/mobile-rn/package-lock.json +++ b/apps/mobile-rn/package-lock.json @@ -1,12 +1,12 @@ { "name": "@d3ro/mobile-rn", - "version": "1.17.1", + "version": "1.18.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@d3ro/mobile-rn", - "version": "1.17.1", + "version": "1.18.4", "dependencies": { "@d3ro/api-client": "file:../../packages/api-client", "@d3ro/core": "file:../../packages/core", @@ -56,12 +56,12 @@ "typescript": "^5.8.3" }, "engines": { - "node": "^22.21.0 || ^24.3.0 || >=25.0.0" + "node": "24.x" } }, "../..": { "name": "d3ro-voice-monorepo", - "version": "1.17.1", + "version": "1.18.4", "dev": true, "license": "MIT", "optional": true, @@ -83,7 +83,7 @@ }, "../../packages/api-client": { "name": "@d3ro/api-client", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "@supabase/supabase-js": "^2.45.0" @@ -99,7 +99,7 @@ }, "../../packages/core": { "name": "@d3ro/core", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "docx": "^9.6.1" @@ -110,7 +110,7 @@ }, "../../packages/i18n": { "name": "@d3ro/i18n", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "devDependencies": { "@types/react": "^19.0.0" @@ -121,7 +121,7 @@ }, "../../packages/ui-native": { "name": "@d3ro/ui-native", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "devDependencies": { "@types/react": "*" diff --git a/apps/mobile-rn/package.json b/apps/mobile-rn/package.json index 41326829..187be27e 100644 --- a/apps/mobile-rn/package.json +++ b/apps/mobile-rn/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/mobile-rn", - "version": "1.17.1", + "version": "1.18.4", "private": true, "scripts": { "android": "react-native run-android", @@ -61,6 +61,6 @@ "typescript": "^5.8.3" }, "engines": { - "node": "^22.21.0 || ^24.3.0 || >=25.0.0" + "node": "24.x" } } diff --git a/apps/mobile-rn/src/features/data-portability/portability-types.ts b/apps/mobile-rn/src/features/data-portability/portability-types.ts index d9c4bbb7..1c8f0f77 100644 --- a/apps/mobile-rn/src/features/data-portability/portability-types.ts +++ b/apps/mobile-rn/src/features/data-portability/portability-types.ts @@ -224,7 +224,7 @@ export interface PreparedPortableFile { uri: string; fileName: string; mimeType: string; - format: PortableTextFormat | MeetingDocumentFormat; + format: PortableTextFormat | MeetingDocumentFormat | 'binary'; textContent: string | null; dispose: () => Promise; } diff --git a/apps/mobile-rn/src/features/data-portability/portable-file.ts b/apps/mobile-rn/src/features/data-portability/portable-file.ts index 60b7be56..5b84f649 100644 --- a/apps/mobile-rn/src/features/data-portability/portable-file.ts +++ b/apps/mobile-rn/src/features/data-portability/portable-file.ts @@ -74,7 +74,7 @@ async function disposeExport(path: string): Promise { if (await FileSystem.exists(path)) await FileSystem.unlink(path); } -async function persistExport(options: { +export async function persistExport(options: { baseName: string; extension: string; mimeType: string; diff --git a/apps/mobile-rn/src/features/history/history-share.ts b/apps/mobile-rn/src/features/history/history-share.ts new file mode 100644 index 00000000..97f1c19d --- /dev/null +++ b/apps/mobile-rn/src/features/history/history-share.ts @@ -0,0 +1,94 @@ +import type { AudioFile, HistoryEntry } from '@d3ro/api-client'; +import { persistExport } from '../data-portability/portable-file'; +import type { PreparedPortableFile } from '../data-portability/portability-types'; + +export const MAX_SHARED_AUDIO_BYTES = 50 * 1024 * 1024; + +export type TranscriptShareFormat = 'txt' | 'md'; + +type TranscriptShareEntry = Pick< + HistoryEntry, + 'title' | 'original_text' | 'polished_text' | 'summary_text' +>; + +export function buildTranscriptShareText( + entry: TranscriptShareEntry, + format: TranscriptShareFormat, + summaryLabel: string, +): string { + const title = entry.title?.replace(/\s*\r?\n\s*/g, ' ').trim() ?? ''; + const transcript = entry.polished_text?.trim() || entry.original_text.trim(); + const summary = entry.summary_text?.trim() ?? ''; + const sections = [ + format === 'md' && title !== '' ? `# ${title}` : title, + transcript, + ]; + if (summary !== '') { + sections.push(`${format === 'md' ? '## ' : ''}${summaryLabel}`, summary); + } + return sections.filter(section => section !== '').join('\n\n'); +} + +export function prepareTranscriptShareFile( + entry: TranscriptShareEntry, + format: TranscriptShareFormat, + summaryLabel: string, +): Promise { + return persistExport({ + baseName: entry.title?.trim() || 'd3ro-transcript', + extension: format, + mimeType: format === 'md' ? 'text/markdown' : 'text/plain', + format, + text: buildTranscriptShareText(entry, format, summaryLabel), + bytes: null, + }); +} + +const AUDIO_EXTENSIONS: Readonly> = { + 'audio/aac': 'aac', + 'audio/flac': 'flac', + 'audio/mp4': 'm4a', + 'audio/mpeg': 'mp3', + 'audio/ogg': 'ogg', + 'audio/wav': 'wav', + 'audio/wave': 'wav', + 'audio/webm': 'webm', + 'audio/x-m4a': 'm4a', + 'audio/x-wav': 'wav', + 'video/mp4': 'mp4', +}; + +export async function prepareAudioShareFile( + audioFile: Pick, + signedUrl: string, + fetchAudio: typeof fetch = fetch, +): Promise { + const mimeType = audioFile.mime_type.toLowerCase().split(';')[0].trim(); + const extension = AUDIO_EXTENSIONS[mimeType]; + if (extension === undefined) throw new Error('Unsupported audio share format'); + if (audioFile.size_bytes > MAX_SHARED_AUDIO_BYTES) throw new Error('Audio share exceeds 50 MiB'); + + const controller = new AbortController(); + const timeout = setTimeout(() => controller.abort(), 30_000); + try { + const response = await fetchAudio(signedUrl, { signal: controller.signal }); + if (!response.ok) throw new Error(`Audio download failed with HTTP ${response.status}`); + const declaredLength = Number(response.headers.get('content-length')); + if (Number.isFinite(declaredLength) && declaredLength > MAX_SHARED_AUDIO_BYTES) { + throw new Error('Audio share exceeds 50 MiB'); + } + const bytes = new Uint8Array(await response.arrayBuffer()); + if (bytes.byteLength === 0) throw new Error('Audio share is empty'); + if (bytes.byteLength > MAX_SHARED_AUDIO_BYTES) throw new Error('Audio share exceeds 50 MiB'); + return await persistExport({ + baseName: audioFile.original_name?.replace(/\.[^.]+$/, '') || 'd3ro-audio', + extension, + mimeType, + format: 'binary', + text: null, + bytes, + }); + } finally { + clearTimeout(timeout); + } +} diff --git a/apps/mobile-rn/src/screens/HistoryDetailScreen.tsx b/apps/mobile-rn/src/screens/HistoryDetailScreen.tsx index e5fe1b33..d8baa9d2 100644 --- a/apps/mobile-rn/src/screens/HistoryDetailScreen.tsx +++ b/apps/mobile-rn/src/screens/HistoryDetailScreen.tsx @@ -30,6 +30,14 @@ import { type HistoryDetail, } from '../features/history/history-service' import { loadHistoryCache } from '../features/history/history-cache' +import { + prepareAudioShareFile, + prepareTranscriptShareFile, +} from '../features/history/history-share' +import { + sharePreparedPortableFile, +} from '../features/data-portability/portable-file' +import type { PreparedPortableFile } from '../features/data-portability/portability-types' import { useMobilePreferences } from '../lib/preferences-context' const HISTORY_MODE_KEYS: Record = { @@ -104,6 +112,8 @@ export default function HistoryDetailScreen({ const [activeAudioId, setActiveAudioId] = useState(null) const [paused, setPaused] = useState(false) const [audioBusy, setAudioBusy] = useState(false) + const [sharingFile, setSharingFile] = useState(false) + const [sharingAudioId, setSharingAudioId] = useState(null) useEffect(() => { mountedRef.current = true @@ -306,6 +316,48 @@ export default function HistoryDetailScreen({ } } + const shareTranscriptFile = async (): Promise => { + if (detail === null || sharingFile) return + setSharingFile(true) + setError(null) + let file: PreparedPortableFile | null = null + try { + file = await prepareTranscriptShareFile(detail.entry, 'md', t('mobile.hist.summaryLabel')) + if (!mountedRef.current) { + await file.dispose().catch(() => undefined) + return + } + await sharePreparedPortableFile(file, t('mobile.hist.shareMarkdown')) + } catch { + if (file !== null) await file.dispose().catch(() => undefined) + if (mountedRef.current) setError(t('mobile.hist.shareFailed')) + } finally { + if (mountedRef.current) setSharingFile(false) + } + } + + const shareAudio = async (audioFile: AudioFile): Promise => { + if (user === null || sharingAudioId !== null || offline || audioFile.upload_status !== 'uploaded') return + setSharingAudioId(audioFile.id) + setError(null) + let file: PreparedPortableFile | null = null + try { + const signedUrl = await createAudioPlaybackUrl(user.id, audioFile) + if (!mountedRef.current) return + file = await prepareAudioShareFile(audioFile, signedUrl) + if (!mountedRef.current) { + await file.dispose().catch(() => undefined) + return + } + await sharePreparedPortableFile(file, t('mobile.hist.shareAudio')) + } catch { + if (file !== null) await file.dispose().catch(() => undefined) + if (mountedRef.current) setError(t('mobile.hist.audioError')) + } finally { + if (mountedRef.current) setSharingAudioId(null) + } + } + const controlAudio = async (audioFile: AudioFile): Promise => { if (user === null || audioBusy) return const playbackGeneration = ++playbackGenerationRef.current @@ -478,6 +530,16 @@ export default function HistoryDetailScreen({ > {t('mobile.hist.share')} + { void shareTranscriptFile() }} + style={styles.compactButton} + testID="history-detail-share-markdown" + > + {t('mobile.hist.shareMarkdown')} + @@ -611,6 +673,16 @@ export default function HistoryDetailScreen({ : t('mobile.hist.audioPlay')} + { void shareAudio(audioFile) }} + style={styles.compactButton} + testID={`history-audio-share-${audioFile.id}`} + > + {t('mobile.hist.share')} + ))} {activeAudioId !== null && ( @@ -729,7 +801,7 @@ function createStyles(palette: Palette) { }, inlineButton: { minHeight: 48, justifyContent: 'center' }, primaryCard: { gap: 8 }, - actionRow: { flexDirection: 'row', justifyContent: 'flex-end', gap: 8, marginBottom: 4 }, + actionRow: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'flex-end', gap: 8, marginBottom: 4 }, compactButton: { minWidth: 48, minHeight: 48, diff --git a/apps/web/package.json b/apps/web/package.json index bd6c9608..696237ad 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/web", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice 웹 앱 — Next.js 기반 SaaS 인터페이스", "scripts": { @@ -28,8 +28,8 @@ "@supabase/ssr": "^0.10.0", "@supabase/supabase-js": "^2.103.0", "lucide-react": "^1.33.0", - "mermaid": "^11.14.0", - "next": "16.3.1", + "mermaid": "^12.3.0", + "next": "16.4.6", "react": "^19.0.0", "react-dom": "^19.0.0", "react-markdown": "^10.1.0", @@ -37,9 +37,9 @@ }, "devDependencies": { "@playwright/test": "^1.62.1", - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", - "vitest": "^2.1.0" + "vitest": "^5.1.0" } } diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts index ab31a6c4..d40417f4 100644 --- a/apps/web/vitest.config.ts +++ b/apps/web/vitest.config.ts @@ -7,8 +7,8 @@ export default defineConfig({ '@': path.resolve(__dirname, './src'), }, }, - esbuild: { - jsx: 'automatic', + oxc: { + jsx: { runtime: 'automatic' }, }, test: { globals: false, diff --git a/docs/deployment/nas-deploy-runbook.md b/docs/deployment/nas-deploy-runbook.md index 1752c042..f3a098e1 100644 --- a/docs/deployment/nas-deploy-runbook.md +++ b/docs/deployment/nas-deploy-runbook.md @@ -61,6 +61,16 @@ curl -fsSI http://127.0.0.1:3001/login | head -n 1 curl -fsSI http://127.0.0.1:3002/app/login | head -n 1 ``` +Windows에서 로컬 Docker 데몬 없이 SSH 빌드하는 현재 경로(2026-11-17 전체 빌드, 2026-11-18 선택 빌드 검증): + +```powershell +$env:DOCKER_HOST = "ssh://yunchan-nas" +pwsh -NoProfile -File scripts/deploy-nas.ps1 -BuildOnly +ssh yunchan-nas "cd /volume1/docker/d3ro && docker compose up -d" +``` + +`-BuildOnly`는 기본적으로 API·Admin·Web 이미지를 원격 Docker에 만들고 tar/배포용 `.env` 패키징은 생략한다. 이미 완료된 이미지를 유지하며 하나만 다시 빌드할 때는 `-Services web`처럼 `api`/`admin`/`web`을 선택한다(2026-11-18). Web Push 공개키는 `NEXT_PUBLIC_VAPID_PUBLIC_KEY`/`WEBPUSH_VAPID_PUBLIC_KEY`가 비어 있으면 `release/webpush-vapid-public.key`에서 읽는다. 로컬 `JWT_SECRET` 없이도 빌드할 수 있으며 NAS의 기존 `.env`는 그대로 유지한다. + --- ## 4. Rollback Procedure diff --git a/docs/deployment/push-transport-without-firebase.md b/docs/deployment/push-transport-without-firebase.md index 784ce800..9a3dd36f 100644 --- a/docs/deployment/push-transport-without-firebase.md +++ b/docs/deployment/push-transport-without-firebase.md @@ -40,7 +40,7 @@ In-app events use IPC/EventEmitter and Supabase Realtime. No push transport, no ### Web — Firebase-free, implemented in source - Standard **Web Push** with **VAPID** keys. The browser Push API + service worker handles delivery; the server signs with a VAPID private key and POSTs to the subscription endpoint. - The sidebar requests permission from an explicit user gesture, creates/checks in a stable active `platform='web'` device, and stores the serialized subscription in `push_tokens` through `register_push_registration`. Opt-out records a per-user disabled intent before bounded parallel server/local cleanup; an existing local subscription is re-registered through the server RPC before the UI may call it connected. Logout starts cleanup without waiting and always proceeds to sign-out. -- `NEXT_PUBLIC_VAPID_PUBLIC_KEY` is baked into the browser bundle and must match the Edge Function's `WEBPUSH_VAPID_PUBLIC_KEY`; a missing browser key leaves the control unavailable. +- `NEXT_PUBLIC_VAPID_PUBLIC_KEY` is baked into the browser bundle and must match the Edge Function's `WEBPUSH_VAPID_PUBLIC_KEY`; NAS deploy scripts fall back to the versioned public key `release/webpush-vapid-public.key`. A missing browser key leaves the control unavailable. - No Firebase, no Google account. APNs not involved. ### iOS — Firebase-free, implemented in source @@ -74,9 +74,7 @@ If the goal is "no Firebase at all", the decision reduces to: replace Android tr 1. **Keep Supabase as the SSOT/outbox** (already true). Do not move token/outbox logic. 2. **[done] Implement `webpush` + `apns` transports** in `send-push` (`_shared/webpush.ts`, `_shared/apns.ts`). 3. **[source done] Register web/APNs clients through the device-bound RPCs.** Keep provider configuration and real delivery as runtime gates. -4. **For Android, offer two modes behind config:** - - `fcm` (default): minimal Firebase project, push-only usage. - - `unifiedpush` (opt-in): self-hosted ntfy distributor; documented UX and battery caveats. +4. **For Android, keep FCM** (2026-11-17 decision): use a minimal push-only Firebase project. Do not add a second UnifiedPush transport without a new product review. 5. **Do not adopt OneSignal/Pusher** as a "Firebase replacement" — it does not remove the dependency. ### Effort sketch @@ -98,7 +96,7 @@ If the goal is "no Firebase at all", the decision reduces to: replace Android tr | Web Push transport | `_shared/webpush.ts` | VAPID ES256 JWT + RFC 8291 `aes128gcm` encryption; strict config/subscription validation; 200/404/410/413 mapping | | APNs transport | `_shared/apns.ts` | Token-based `.p8` ES256 JWT (cached ~50 min); production/sandbox hosts; stale (`BadDeviceToken`/`Unregistered`) and 403 handling | | Provider routing | `send-push/index.ts` | `fcm` / `webpush` / `apns` dispatched with per-delivery stale → `stale`, payload → `permanent_failure`, else retryable; unknown providers stay `push_provider_not_supported` | -| Cloudflare cron drain | `server/cloudflare-worker/src/push-drain.ts` + `scheduled()` + `wrangler.toml [triggers] crons` | POSTs `send-push?mode=drain&limit=…` with the service-role bearer every minute | +| Cloudflare cron drain | `server/cloudflare-worker/src/push-drain.ts` + `scheduled()` + `wrangler.toml [triggers] crons` | POSTs `send-push?mode=drain&limit=…` every minute with the current project secret as both Bearer and `apikey`; live scheduled success verified 2026-11-17 | | Tests | `_shared/webpush.test.ts`, `_shared/apns.test.ts`, `push-drain.test.ts`, `push-contract.test.ts` | 10 new tests incl. an RFC 8291 decrypt round-trip; CI runs the edge suite and the worker drain test | | Web client | `apps/web/public/sw.js`, `src/lib/{web-device,web-push,web-push-session}.ts`, `web-push-control.tsx` | Explicit opt-in/out, stable active device, device-bound RPCs, persistence rollback, disabled-intent reconciliation, bounded parallel cleanup, non-blocking logout; standalone image copies the service worker | | Web contract tests | `apps/web/e2e/web-push.spec.ts` | 17 tests for installation identity, revoked-device refusal, permission/VAPID gate, register/unregister RPCs, rollback, stale-subscription reconciliation, bounded cleanup, and logout independence | @@ -111,14 +109,14 @@ An ephemeral VAPID pair, throwaway user, isolated Supabase project, and throwawa ### Required configuration | Secret / var | Consumer | Purpose | |---|---|---| -| `WEBPUSH_VAPID_PUBLIC_KEY` / `WEBPUSH_VAPID_PRIVATE_KEY` / `WEBPUSH_SUBJECT` | Supabase Edge Function | VAPID signing; subject must be `mailto:` or `https:` | -| `NEXT_PUBLIC_VAPID_PUBLIC_KEY` | Web image build | Public half of the same VAPID pair, baked into the client bundle; missing means unavailable/fail-closed | -| `APNS_KEY_ID` / `APNS_TEAM_ID` / `APNS_PRIVATE_KEY` / `APNS_TOPIC` / `APNS_ENVIRONMENT` | Supabase Edge Function | APNs token auth; topic is the bundle id (`com.d3ro.voice`) | -| `SUPABASE_URL` / `SUPABASE_SERVICE_ROLE_KEY` / `PUSH_DRAIN_BATCH_LIMIT` | Cloudflare Worker | Cron drain target + auth (service role key as `wrangler secret`) | +| `WEBPUSH_VAPID_PUBLIC_KEY` / `WEBPUSH_VAPID_PRIVATE_KEY` / `WEBPUSH_SUBJECT` | Supabase Edge Function | VAPID signing; production values configured 2026-11-17 | +| `NEXT_PUBLIC_VAPID_PUBLIC_KEY` | Web image build | Public half of the same pair. If the env is blank, NAS deploy scripts use `release/webpush-vapid-public.key` | +| `APNS_KEY_ID` / `APNS_TEAM_ID` / `APNS_PRIVATE_KEY` / `APNS_TOPIC` / `APNS_ENVIRONMENT` | Supabase Edge Function | APNs token auth; topic is the bundle id (`com.d3ro.voice`), still external | +| `SUPABASE_URL` / `SUPABASE_SERVICE_ROLE_KEY` / `PUSH_DRAIN_BATCH_LIMIT` | Cloudflare Worker | Cron drain target + current project secret; Bearer and `apikey` are both sent | ### Remaining work -- **Runtime proof:** configure matching web/server VAPID values and APNs credentials, build/deploy the web image and Edge/cron code, then prove authenticated browser/iOS registration, outbox drain, and real receipt. Source and automated contract tests alone do not satisfy this gate. -- **Android decision:** keep FCM or adopt UnifiedPush (see §2/§3). +- **Runtime proof:** rebuild/deploy the web image with the public VAPID key, then prove authenticated browser/iOS registration and real receipt. The production scheduled drain is already GREEN (`claimed=1 completed=1 pending=0`, 2026-11-17). +- **Android:** FCM remains the selected Play transport; production Firebase credentials are tracked in `EXT-FIREBASE-01`. --- diff --git a/docs/deployment/update-system-assessment.md b/docs/deployment/update-system-assessment.md index eb7f904c..716ca904 100644 --- a/docs/deployment/update-system-assessment.md +++ b/docs/deployment/update-system-assessment.md @@ -120,6 +120,7 @@ fail-closed 서명 검증, 명시적 publish) 방향으로 설정을 정렬**한 - **full로 강제해야 하는 경우**: (a) 현재 버전을 신뢰할 수 없음/손상, (b) major 승격(스키마·ABI 변경), (c) minor 갭이 임계 이상, (d) 서버가 Range 미지원. - 구현: `autoUpdater.disableDifferentialDownload`를 위 조건에서 켠다. +- **2026-11-20 현재 Windows 적용:** Electron 43 설치본이 Cloudflare의 100 MiB 업로드 한도를 넘어 `nsis.differentialPackage: false`와 최대 solid 압축을 사용한다. Windows는 `.blockmap` 차분 없이 항상 전체 설치본을 받도록 `fullInstallVersionGap: 0`을 게시하며, macOS 패키징은 유지한다. 상세한 게시 중단·복구 증거는 `docs/evidence/2026-11-17-backlog-operations.md`에 있다. ### 4.3 채널과 staged rollout diff --git a/docs/evidence/2026-11-17-backlog-operations.md b/docs/evidence/2026-11-17-backlog-operations.md new file mode 100644 index 00000000..c44a7dd4 --- /dev/null +++ b/docs/evidence/2026-11-17-backlog-operations.md @@ -0,0 +1,123 @@ +# 2026-11-17 백로그 운영·검증 증거 + +## 전체 게이트 + +- `npm run verify:all` GREEN: desktop Vitest 212 files / 2,890 tests, mobile Jest 103 suites / 651 tests, workspace/mobile/site typecheck·lint 및 위생·계약 게이트 통과. +- `dotnet test apps/api-server.Tests` 55/55 PASS. +- Cloudflare Worker Deno 15/15, Site Bridge Deno 5/5 PASS. +- 모바일 release boundary/config/build-config self-tests, `test:hygiene`, `check:protected-tests`, `security:secrets`, `contract:check`, `check:migrations`(74), `check:i18n`, `check:ds-contract`, `check:design`, `version:check` GREEN. + +## Wave 7 운영 반영 + +- 롤백 태그 시점: NAS `20261117-173718`. +- 원격 Docker 이미지: API `12580b023110…`, Admin `2b7a31b0959a…`, Web(VAPID 포함) `cfaa99bc17f2…`. +- `scripts/deploy-nas.ps1 -BuildOnly`로 SSH 원격 빌드 후 NAS compose로 교체했다. 로컬 패키징은 로컬 `JWT_SECRET` 부재로 첫 시도에서 중단됐지만 이미지 빌드는 완료됐고, NAS의 기존 `.env`를 유지해 배포했다. +- 라이브 확인: `/`, `/app/login`, `/health`, `https://d3ro-admin.chanpaca.net/login`, Worker `/worker-health` 및 프록시 `/health` 모두 HTTP 200. +- Worker `d3ro-voice-api` 현재 코드 배포 ID `b9e68793-b061-481f-a620-dab73a91a9d8`; Site Bridge `cca39627-c96e-4164-892e-6ffb3a1b54bf`. 기존 사설 IP `BACKEND_ORIGIN`은 제거됐다. + +## Push drain 복구 + +1. 최초 scheduled 로그는 `push_drain_http_401`이었다. +2. `push-drain.test.ts`에 현대식 서비스 키의 `apikey` 계약을 먼저 추가해 RED를 확인하고, `push-drain.ts`가 Bearer + `apikey`를 모두내도록 수정했다. Deno 15/15 GREEN. +3. Worker에는 현재 Supabase 프로젝트의 default secret을 주입했다. 값이나 저장 파일 내용은 출력하지 않았다. +4. 직접 drain HTTP 200 `claimed=1 completed=1 pending=0` 및 실제 Cloudflare scheduled 로그 `claimed=1 completed=1 pending=0`을 확인했다. +5. `send-push`를 VAPID 설정 후 운영 재배포하고 drain HTTP 200 `claimed=0 completed=0 pending=0`을 재확인했다. +6. `WEBPUSH_VAPID_PUBLIC_KEY`/`WEBPUSH_VAPID_PRIVATE_KEY`/`WEBPUSH_SUBJECT`는 Supabase에만 존재 여부를 확인했다. 공개키는 `release/webpush-vapid-public.key`, 개인키는 저장소에 없다. + +## 운영 audio-purge 실제 스케줄 + +- `cron.job`: `purge-orphaned-audio` active, `*/10 * * * *`. +- 초기 Vault에는 `project_url`/`service_role_key`가 없어 cron이 no-op이었다. 현재 프로젝트 URL과 default secret으로 Vault를 복구했다. +- 고립된 임의 UUID의 queue row와 실제 WAV Storage 객체를 만들고 09:00 UTC 스케줄을 관찰했다. +- 결과: queue `1 → 0`, Storage object `1 → 0`, `net._http_response.status_code=200`. 사용자 데이터는 대상이 아니며 임시 객체는 삭제됐다. + +## 결제·레거시·App Links + +- 운영 Supabase 함수 목록에 Stripe 함수 3종이 없고 `STRIPE_*` 시크릿 5종도 모두 absent다. Stripe 대시보드의 과거 webhook 비활성화만 외부 확인으로 남는다. +- 운영 구독은 `provider=none,status=active` 6건이며 Payple 갱신·만료 대상은 0건이다. `payple-renew` 직접 호출은 실결제 없이 HTTP 200 `{renewed:0,failed:0,expired:0}`이었다. Forgejo 스케줄 이력은 기존 API 토큰 401로 미확인이다. +- `node scripts/ci/verify-android-app-links.mjs` GREEN: live `assetlinks.json`이 package `com.d3ro.voice`, Play app-signing SHA-256 `01001921…0DAB`와 정확히 일치하고 upload certificate를 포함하지 않는다. + +## 모바일 현재 소스 빌드·E2E + +- 현재 `main` + 이번 검증 스크립트 수정으로 `1.17.1-e2e.20261117.1` / `1170101` APK를 빌드했다. SHA-256 `4FAF848A04A5B77CAFB1197E31472FB60F31B379C59CFA7E802935D617F33B4A`. +- `verify-android-artifact.mjs`는 기본적으로 release/E2E cleartext를 거부하고, 로컬 E2E만 `--allow-local-cleartext true`를 명시할 때 허용한다. Self-test와 실제 universal APK 검증 GREEN. +- 다중 기기 환경에서 Maestro가 다른 기기를 선택하는 문제를 재현하고, `run-mobile-emulator-gate.sh`의 모든 Maestro 호출에 `--udid`를 적용했다. +- `emulator-5582`에서 fresh-install auth, fresh-install signup, invite deep-link가 각각 PASS했다. 작은 화면 `840x1490`도 스크롤 경합을 보정한 뒤 독립 실행에서 3분 6초 PASS했다. +- 후속 전체 실행의 small-screen 단계에서는 에뮬레이터의 `package`/`activity`/`window` 서비스가 사라지는 환경 오류가 발생했다. 앱 어설션 실패가 아니며, 동일 small-screen의 독립 PASS와 구분한다. + +## Cloud STT 경계 + +- 운영 `stt-proxy`를 임시 계정과 4.7초 로컬 TTS WAV로 호출하면 HTTP 502 `gateway/http_504`이고 direct provider는 시도되지 않았다. +- NAS Whisper 재시작 후 직접 전사는 정확한 한국어 문장을 반환했지만 콜드 로딩 포함 약 101초였다. 운영 공개 경로의 30초 경계에서는 여전히 실패한다. +- 유효한 OpenAI/Groq 키 또는 상시 GPU가 없으므로 외부 차단을 유지한다. 임시 STT 계정은 삭제 HTTP 200을 확인했다. + +## 운영 Web Push 실제 브라우저 경계 + +- VAPID 공개키를 포함한 Web 이미지를 NAS에 재빌드·배포하고 `/app/login` HTTP 200을 확인했다. +- 일반 Chrome persistent profile에서 임시 운영 사용자의 로그인·알림 권한·service worker·Push 구독·outbox 등록이 성공했다. +- Headless와 visible Chrome의 두 실행 모두 `push_deliveries.status='delivered'`를 기록했지만 `registration.getNotifications()`는 0이었다. 따라서 provider acceptance는 GREEN이지만 실제 알림 표시 수신은 계속 미검증이다. +- 두 실행 모두 임시 사용자 삭제 HTTP 200, 브라우저 임시 profile 삭제를 완료했다. + +### 모바일 취소 조작 보정 + +- 녹음 중 `record-cancel`은 광고 아래에 있어 자동 탐색이 실패했다. 광고·탭 바가 아닌 본문 내부에서 `70% → 30%`로 스와이프한 뒤 ID를 탭하니 `record-start` 복귀가 성공했다. 이 동작을 `authenticated-parity.yaml`에 적용했다. + +### Authenticated parity 최종 경계 + +- 로컬 격리 계정으로 로그인·Home·Free 테스트 광고·녹음 진입·권한 거부/허용·실제 녹음까지는 재현됐다. +- `record-cancel`은 짧은 paused-state 회복 플로우에서 한 번 성공했지만, 전체 recording 경로에서는 반복 실행 시 안정적으로 선택되지 않았다. 최종 전체 실행은 `record-cancel` 미선택으로 RED다. 이를 완료로 기록하지 않는다. +- 추가 시도에서 More의 Settings 진입까지 도달한 실행도 있었으나 전체 플로우는 완료하지 못했다. Maestro 스크롤·안정화·다중 기기 조합 문제를 추가 조사해야 한다. +- 로컬 임시 사용자는 삭제 HTTP 200, 로컬 Supabase는 중지하고 Docker Desktop도 기존 상태로 종료했다. + +## 2026-11-18 후속 모바일·보안 작업 + +### 모바일 공식 게이트 복구 + +- `record-cancel`은 광고 위의 사용 가능한 본문에서 대상 ID가 보일 때까지 스크롤하도록 바꿨다. 고정 좌표 탭이나 한 번의 스와이프에 의존하지 않는다. +- Account 로그아웃은 실제로 화면 밖에 있어 스크롤을 추가했다. More는 방문 위치가 유지되므로 Data portability → Dictionary → Commands 경로의 스크롤 방향을 실제 목록 순서에 맞춰 위로 정정했다. +- `1.17.1-e2e.20261118.1` / `1170102` 공식 실행에서 fresh auth, signup, invite, 840x1490 small-screen signup, authenticated parity가 모두 PASS했다. 인증 플로우는 2분 37초였고 fatal/Metro signature 0건, `external-gates.json`의 `authenticatedParity=PASS`다. 임시 로컬 계정은 매 실행 HTTP 200으로 삭제했다. +- `build-mobile-local-e2e.ps1`은 pinned Supabase CLI 3.2.0을 사용한다. PowerShell 5.1이 CLI의 stderr 경고를 오류로 승격하던 문제는 상태 조회 구간의 종료 코드를 별도 검사하도록 바꿨고, 이 시스템의 PowerShell 7 모듈 우선순위 때문에 `Get-FileHash`를 찾지 못한 문제는 Desktop edition에서 시스템 Utility 모듈을 명시 로드해 해결했다. 두 수정 후 스크립트 자체가 APK 생성과 SHA-256 대조까지 완료했다. +- Android `applicationId`와 iOS `PRODUCT_BUNDLE_IDENTIFIER`는 `com.d3ro.voice`, canonical auth/invite scheme은 `d3ro-voice`다. iOS의 사용하지 않는 `d3ro` 별칭을 제거하고 `verify-mobile-build-config.mjs --self-test`가 ID·scheme 변형을 거부함을 확인했다. + +### 기록 파일·원본 오디오 공유 + +- `HistoryDetailScreen`에 기존 텍스트 공유 외에 Markdown 파일 공유와 원본 오디오 공유를 연결했다. `history-share.ts`는 다듬은 전사/원문·요약을 TXT/Markdown으로 만들고, 원본 오디오는 신선한 signed URL로만 내려받는다. +- 원본 공유는 사용자의 별도 버튼 탭에서만 시작하고 50 MiB 상한·MIME 확장자·빈 파일·HTTP 오류를 검사한다. Android는 기존 `D3ROFileShareModule`의 FileProvider 임시 읽기 권한과 수명주기 정리를 사용한다. iOS는 파일 URI의 명시적 Share 시트를 사용한다. +- `history-share.test.ts` 5개와 기존 화면 테스트 확장 4개가 통과했다. 특히 준비 중 언마운트 시 늦은 공유 시트가 열리던 경로는 테스트에서 먼저 RED를 재현한 뒤 파일 정리와 미표시를 GREEN으로 확인했다. 전체 모바일 Jest는 104 suites / 658 tests였고, 언마운트 테스트 1개 추가 후 최종 게이트에서 다시 집계한다. +- 실제 외부 앱의 파일 수신은 `external-gates.json`에서 계속 `NOT_RUN_TARGET_APP_REQUIRED`다. 공급자 수신 증거 없이 `[x]`로 올리지 않는다. +- R-019의 강제 재처리는 아직 연결하지 않았다. 기존 오디오 경로는 완료된 동일 파일을 중복 제거해 기존 transcript를 반환하므로, 이를 우회하는 버튼을 실제 재처리처럼 표시하지 않았다. + +### 의존성·도구·데스크톱 경계 + +- Next.js 16.4.6, Mermaid 12.3.0, Electron 43.8.10, electron-vite 6.0.0, Vite 8.3.8, Vitest 5.1.0으로 갱신했다. Electron 44의 Clipboard 재작성은 채택하지 않고, 43에서 비동기화된 `readText`/`writeText`를 실제로 await한다. 새 비동기 원본 복원 회귀 테스트를 포함한다. +- Web/Admin의 Vite 8 OXC JSX 설정과 Admin·root의 명시적 Vitest 의존성을 정리했다. 기존 테스트의 중복 import 하나는 새 파서가 거부해 중복만 제거했다. +- Node는 `.nvmrc` 24.19.0 및 root/mobile `engines.node=24.x`로 맞췄다. 현재 기본 셸은 Node 23이므로 전역 설치를 바꾸지 않고 격리된 Node 24.19.0 실행 파일로 검증했고, `npm run rebuild:test`로 better-sqlite3 ABI 137을 맞췄다. +- `npm run build:all` GREEN(115.78초). 데스크톱 212 files / 2,891 tests, Web 52, Admin 6 tests가 포함됐다. 루트 audit은 critical 0이며 나머지 high 25 / moderate 12를 0으로 위장하지 않는다. 특히 picomatch는 현재 최신 4.0.7도 공개 권고 대상이라 안전한 상위 수정 버전이 아직 없다. +- 실행 중인 설치본 프로세스는 있었지만 모든 main window handle이 0이고 `orca` CLI도 없었다. Electron은 agent subshell에서 새로 실행하지 않았으므로 실제 GUI·제안·클립보드·긴 회의 검증은 여전히 외부 터미널 수동 게이트다. +- 후속 `npm run verify:all`은 Node 24.19.0에서 GREEN이다: desktop 212 files / 2,891 tests, mobile 104 suites / 659 tests, typecheck·lint·i18n·테스트 위생·품질·디자인 계약 포함. +- 최종 E2E APK는 `1.17.1-e2e.20261118.3` / `1170104`, SHA-256 `2AE6BAE279DD507B73D0F1DEE03C11D0649CFC554A4BDFD0FC9BCEFD94912057`다. `verify-android-artifact.mjs --mode e2e`에서 서명·bundle·model·arm64-v8a/x86_64·버전 계약 GREEN. +- 같은 최종 APK로 공식 전체 게이트를 다시 실행해 6분 15초 만에 fresh auth 34초, signup 42초, invite 15초, small-screen signup 48초, authenticated parity 2분 28초 모두 PASS했다. fatal/Metro signature 0, 임시 계정 삭제 HTTP 200이다. +- `navigation-shell-search-local.yaml`은 임시 사용자의 실제 history row와 공식 `mobile_create_meeting_workspace_v2` RPC로 만든 meeting을 사용해 1분 17초 PASS했다. 두 검색 결과, 각 상세 이동과 Markdown 파일 버튼을 확인했다. 종료 시 삭제 요청의 로컬 소켓 오류는 Node 24 정리 실행에서 해당 계정 1건을 HTTP 200으로 삭제하고 잔여 0건을 재조회해 해결했다. +- Electron 버전은 root launcher·desktop·lock·`electron-builder.yml`·`sync-version.mjs`를 모두 43.8.10으로 맞췄다. `version:check` GREEN, `release:metadata:test` 18 negative cases GREEN, root/mobile `npm ci --dry-run --ignore-scripts` PASS다. 최종 `build:all`은 113.61초 만에 GREEN이었다. + +### NAS 보안 이미지 최종 반영 + +- 첫 전체 SSH 빌드는 30분 실행 제한으로 중단됐고, 이어서 `-BuildOnly -Services web`으로 Web만 재빌드했다. Admin은 이미 완료된 이미지를 재사용했다. +- 운영 Web 이미지·실행 컨테이너: `sha256:f36c466137ff5b34fc320d3194dfae58f361ba91527e82934154e1761c3906d3`; Admin: `sha256:1a98f25dc9662aef804fa75076bc0c0dbaeae67e8ab335d407a646d77836ca58`. 둘 다 Next.js 16.4.6 빌드다. +- 롤백 태그는 Web/Admin 모두 `rollback-20261118-044054`다. NAS 기존 `.env`와 API 컨테이너는 유지했다. +- 컨테이너 시작 직후 Web localhost의 첫 curl은 connection reset이었지만, 이후 NAS Web/Admin localhost와 공개 `/app/login`, admin `/login`, `/health`가 모두 HTTP 200이다. 롤백 없이 현재 이미지를 유지한다. + +## 2026-11-20 데스크톱 업데이트 미표시·릴리스 복구 + +- 설치된 `D3RO Voice.exe`의 ProductVersion은 `1.17.1.0`이다. 실행 중인 앱의 자동 업데이트는 활성이며 19:36의 로그는 원격 정책 `killSwitch=false`, `staging=100%`, `latest version: 1.17.1`을 기록했다. 대화상자 구현이나 요청 실패가 이번 미표시의 원인이 아니다. +- 공개 `latest/latest.yml`은 무인증 HTTP 200으로 `version: 1.17.1`을 반환한다. 로컬 소스는 `1.18.1`(`bed83f7`)이지만 canonical remote에 해당 태그가 없고 공개 피드에도 게시되지 않았다. +- 미게시 `1.18.1` 설치본은 `120,821,996 bytes`(115.2 MiB), `.blockmap`과 `latest.yml`이 생성된 후 `build-desktop-installer.mjs`의 100 MiB 제한에서 중단됐다. `release-artifacts.json` 체크포인트가 없으므로 임의로 재빌드·재게시하지 않고 원본 산출물을 보존한다. +- `apps/desktop/electron-builder.yml`의 최대 압축, 번들된 renderer 전용 의존성 및 미사용 SQLite 소스 제외를 정식 `1.18.2` 빌드로 검증한다. 앱을 종료하거나 개인 설정·DB를 바꾸지 않고 공개 피드와 기존 설치본의 제안을 확인한다. +- `1.18.2`도 동일한 패키징에서 `120,821,907 bytes`라 업로드 전 크기 게이트가 중단했다. `release:metadata`, `version:check`, 전 workspace typecheck와 네이티브 DB 열기·질의는 GREEN이었고, 태그만 로컬에 있고 원격 push·upload는 실행되지 않았다. +- 차분 친화적 archive는 빌더가 compression을 normal로 재설정하므로 `compression: maximum`만으로는 줄지 않았다. 분리된 `differentialPackage=false` 시험 설치본은 `108,504,875 bytes`였고 `.blockmap`을 만들지 않았다. 이것만으로는 부족해 게시하지 않았다. +- `1.18.3`은 Windows full-only(`nsis.differentialPackage=false`, `fullInstallVersionGap=0`)로 전환하고 Windows에서 사용하지 않는 nut-js, 다른 플랫폼의 SQLite 바이너리, 번들된 shared packages의 중복 복사본을 제외한다. macOS 패키지는 변경하지 않는다. 기존 차분 모드의 기본 smoke 검사는 유지하면서 full-only의 `.blockmap` 부재를 명시적 계약으로 검사한다. +- `1.18.3`의 첫 정식 빌드는 NSIS 압축 중 30분 작업 제한에 걸렸다. 생성된 `app.asar`는 약 19GB였고, 실제 header에 과거 `release//win-unpacked`의 실행 파일과 `src`/`tests`까지 포함돼 있었다. 중단된 `.nsis.7z`를 재시도가 `Archive file is up to date`로 재사용해 7-Zip `Is not archive`가 발생했다. 어떤 파일도 업로드하지 않았다. +- 패키지 입력에 `!release/**`와 Windows `out/**/*`를 명시하고, smoke가 ASAR 최상위 `release` 항목을 거부하는 테스트를 먼저 RED로 확인한 뒤 GREEN으로 고쳤다. 분리된 레이아웃 시험의 ASAR은 `54,555,897 bytes`이고 최상위 항목은 `out`, `node_modules`, `package.json`뿐이다. `release`/`src`/`tests`, `@d3ro`, `@nut-tree-fork` 포함 0건, 외부 SQLite prebuild는 `win32-x64.node`만 존재한다. +- 정상화된 트리의 full-only 크기 시험은 109.6초 만에 완료했지만 설치본은 `105,962,867 bytes`로 한도보다 `1,105,267 bytes` 컸다. ASAR 안 source map이 `15,231,119 bytes` 있어 production 패키지에서는 `!**/*.map`으로 제외한다. 실행 코드·리소스가 아니며 macOS에도 동일하게 적용할 수 있는 패키지 위생 수정이다. +- source map 제거본의 ASAR은 `38,905,787 bytes`이며 최상위 `out`/`node_modules`/`package.json`만 있고 source map·release/src/tests·제외한 package는 0건이다. 패키징된 `win32-x64` SQLite 열기·질의와 `uiohook` 검사 GREEN이다. +- full-only 설치본 시험은 106.6초 만에 `104,687,868 bytes`를 생성했다. 한도 `104,857,600 bytes`보다 `169,732 bytes` 작다. `.blockmap` 없이 `latest.yml`이 생성됐고, 실제 설치본·manifest와 레이아웃을 함께 smoke에 넣어 PE/SHA-512/feed/ASAR 계약 GREEN이다. self-test는 3 valid + 10 negative cases다. diff --git a/docs/map/00-index.md b/docs/map/00-index.md index e74c7db1..204d626b 100644 --- a/docs/map/00-index.md +++ b/docs/map/00-index.md @@ -2,7 +2,7 @@ > Status: ACTIVE > Last full audit: 2026-09-13 -> Last update: 2026-11-14 — **Wave 7 6-세션 네이티브 피어 스웜(`2a009e4..cc3f746`, [`REFACTOR_WAVE7_REPORT.md`](../REFACTOR_WAVE7_REPORT.md)) 통합 및 모노레포 전 게이트 검증 완료 (post-`v1.17.1`).** `input-core`·`desktop-shell`·`mobile-app`·`cloud-surfaces`·`verifier`·`monitor` 피어 리뷰(`@mention`/`#seq`)를 거쳐 문장부호 직후 무공백 오타 라이브 트리거·서비스 취소/해제·모바일 내구성 큐/화면 가드·Cloudflare/Edge/.NET/Web/Admin 보안 수정을 `main`에 통합하고 Batch 1(`dotnet test 55/55`, sidecar `33/33`, Edge `273/273`, Worker `15/15`, Site Bridge `5/5`, 정적 게이트) + Batch 2(Vitest `270 files / 3,640 tests`, Jest `103 suites / 651 tests`, `typecheck`·`lint`·`build`·`check:desktop-renderer`·`test:metrics:write` `454 files / 3,738 cases`) 통과(운영 `v1.17.1` 재배포·실기기/GUI `[~]`/`[!]`/`RED` 경계 유지). +> Last update: 2026-11-20 — **데스크톱 자동 업데이트 미표시 원인 확인 및 `v1.18.4` 게시 복구.** 설치 앱과 공개 피드가 모두 `1.17.1`이며 업데이트 정책은 활성(kill switch=false, staging=100%)인 것을 실제 로그와 HTTP 응답으로 확인했다. 미게시 `1.18.1` 설치본은 115.2 MiB라 100 MiB 업로드 게이트에서 중단됐다. `1.18.4`는 중복 renderer 패키지와 미사용 SQLite 소스를 제외하고 최대 압축을 적용한다. 실제 공개 피드·설치 앱 제안 검증은 `11` GAP-REL-17에 기록한다. > > Previous update: 2026-11-14 — **전 표면 프로덕션 `v1.17.1` 배포 완결.** 데스크톱(`v1.17.1`, 커밋 `6c6875b`, 서명 매니페스트 `1.17.1/latest.yml`·`.sig` 및 `latest/latest.yml`, 런타임 `runtime-1.17.1`/`runtime-latest`, 포터블 `portable-1.17.1`/`portable-latest` 모두 Forgejo HTTP `200`, 태그 `v1.17.1` canonical/mirror 푸시; Human Release #339 ~91MB 바이너리 첨부만 Cloudflare HTTP 524/`ECONNRESET` `GAP-REL-16` 예외), Supabase 운영 DB(`db push --remote`, 전체 74개 마이그레이션 일치) 및 Edge Functions 24종(`--import-map deno.json --use-api`) 재배포, 랜딩 사이트(`site/` → Cloudflare Pages `d3ro`, `https://d3ro.chanpaca.net/release-identity.json` = `1.17.1`/`6c6875b` & `assetlinks.json` 검증 GREEN), Cloudflare Worker(`d3ro-voice-api` `--keep-vars`, Version ID `fe6d9532-0052-48f5-b62c-45c86f6aaaa5`), NAS Docker 스택(`d3ro_voice_api` `v1.17.1` `/health` `200`, `d3ro_voice_admin` `:3001`/`d3ro-admin.chanpaca.net/login` `200`, `d3ro_voice_web` `:3002/app/login`·`d3ro.chanpaca.net/app/login` `200`) 반영 완료. > @@ -41,7 +41,7 @@ > Previous update: 2026-09-22 — **Gemma/Ollama 폭주 방어 계약을 기록했다.** 19:14:12 부팅 워밍업이 `keep_alive: 30m`으로 `gemma4:e4b`를 19:44:12까지 VRAM 3,226,342,521 bytes / context 4096으로 강제 상주시킨 것이 관측됐으며, 같은 시점 Windows GPU Engine PID 표본에는 Ollama의 활성 compute가 없었다. 즉 당시 상태는 무한 추론이 아니라 강제 residency였다. 19:11:17~19:11:58의 자동 제안 연속 생성은 기존 900 ms·12/min·5 candidates·128 tokens·한 글자 재생성 정책이 허용한 burst였다. 현재 구현 계약은 부팅 warmup 제거, `keep_alive: 2m`, 제안 600 ms / 최소 5 s 간격 / 기본 6회·hard max 12회 per min / 3 candidates / 64 tokens / 12-char growth / 8 s timeout, 그리고 요청별 취소·상한·종료 정리다. 독립 표적 검증은 6 test files / 69 tests passed / 0 failed, 변경 코드·테스트 ESLint와 `git diff --check`도 exit 0이다. Raw Ollama에서는 cold bounded 요청이 client hard timeout 15.044 s에 취소된 뒤 `/api/ps`가 비었고 `/api/version`은 80 ms에 회복했다. 명시 warmup은 HTTP 200 / 16.639 s, 후속 warm 요청은 body `options.num_predict=1`, `keep_alive='2m'`로 553 ms HTTP 200 / `done:true` / `eval_count:1` / `done_reason:length`였고 `/api/ps` expiry는 약 119.9 s였다. **19:48:59 +09:00에는 새 generate/unload/kill/retry 없이 충분히 지난 뒤 한 번의 `/api/ps`가 HTTP 200 / 45.8 ms / `{models:[]}`였고 `/api/version`은 HTTP 200 / 7.3 ms / `0.32.13`이었다.** 이는 raw API 수준의 expiry 뒤 unload 확인일 뿐 앱 재시작·GUI·실제 타이핑 증거는 아니므로 상태는 `[~]`로 유지한다 (`11` GAP-LLM-04, GAP-INPUT-06). > > Previous update: 2026-09-21 — **Input intelligence (입력 레메트리 + 다음 문장 제안) 신규**. 데스크톱에 입력 수집기(`InputTelemetryService`), UIA 컨텍스트 브리지(사이드카 `GET /uia/focus`), 제안 서비스(`SuggestionService`), 어렛 커 오버레이, 설정 > 입력 탭(동의·정책·주간 인사이트·개인 문구)을 추가했다. 카탈로그에 `INPUT-01`~`INPUT-08`(전부 데스크톱 `[~]` — 유닛 48건은 GREEN 이지만 **실앱 타이핑 검증 전**), 백로그에 GAP-INPUT-01~05 + GAP-LLM-03, §7 에 CONSTRAINT-INPUT-01(키 내용 미저장 — ActivityWatch 정책 채택)을 기록. 설계 근거는 조사 기반이다: 어렛은 `GetGUIThreadInfo` 가 아니라 UIA `TextPattern.GetSelection`(Chromium 은 `TextPattern2` 미구현), 타이핑 스트는 키코드 복원이 아니라 UIA 스냅샷 diff(한/일 IME 대응), 디바운스/토큰 한도는 인라인 컴플리션 실측값(Continue 350 / Tabby 250 / twinny 300 ms, 출력 64~256 토큰). 의존성: `koffi` 3.3.1(포그라운드 창 FFI), 사이드카 `uiautomation` 2.0.29 + `comtypes`. 데스크톱 유닛 총계 1409(+49), Electron ABI 실행에서 신규 실패 0건. 당시의 24.7초/4.9초 지연 설명과 `keep_alive: 30m`·부팅 워밍업 처방은 **현재 상태가 아닌 과거 가설/완화 이력**이며, 최신 운영 결론은 위 2026-09-22 항목과 `11` GAP-LLM-04를 따른다. 직전: LLM instruction-prompt fix (`9c2b4d4`): the custom-instruction path inserted the instruction's own wording instead of the processed result and had **never worked in any shipped release** (`v0.1.0-alpha`..`v1.4.0`, introduced `fea923d` 2026-04-05, not a regression). `llm-prompts.ts` is now the SSOT for prompt resolution and placeholder substitution, shared by `VoiceModeService` / `ChainService` / `LLM.PROCESS`. AI-04/05/06/07 are demoted to `[~]` on desktop — fixed with unit tests, but **not verified in a running app** and the four related `tests/red/*.usecase.test.ts` could not execute (`better-sqlite3` ABI). New: GAP-LLM-01 (no target-language setting), GAP-LLM-02 (this fix unverified); GAP-INFRA-06 amended (the ABI masks verification, not just dev-env switching cost); GAP-I18N-01 amended (`popup.error.default` missing in 10 locales). Earlier the same day: CAP-16 (desktop key bindings rebuilt on one `@d3ro/core/keybinding` SSOT — multiple bindings per action, mouse buttons, `HOTKEY` → `KEYBINDING` IPC group), verified on Windows by a manual run, so CAP-16 and CAP-02 are `[x]` and GAP-KEY-01 is closed. Still open: GAP-KEY-02/03, GAP-QA-02, GAP-I18N-01/02, GAP-INFRA-06, GAP-LLM-01/02, GAP-INPUT-01~05; `11` §7 holds accepted design constraints (things deliberately kept, not gaps) -> Scope: entire monorepo `D:/workspace/D3ROVoice` at product version `1.17.1` (`release/product-version.json`) +> Scope: entire monorepo `D:/workspace/D3ROVoice` at product version `1.18.4` (`release/product-version.json`) > Purpose: let any agent (or human) answer two questions in under a minute: > 1. **What infrastructure exists?** (build, CI, services, APIs, data, packages, deploy) > 2. **How far is each feature developed?** (per surface, with file anchors and status) diff --git a/docs/map/02-infrastructure.md b/docs/map/02-infrastructure.md index 33e3350a..91b7474e 100644 --- a/docs/map/02-infrastructure.md +++ b/docs/map/02-infrastructure.md @@ -1,7 +1,7 @@ # 02 — Repository & Infrastructure Map > Surface: whole repo -> Last updated: 2026-11-14 — `v1.17.1` 전 표면 운영 배포 반영(Desktop/Runtime/Portable Forgejo `200`, Supabase 74 migrations + 24 Edge Functions, Site Pages `d3ro.chanpaca.net`, Worker `d3ro-voice-api`, NAS Docker `api`/`admin`/`web`), 루트 `.dockerignore` 빌드 컨텍스트 격리(대용량 `apps/desktop/`·`scratch/`·`.chrome-*` 제외), `verify-desktop-installer-smoke.mjs` ASAR Pickle 32 MiB 헤더 판독 수정(`405ae16`) +> Last updated: 2026-11-20 — `v1.18.4` 데스크톱 업데이트 피드 복구: Electron 43 패키지의 100 MiB 업로드 한도 초과를 패키지 중복·미사용 플랫폼 바이너리 제거와 Windows full-only 최대 압축으로 해소하고 실제 설치본·서명 매니페스트를 검증 > Source of truth for: layout, workspaces, build/test commands, CI/CD, Docker, deploy, scripts, resources --- @@ -59,7 +59,9 @@ Note: root `package.json` is the only workspace manifest and declares npm worksp | .NET SDK | 10.0.300 (rollForward latestPatch) | `global.json` | | Deno | 2.8.1 | CI (`edge-functions`) | | JDK | 17 | mobile CI | -| Electron | 33.4.11 | `apps/desktop/electron-builder.yml` | +| Electron | 43.8.10 | `apps/desktop/package.json` — 44의 Clipboard 전면 재작성 전 마지막 지원 라인; 43의 비동기 text read/write는 await로 처리 | +| Next.js | 16.4.6 | `apps/web/package.json`, `apps/admin/package.json` | +| Vite / electron-vite / Vitest | 8.3.8 / 6.0.0 / 5.1.0 | root·desktop·web·admin `package.json`; Node 24 필요 | | koffi | 3.3.1 | `apps/desktop/package.json` — FFI into user32/kernel32 for foreground window title/pid/exe/bounds (`utils/win32-foreground.ts`). Chosen over `get-windows` because that package needs an install script this repo does not run; koffi ships N-API 8 prebuilds as optional deps. `asarUnpack` covers `koffi`/`@koromix`. | | uiautomation / comtypes | 2.0.29 / 1.4.17 | `apps/desktop/sidecar/requirements.txt` (Windows only) — UI Automation snapshot behind `GET /uia/focus` (`sidecar/uia_bridge.py`). Dev install: `apps/desktop/sidecar/.venv/Scripts/python.exe -m pip install uiautomation comtypes`. | | React Native | 0.85 | `apps/mobile-rn/package.json` | @@ -205,7 +207,7 @@ Stages `validate → test → build → e2e → package → publish → deploy`. | `docker-compose.yml` | Dev/self-host: `d3ro-api-server` (5050→5000, `./data` volume), `d3ro-admin` (3001), `d3ro-web` (3002, `@d3ro/web` basePath `/app`, Supabase/Payple keys as build args), optional `ollama` (profile `ai`, 11434) | | `docker-compose.nas.yml` | NAS: prebuilt `d3ro-voice-api:latest` / `d3ro-voice-admin:latest` / `d3ro-voice-web:latest` (3002) / `d3ro-whisper` (faster-whisper, OpenAI-compatible). No legal-doc `wwwroot` mount and no `NEXT_PUBLIC_API_URL` — both were dropped 2026-09-26 (Wave 3, b6fe588); legal pages are served only from `site/public`. Root `.dockerignore` excludes non-web/admin directories (`apps/desktop/`, `scratch/`, browser profiles, etc.) so remote `DOCKER_HOST=ssh://...` builds of `admin`/`web` skip local release artifacts; `apps/api-server` builds with `./apps/api-server` context. | -Deploy scripts: `scripts/deploy-nas.ps1`, `scripts/deploy-nas.sh`, `scripts/nas-control.sh` (start/stop/restart/status/logs/backup/update). `scripts/deploy-site-to-nas.js` was deleted 2026-09-26 (Wave 3, cd9d199) — site deploy is Cloudflare Pages only (`.forgejo/workflows/deploy-site.yml`). +Deploy scripts: `scripts/deploy-nas.ps1`, `scripts/deploy-nas.sh`, `scripts/nas-control.sh` (start/stop/restart/status/logs/backup/update). **2026-11-17:** PowerShell `-BuildOnly` builds remote images without tar/secret packaging; both NAS scripts fall back to the versioned public `release/webpush-vapid-public.key` when VAPID env is blank. **2026-11-18:** PowerShell `-Services api,admin,web` selects image builds; `-BuildOnly -Services web` preserves already-built API/Admin images during a targeted rebuild. `scripts/deploy-site-to-nas.js` was deleted 2026-09-26 — site deploy is Cloudflare Pages only. Public endpoints (production): `https://d3ro.chanpaca.net` — **랜딩/다운로드 센터**(site/, Pages `d3ro` 배포본을 Workers 라우트 브리지가 서빙), `https://d3ro.chanpaca.net/app` — **웹앱**(`apps/web`, basePath `/app`; 사이트 브리지 워커가 `WEB_APP_ORIGIN`(터널 호스트)으로 전달하며, 호스트가 비어 있으면 `/app`은 503을 반환한다 — 터널 호스트 설정 대기), `https://d3ro-admin.chanpaca.net` (admin CRM). Edge: `server/cloudflare-worker` proxying to the NAS origin, plus a **Cron Trigger** (`* * * * *`) that drains the Supabase push outbox via `send-push?mode=drain` (`src/push-drain.ts`; needs `SUPABASE_URL` var + `SUPABASE_SERVICE_ROLE_KEY` secret). Tunnel: Cloudflare Tunnel `kd-nas` (NAS 포털/API는 현재 이 호스트네임에 바인딩되어 있지 않다). @@ -213,7 +215,7 @@ Public endpoints (production): `https://d3ro.chanpaca.net` — **랜딩/다운 ## 7. `server/supabase` (backend) -- `config.toml` — project `d3ro-voice`, ports 55321-55324, DB major 17, Supabase CLI 3.x `[local_smtp]`, auth redirects (localhost, `d3ro.chanpaca.net`, `d3ro-voice://auth-callback`), providers Google/GitHub/Apple. `audio-purge` has an explicit function stanza with gateway JWT verification disabled because its handler verifies the exact pg_cron service credential. An isolated local stack proved missing/non-service key 401, service 200, and pg_cron/Vault/pg_net removal of the queue row, `audio_files` row, and Storage object; deployment and the production schedule remain unverified. +- `config.toml` — project `d3ro-voice`, ports 55321-55324, DB major 17, Supabase CLI 3.x `[local_smtp]`, auth redirects (localhost, `d3ro.chanpaca.net`, `d3ro-voice://auth-callback`), providers Google/GitHub/Apple. `audio-purge` disables gateway JWT verification because its handler verifies the exact service credential. Local proof and the 2026-11-17 production scheduled run both passed; production Vault/pg_net returned HTTP 200 and deleted an isolated real WAV object and queue row. - `migrations/` — **74 SQL migrations** (schema, RLS, auth triggers, storage, team invites, knowledge/pgvector, push outbox, Payple billing (legacy Stripe columns/provider values kept for history), admin roles, mobile platform/monetization, atomic command reorder, device revocation, content reporting, audit log, meeting documents, STT quota reservations, ad reward replay protection, team activity feed, cross-device sync parity & tombstones, and immutable `meeting_memos.revision` CAS `20261113000001`). - `functions/` — **24 Deno Edge Functions** (`stt-proxy`, `llm-proxy`, `content-report`, `generate-meeting-document`, `embed-chunks`, `search-knowledge`, `realtime-token`, `team-invite`, `team-accept`, `send-push`, `audio-purge`, `account-delete`, `admin-users`, `admin-subscriptions`, `admin-payments`, `admin-audit-log`, billing `billing-catalog`/`payple-checkout`/`payple-manage`/`payple-renew`/`payple-webhook`, `iap-verify`, `admob-ssv`, `google-play-rtdn`; Stripe functions removed 2026-09-26). Shared contracts in `functions/_shared/` — push transports now include `webpush.ts` (VAPID + RFC 8291) and `apns.ts` (.p8 token) alongside FCM. CI (`edge-functions`) runs `deno check` + `deno test` and also the Cloudflare worker drain test. - `tests/` — integration/E2E for content report, mobile platform/recording/reward-race, payments, mobile release preflight, push, team push security, STT quota. @@ -225,7 +227,7 @@ Full detail: [`09-supabase-backend.md`](./09-supabase-backend.md). ## 8. `scripts/` groups - **CI (`scripts/ci/`, 33 files):** build/version/release (`build-all`, `sync-version`, `generate-checksums`, `verify-release-metadata`, `create-release-tag`, `extract-release-notes`), security (`check-no-hardcoded-secrets`), mobile release gates (`verify-mobile-release-boundary/-config/-build-config`, `verify-android-artifact/-app-links`, `verify-play-store-assets`, `prepare-whisper-model`, `create-mobile-release-evidence`, `prepare-mobile-release-publication`, emulator/CSPRNG gates), keys (`create-desktop-license-keypair`, `create-release-evidence-key`, etc.), publish (`publish-forgejo-release` canonical, `publish-gitlab-release` mirror; the legacy `sync-and-publish-forgejo-release`/`upload-asset-to-forgejo-release` scripts were deleted 2026-09-26, Wave 3, cd9d199), env/tooling (`bootstrap-linux-toolchain.sh`, `audit-nas-stt-config.ps1`, mobile local E2E scripts). -- **Packaged native gate:** `verify-native-abi.mjs` rejects a packaged `better_sqlite3.node` that the host Node runtime can load (wrong ABI) and requires the target-specific `uiohook-napi/prebuilds/-/uiohook-napi.node`. `--self-test` proves the missing/present N-API fixture; relative and absolute `--dir` inputs resolve to the same package. `build-desktop-installer.mjs` and `build-portable.mjs` repair only the better-sqlite3 ABI, verify both native contracts, and require `resources/app-update.yml` before publication. +- **Packaged native gate:** since better-sqlite3 13 (Node-API prebuild inside the package, 2026-11-20) `verify-native-abi.mjs` requires the target `better-sqlite3/prebuilds/-.node`, fails if a stale `build/Release` binary would shadow it, and opens a database through the packaged module; for an older ABI-bound layout it still rejects a packaged `better_sqlite3.node` that the host Node runtime can load (wrong ABI) and requires the target-specific `uiohook-napi/prebuilds/-/uiohook-napi.node`. `--self-test` proves the missing/present N-API fixture; relative and absolute `--dir` inputs resolve to the same package. `build-desktop-installer.mjs` and `build-portable.mjs` repair only the better-sqlite3 ABI, verify both native contracts, and require `resources/app-update.yml` before publication. - **Deploy/release:** `deploy-nas.ps1/.sh`, `nas-control.sh`, `publish-gh.ps1`, `gen-keystore.js` (`deploy-site-to-nas.js` deleted 2026-09-26, Wave 3, cd9d199 — site deploy is Cloudflare Pages only). - **Android artifact verification (2026-11-01):** `verify-android-artifact.mjs` parses both legacy `Signer #1` and Build Tools 37 `V2/V3.x Signer` certificate output. Self-test and the actual universal E2E APK verification pass with Build Tools `37.0.0`. - **GCP/Google OAuth automation + inspection (~70 `*.mjs`):** `auto-configure-oauth`, `automate-google-oauth`, `setup-consent`, `create-*-client`, `check-*`, `inspect-*` — mostly one-off/browser-driven console automation. @@ -243,13 +245,14 @@ Full detail: [`09-supabase-backend.md`](./09-supabase-backend.md). | File | Purpose | |---|---| -| `release/product-version.json` | version `1.17.1`, `androidVersionCode`/`iosBuildNumber` `1170100`, desktop license keyId | +| `release/product-version.json` | version `1.18.4`, `androidVersionCode`/`iosBuildNumber` `1180400`, desktop license keyId | | `release/android-release-identity.json` | package `com.d3ro.voice`, Play app ID, app-signing SHA-256, upload cert SHA-256, evidence keyId, AdMob unit IDs | | `release/desktop-license-public.pem` | Ed25519 public key for desktop offline licenses | | `release/mobile-release-evidence-public.pem` | Ed25519 public key for mobile release evidence | -| `apps/desktop/electron-builder.yml` | appId `com.d3ro.voice`, NSIS x64 (forced code signing), macOS DMG/ZIP arm64, generic Forgejo publish feed, asarUnpack native modules (`better-sqlite3`, `uiohook-napi`, `koffi`, `@koromix`, `@ffmpeg-installer`; `@nut-tree-fork` unpacked on macOS only), extraResources (icons, sounds, filtered `sox.exe`+`zlib1.dll`+`LICENSE.GPL.txt`, **sidecar**, ffmpeg, ollama) | -| `apps/desktop/src/main/update-feed.ts` | Auto-update feed SSOT (canonical Forgejo + legacy GitLab mirror, channels) | -| `release/update-policy.json` | Update policy SSOT (channels, minimum supported version, forced update, delta/full, staged rollout, kill switch) | +| `release/webpush-vapid-public.key` | Base64url P-256 Web Push public key; private key exists only in Supabase secrets. NAS web builds use this file when VAPID env is blank | +| `apps/desktop/electron-builder.yml` | appId `com.d3ro.voice`, Electron `43.8.10`, NSIS x64 (forced code signing when material exists), macOS DMG/ZIP arm64, generic Forgejo publish feed. Windows는 `nsis.differentialPackage=false` + 최대 solid 압축의 full-only 설치본이며 `.blockmap`을 만들지 않는다. Windows 전용 nut-js·다른 플랫폼 SQLite, 번들된 renderer/workspace package, 미사용 SQLite 소스의 중복 복사본을 제외한다. asarUnpack native modules (`better-sqlite3`, `uiohook-napi`, `koffi`, `@koromix`; `@nut-tree-fork` on macOS only). extraResources (icons, sounds, filtered `sox.exe`+`zlib1.dll`+`LICENSE.GPL.txt`, ollama); sidecar/ffmpeg remain in the on-demand runtime feed | +| `apps/desktop/src/main/update-feed.ts` | Auto-update feed SSOT (canonical Forgejo + channels); the GitLab mirror was retired in 2026-10 | +| `release/update-policy.json` | Update policy SSOT (channels, minimum supported version, forced update, staged rollout, kill switch). Windows full-only 패키지에 맞춰 `fullInstallVersionGap: 0`; macOS 패키징은 변경하지 않는다 | | `site/src/release.ts` | Download-center desktop release contract (installer filename + release date); version and date are kept on the SSOT by `npm run version:sync` (drifted to 1.2.0 once — GAP-REL-08). `apps/web/src/lib/desktop-release.ts` and the `apps/web` download/releases pages were deleted 2026-09-26 (Wave 3, cd9d199) — `site/` is the only download surface, and `/download`/`/releases` on `apps/web` now redirect to it | | `apps/desktop/src/main/update-policy.ts` | Policy parsing/decision logic | | `scripts/ci/publish-forgejo-release.mjs` | Canonical Forgejo registry + Release + feed publisher | diff --git a/docs/map/04-desktop-app.md b/docs/map/04-desktop-app.md index 65c3302a..27b72971 100644 --- a/docs/map/04-desktop-app.md +++ b/docs/map/04-desktop-app.md @@ -30,7 +30,7 @@ Singleton + `EventEmitter` pattern (`getXService()` accessors). | `VoiceModeService` | Orchestrator: 9-state `RecognitionState` + 4-state `AudioState`, dual-condition flush, action queue, and secure audio buffer zeroing (`secureWipeAudioChunks` / `secureZeroBuffer`) on cancel/cleanup (2026-11-13 `W5-01`). Events: session-started/completed/cancelled, transcription-update, audio-level, recognition/audio-state-changed, premium-llm-fallback, error | | `AudioCaptureService` | Mic PCM16 16kHz mono (bundled SoX on Windows, node-record-lpcm16 elsewhere) with `secureWipeAudioChunks` on stop/dispose. Spawns hidden (`windowsHide`); a missing SoX fails with the exact fix command | | `LocalSTTService` | faster-whisper Python sidecar manager (state machine, dual-flush, model download/cancel, background warm-up, live partial transcription, `sidecarBaseUrl` getter for `POST /diarize`, and **2026-11-13** `releasePrimaryModel()` / 15-min `IDLE_MODEL_UNLOAD_MS` timer via `POST /unload` `{ slot: "primary" }` so switching to cloud STT or going idle frees the 1.6–3.1 GB Whisper model while keeping the sidecar HTTP server alive for `/uia/focus`). Connects over IPv4 loopback (`getSidecarBaseUrl`) and fails fast with an actionable message when the bundled engine or virtualenv is missing | -| `KeyBindingService` | uiohook-napi global hooking for **keyboard and mouse**, driven by the `@d3ro/core/keybinding` contract: 6 rebindable actions (dictation, hands-free, command, caption, history-popup, command-popup), several bindings per action, structural reserved-combo checks. Events: `triggered` (in-process payload carries `actionId`, `type` (`pressed`/`released`), `isDoublePress`, `holdMode`, `timestamp`; the renderer-facing `keybinding:triggered` event is the narrower `KeyBindingTriggeredEvent`, `keybinding.ts:1092`), `changed`, `error`. `globalShortcut` is used only to mute the macOS system beep, and only for accelerators it registered itself. Mouse events cannot be suppressed by uiohook, so a bound button also performs its native action | +| `KeyBindingService` | uiohook-napi global hooking for **keyboard and mouse**, driven by the `@d3ro/core/keybinding` contract: rebindable actions (dictation, hands-free, command, caption, history-popup, command-popup, screen-ocr, and the suggestion-* set), several bindings per action, structural reserved-combo checks. Events: `triggered` (in-process payload carries `actionId`, `type` (`pressed`/`released`), `isDoublePress`, `holdMode`, `timestamp`; the renderer-facing `keybinding:triggered` event is the narrower `KeyBindingTriggeredEvent`, `keybinding.ts:1092`), `changed`, `error`. `globalShortcut` is used only to mute the macOS system beep, and only for accelerators it registered itself. Mouse events cannot be suppressed by uiohook, so a bound button also performs its native action | | `TextInsertService` | Clipboard save→set→Ctrl+V→restore (`NutKeyboardPort`: uses native `koffi` Win32 `SendInput` via `utils/win32-unicode-input.ts` on Windows without loading `@nut-tree-fork/nut-js`; `nut-js` used on macOS/Linux) | | `SoundEffectService` | Preloaded WAV feedback (start/stop/error/cancel/chime) | @@ -62,6 +62,7 @@ Singleton + `EventEmitter` pattern (`getXService()` accessors). | `VoiceCommandService` | Keyword → command rule matching | | `ChainService` | Multi-step LLM pipelines (LLMChain). Each step resolves its instruction through `llm-prompts.ts` (`ChainService.ts:196`); before that, chain steps sent placeholders through unsubstituted | | `ScreenContextService` | Active-window + selected-text context (on Windows uses `sendWin32CopyChord()` via `koffi` `SendInput` without loading `nut-js`) | +| `ScreenOcrService` | Screen text capture (CAP-17): owns one capture session — capture → overlay → async recognition → overlay requests (copy text/image, save PNG/searchable PDF, translate, summarize, read aloud, open link/search, language switch) → close. All OS access is behind ports (`services/screen-ocr/electron-adapters.ts`); engine port `OcrEnginePort` has one adapter, `windows-ocr-engine.ts` (Windows.Media.Ocr). Assembled in `src/main/screen-ocr-wiring.ts` (key binding, overlay IPC with sender check, `Escape` capture while open except during a save dialog). Events: `opened`, `closed`. | ### Phase 10+ features | Service | Purpose | @@ -168,7 +169,7 @@ Preload exposes **`window.electronAPI`** with 37 namespaces: `platform, audio, c ## 4. Windows & popups -`windows/WindowManager.ts` manages 7 windows: main (borderless, custom TitleBar; macOS `hiddenInset`) created at boot, and 6 vanilla popups (`recording-tip`, `result-popup`, `history-popup`, `command-popup`, `caption-overlay`, `suggestion-overlay`) created **lazily on first demand** (`peekHistoryPopupWindow` / `peekCommandPopupWindow` inspect existing windows without instantiating hidden Chromium renderers at startup). Injects popup theme CSS + i18n strings via `@d3ro/i18n/main`; 2-phase resize. `windows/TrayManager.ts` — tray icon + menu + double-click show. +`windows/WindowManager.ts` manages 7 windows: main (borderless, custom TitleBar; macOS `hiddenInset`) created at boot, and 6 vanilla popups (`recording-tip`, `result-popup`, `history-popup`, `command-popup`, `caption-overlay`, `suggestion-overlay`); an 8th window, the `screen-ocr` overlay, lives in `windows/screen-ocr-overlay.ts` and reuses the same `popup-window-factory` (spec flags `focusable: true`, `transparent: false`) created **lazily on first demand** (`peekHistoryPopupWindow` / `peekCommandPopupWindow` inspect existing windows without instantiating hidden Chromium renderers at startup). Injects popup theme CSS + i18n strings via `@d3ro/i18n/main`; 2-phase resize. `windows/TrayManager.ts` — tray icon + menu + double-click show. **Popup invariants** (each shipped broken once — do not regress): @@ -186,6 +187,7 @@ Vanilla popups (`src/renderer/popups/`): | `command-popup` | Command selection. Opened by the `command-popup` action (default `Ctrl+Shift+C`, rebindable) | | `caption-overlay` | Live caption overlay (font/opacity/maxLines) | | `suggestion-overlay` | Next-sentence ghost text: caret-anchored (`anchorFloatingPanel`), non-focusable, click-through unless `suggestionOverlayInteractive`; accept/next/dismiss come from global key bindings (the window never owns focus). Its narrow layout shows a one-line local provenance/count summary only, never raw memory evidence. Presentation includes candidate, generating, warm-up and partial-text states; its X hides the panel before main-process dismissal. | +| `screen-ocr` | Screen text capture overlay (CAP-17): the only **focusable, opaque** popup; covers one monitor with the frozen capture at `screen-saver` level. 2-phase show — main sends `screenOcr:session`, the popup paints the image and answers `screenOcr:ready`, then the window is shown. Imports `@d3ro/core/screen-ocr` for selection math (same code as main). Channels `POPUP_SCREEN_OCR` (`session`, `recognized`, `request`/`response`, `ready`, `dismiss`). | --- diff --git a/docs/map/06-mobile-app.md b/docs/map/06-mobile-app.md index 81240ec6..cf27d319 100644 --- a/docs/map/06-mobile-app.md +++ b/docs/map/06-mobile-app.md @@ -32,7 +32,7 @@ Provider stack: `GestureHandlerRootView → SafeAreaProvider → AuthProvider | `UnifiedSearchScreen` | Authenticated record+meeting search, newest-first merged results, source-aware detail navigation | | `RecordScreen` | Recording + local-whisper/cloud transcription, import audio, share; entered from the hidden Record route/FAB | | `TalkScreen` | Voice/text AI chat: STT, LLM streaming, TTS; opened from More on the root stack | -| `HistoryScreen` / `HistoryDetailScreen` | History list/detail: sync, search, filters, audio playback, edit/share/favorite/delete | +| `HistoryScreen` / `HistoryDetailScreen` | History list/detail: sync, search, filters, audio playback, edit/text·Markdown-file share/favorite/delete; explicit source-audio sharing through a fresh signed URL and the native temporary-URI grant | | `MeetingsScreen` / `MeetingDetailScreen` | Meeting workspaces: create/rename/delete, existing-audio import through the durable meeting queue, transcript (with color-coded speaker badges & multi-speaker filter chips, 2026-11-13 `GAP-MTG-02`), memos (immutable `revision` CAS conflict detection, `GAP-SYNC-08`), documents/minutes, export, content report | | `MemosScreen` | Memos: list, tags, search, share | | `TemplatesScreen` | Dictation/meeting document templates CRUD | @@ -60,7 +60,7 @@ Provider stack: `GestureHandlerRootView → SafeAreaProvider → AuthProvider | `recording/` | Durable offline recording queue, retry processing, language handling | | `audio/` | Linked recording/audio cleanup | | `import/` | Audio pick/decode/validate, local Whisper fallback, resumable multipart upload, Android share-intent intake | -| `history/` | History service + local cache + sync hook | +| `history/` | History service + local cache + sync hook + `history-share.ts` TXT/Markdown documents and bounded signed source-audio download for explicit file sharing | | `meetings/` | Meeting workspace CRUD, realtime channels, processing jobs, transcripts/memos/docs | | `memos/` | Memo CRUD, tags, search, realtime, share | | `talk/` | Streaming LLM, transcription, TTS playback | @@ -118,11 +118,11 @@ The v4 shell also removed `DashScreen` and `WorksHubScreen`. Home replaces the d ## 6. Tests & evidence -- Jest: `npm --prefix apps/mobile-rn test` — current full tree **103 suites / 651 tests PASS** (2026-11-14 Wave 7 `bd3c1a9` / `cc3f746`, post-`v1.17.1`; Wave 6 baseline was 98 suites / 625 tests). Wave 6 added `features/shared/{service-guards,owned-cache-files}.ts`, `features/import/abort-guard.ts`, `lib/locale-speech.ts`, `features/meetings/meeting-error-message.ts`, and 9 regression suites. Wave 7 added 5 async lifecycle regression suites (`abort-and-stream-guards`, `context-lifecycle-guards`, `queue-and-history-races`, `recorder-lifecycle-races`, `screen-async-lifecycle`), hardened recorder claim/generation/poll-timer cleanup (`audio-recorder.ts`, `recorder/{nitro,android-foreground}-backend.ts`), fixed `durable-processing-queue.ts` `finishCleanupItem(item)` audio-first deletion with 60 s retry on failure plus `suspendedUsers`/`discardedItems` checks and `use-history-sync.ts` guards, added pre-abort/generation-header cancellation in `chat-service`/`admin-service`/`device-service`/`llm-stream-service`, and isolated user-switch `scopeGenerationRef` + `try/catch/finally` busy guards across 4 contexts (`mobile-ads`, `billing`, `device`, `entitlement`) and 7 screens (`Commands`, `HistoryDetail`, `Home`, `Knowledge`, `Meetings`, `Record`, `Teams`). The current `.3` Fold6 APK renders the MTG-13 entry/editor; device file selection→transcription→minutes E2E and external Play/Firebase/AdMob gates remain open. -- Maestro E2E: `apps/mobile-rn/.maestro/` + evidence in `.maestro-output/`. +- Jest: `npm --prefix apps/mobile-rn test` — current full tree **104 suites / 659 tests PASS** (2026-11-18 `verify:all`; historical 2026-11-14 Wave 7 `bd3c1a9` / `cc3f746`, post-`v1.17.1`; Wave 6 baseline was 98 suites / 625 tests). Wave 6 added `features/shared/{service-guards,owned-cache-files}.ts`, `features/import/abort-guard.ts`, `lib/locale-speech.ts`, `features/meetings/meeting-error-message.ts`, and 9 regression suites. Wave 7 added 5 async lifecycle regression suites (`abort-and-stream-guards`, `context-lifecycle-guards`, `queue-and-history-races`, `recorder-lifecycle-races`, `screen-async-lifecycle`), hardened recorder claim/generation/poll-timer cleanup (`audio-recorder.ts`, `recorder/{nitro,android-foreground}-backend.ts`), fixed `durable-processing-queue.ts` `finishCleanupItem(item)` audio-first deletion with 60 s retry on failure plus `suspendedUsers`/`discardedItems` checks and `use-history-sync.ts` guards, added pre-abort/generation-header cancellation in `chat-service`/`admin-service`/`device-service`/`llm-stream-service`, and isolated user-switch `scopeGenerationRef` + `try/catch/finally` busy guards across 4 contexts (`mobile-ads`, `billing`, `device`, `entitlement`) and 7 screens (`Commands`, `HistoryDetail`, `Home`, `Knowledge`, `Meetings`, `Record`, `Teams`). The current `.3` Fold6 APK renders the MTG-13 entry/editor; device file selection→transcription→minutes E2E and external Play/Firebase/AdMob gates remain open. +- Maestro E2E: `apps/mobile-rn/.maestro/` + evidence in `.maestro-output/`. **2026-11-18 current-source `1.17.1-e2e.20261118.3` / `1170104` (SHA-256 `2ae6bae2…2057`) official full gate PASS:** fresh auth 34 s, signup 42 s, invite 15 s, small-screen signup 48 s, authenticated parity 2 m 28 s; fatal/Metro matches 0 and the temporary account was deleted. [Evidence](../evidence/2026-11-17-backlog-operations.md). - Current `.3` isolated API 34 AVD: canonical fresh auth **37 s PASS**, signup **50 s PASS**, including persistence after restart. Initial emulator failure was observed with a System UI ANR dialog; it passed after the dialog was dismissed. Both failure and retry are retained under `test-results/recovery-2026-11-01/emulator-*`. The new empty test AVD alone used `clearState`; personal Fold6 data was preserved. This does not resolve the separate Fold6 first-run failures. - Historical `.2` Fold6 physical-device gate (Android 16, `SM-F956N`): fresh auth **60 s PASS**, fresh signup **67 s PASS**, warm/cold invite **31 s PASS**, and small-screen signup **61 s PASS** on 2026-11-01. Fatal/Metro matches 0; evidence is `apps/mobile-rn/.maestro-output/fold6-20261101-fix1/`. Authenticated parity was not run because test credentials are absent. -- v4 local runtime: `apps/mobile-rn/.maestro/navigation-shell-search-local.yaml`; 320dp dark **1/1 PASS, 88 s** at `scratch/design-audit/wave45/navigation-shell-search-320-dark-verified.xml`, and 411dp light **1/1 PASS, 100 s** at `scratch/design-audit/wave45/navigation-shell-search-411-light-verified.xml`. +- v4 local runtime: `apps/mobile-rn/.maestro/navigation-shell-search-local.yaml`; 320dp dark **1/1 PASS, 88 s** at `scratch/design-audit/wave45/navigation-shell-search-320-dark-verified.xml`, and 411dp light **1/1 PASS, 100 s** at `scratch/design-audit/wave45/navigation-shell-search-411-light-verified.xml`. **2026-11-18 current-source seeded local flow PASS (77 s):** actual local history + meeting created through the canonical meeting RPC, two unified-search results, both detail destinations and the Markdown-file control were observed; the temporary account was deleted and rechecked as absent. - Current runtime APK: `com.d3ro.voice`, `1.15.4-e2e.20261101.3` / `2026110103`, 147158575 bytes, SHA-256 `937d2a0b3fb6b810516f07e91dd97ffe99d34c5885a72f21805a51e8a408027f`. Build Tools 37 verifier PASS; installed identity matches. Import entry and metadata editor rendered on Fold6 without saving new data. Earlier `.3` fresh-auth + retry both FAILED at onboarding visibility (black screenshots); those failures are retained. No data reset was performed, so `.2` historical passes are not current first-run proof. Production configuration fails with `firebase_expected_project_id_missing`, including with root `.env`. [Evidence](../evidence/2026-11-01-completion.md). - 2026-11-04 current-source E2E runtime: `1.16.1-e2e.20261104.1` / `2026110401`, SHA-256 `3d2875c74b555dbcd854468e57b9b4b3a8e6c9657f210760cbe24a77ee92cf7c`, verifier PASS, then state-preserving `adb install -r` and cold launch PASS on Fold6 Android 16 and API 34 AVD. Physical Notifications status/privacy/recent cards passed a `clearState:false` Maestro flow without a permission action. UIAutomator and AVD font-scale 2.0/rotation are automated evidence only; manual TalkBack, notification permission transitions/FCM receipt, app-wide a11y, and iOS remain. [Evidence](../evidence/2026-11-04-mobile-runtime-a11y.md). - Committed evidence summary: [`docs/evidence/wave45-mobile-shell-search-2026-09-28.md`](../evidence/wave45-mobile-shell-search-2026-09-28.md). diff --git a/docs/map/09-supabase-backend.md b/docs/map/09-supabase-backend.md index 2f396617..b4eb1f6c 100644 --- a/docs/map/09-supabase-backend.md +++ b/docs/map/09-supabase-backend.md @@ -43,7 +43,7 @@ Forgejo CI runs `check:migrations:test` and `check:migrations`. These gates vali | `realtime-token` | OpenAI Realtime ephemeral token (tier-gated, session quota) | | `generate-meeting-document` | AI document generation (minutes/report/idea-note/mindmap) | | `embed-chunks` / `search-knowledge` | RAG embeddings + semantic search. `knowledge_embedding` budgets are read from generated `PLAN_QUOTA`, whose source is `packages/core/src/plan-catalog.ts` | -| `audio-purge` | Service-only audio object purge worker invoked by pg_cron. `config.toml` sets `verify_jwt = false` so modern service keys reach the handler; the handler then authorizes the exact service credential before queue/storage work. Isolated local runtime proof on 2026-11-04 covered missing/non-service key 401, service-key 200, direct drain, and `pg_cron` → Vault → `pg_net` → Edge → Storage deletion | +| `audio-purge` | Service-only audio object purge worker invoked by pg_cron. `config.toml` sets `verify_jwt = false` so modern service keys reach the handler; the handler then authorizes the exact service credential before queue/storage work. Local proof (2026-11-04) and production proof (2026-11-17) both cover `pg_cron` → Vault → `pg_net` → Edge → Storage. In production the isolated probe queue and real WAV object changed `1 → 0`, with `net._http_response.status_code=200` at 09:00 UTC | | `content-report` | AI content reporting | | `team-invite` / `team-accept` | Team invitations | | `send-push` | Push delivery | @@ -65,7 +65,7 @@ Integration/E2E: content-report red e2e, content-reporting (ps1/sql), mobile pla ## 2. Cloudflare worker (`server/cloudflare-worker/`) -- `wrangler.toml` — worker `d3ro-voice-api`, compat 2024-04-01, `BACKEND_ORIGIN="https://d3ro.chanpaca.net"` in source (Wave 7 `c68e81e`; note live Worker `fe6d9532-0052-48f5-b62c-45c86f6aaaa5` still retains pre-Wave-7 dashboard var `http://192.168.0.39:5050` from `--keep-vars`), optional custom domain route (commented). +- `wrangler.toml` — worker `d3ro-voice-api`, compat 2024-04-01, `BACKEND_ORIGIN="https://d3ro.chanpaca.net"` in source and production (2026-11-17 deployment `b9e68793-b061-481f-a620-dab73a91a9d8`; `/worker-health` and proxied `/health` both HTTP 200), optional custom domain route (commented). - `src/index.ts`, `src/origin-policy.ts`, `src/push-drain.ts` — CORS preflight, `/worker-health`, origin policy + loop guard (`508`/`503`), null-body status handling (`204`/`205`/`304`), forwards to backend origin with `X-Forwarded-*` / `X-D3RO-Edge-Proxy` headers. - `server/cloudflare-site-bridge/` — Pages/Worker bridge hardened in Wave 7 with `508` loop guard, path smuggling `400`, and `deno.json` (`src/index.test.ts` 5/5 PASS). @@ -100,7 +100,7 @@ Shared TS types for these live in `packages/api-client` (SSOT). - Push: Supabase owns tokens/devices/outbox/retries. Transports implemented for **FCM, Web Push (VAPID + RFC 8291), and APNs (.p8 token)**; the Cloudflare Worker cron drains the outbox every minute. Android still requires FCM at the device. Details: `docs/deployment/push-transport-without-firebase.md`. - Content safety: generation receipts + `content-report` **implemented**. - Data portability (`account-delete`, export/restore): **implemented**. -- Audio purge source wiring, unit tests, and an isolated local pg_cron/Vault invocation are verified: the fixture queue, `audio_files` row, and Storage object each changed from one to zero and `net._http_response` recorded HTTP 200. Deployment and the production schedule/Vault/object path remain unverified. +- Audio purge source wiring and local/production pg_cron paths are verified. On 2026-11-17 the production Vault was populated, and the 09:00 UTC scheduled invocation deleted an isolated real Storage object and its queue row (`1 → 0`), recording `net._http_response.status_code=200`. External gates are enumerated in `docs/v3/MOBILE_APP_COMPLETION_SSOT.md` §0/§6 and mirrored in `11-gap-backlog.md` (`EXT-*`, `BE-*`). @@ -117,4 +117,4 @@ External gates are enumerated in `docs/v3/MOBILE_APP_COMPLETION_SSOT.md` §0/§6 ## Wave 7 hardening (2026-11-14, `c68e81e`, post-`v1.17.1`) - **Supabase Edge Functions (`server/supabase/functions`, Deno `273 passed | 0 failed`):** `stt-proxy/handler.ts` rejects requests whose `Content-Length` exceeds the cap with `413` before buffering; `embed-chunks/handler.ts` refunds quota only on upstream provider failures; `_shared/quota.ts` fails closed by rethrowing DB errors other than `PGRST116` (`stt-proxy/handler.test.ts`, `embed-chunks/handler.test.ts`, `_shared/quota.test.ts`). -- **Cloudflare Worker & Site Bridge (`server/cloudflare-worker`, Deno `15 passed | 0 failed`; `server/cloudflare-site-bridge`, Deno `5 passed | 0 failed`):** updated `wrangler.toml` default `BACKEND_ORIGIN` to `https://d3ro.chanpaca.net` (fixing the HTTP `403` error `1003` root cause in source; live Worker `fe6d9532-...` still holds the pre-Wave-7 dashboard var until redeployed without `--keep-vars` or updated), added `origin-policy.ts` rejecting non-HTTPS/private-IP/internal origins and proxy loops (`508`/`503`), handled null-body statuses (`204`/`205`/`304`), and applied origin validation to `push-drain.ts`; hardened `cloudflare-site-bridge` with `508` loop guard and path-smuggling `400` (`deno.json`, `src/index.test.ts`). +- **Cloudflare Worker & Site Bridge (`server/cloudflare-worker`, Deno `15 passed | 0 failed`; `server/cloudflare-site-bridge`, Deno `5 passed | 0 failed`):** added public-HTTPS origin validation, proxy-loop/path-smuggling guards and null-body handling. **2026-11-17 production:** Worker `b9e68793-...` and Site Bridge `cca39627-...` deployed; `/worker-health`, proxied `/health`, landing, `/app/login`, and admin login all return HTTP 200. `push-drain.ts` now sends both Bearer and `apikey` service credentials; the project default secret key replaced the stale Worker key, and a real scheduled run logged `claimed=1 completed=1 pending=0`. diff --git a/docs/map/10-feature-catalog.md b/docs/map/10-feature-catalog.md index 4663b846..680aeffb 100644 --- a/docs/map/10-feature-catalog.md +++ b/docs/map/10-feature-catalog.md @@ -30,6 +30,7 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]` | CAP-14 | Recording persistence / crash recovery | [x] | [ ] | [x] | [-] | Desktop WAV persist; mobile durable queue + process-kill WAV recovery | | CAP-15 | Android foreground recording service | [-] | [-] | [x] | [-] | Mobile API 34 FGS + persistent notification (SSOT R-005 GREEN) | | CAP-16 | Rebindable global key bindings (keyboard + mouse) | [x] | [-] | [-] | [-] | Contract SSOT `packages/core/src/keybinding.ts`: `KEY_CATALOG` (10 groups), `KEYBINDING_ACTIONS` (6 actions), `validateBinding`, `detectBindingConflicts`. Multiple bindings per action persist as one `AppConfig.keyBindings` map (`packages/core/src/types.ts`), replacing the four singular `*Shortcut` fields; `ConfigService` migrates legacy values once. `KeyBindingService` hooks keyboard **and** mouse via uiohook — MB1 is not bindable, MB2/MB3 need a modifier, MB4/MB5 are free. **Verified 2026-09-21 on Windows by a manual run** and **2026-10-30 unit-tested** in `KeyBindingService.test.ts` (11 tests, GAP-KEY-01 `[x]`), with dedicated `command` action toggle/hold + forced voice-command matching in `VoiceModeService.ts` / `voice-intent.ts` (`voice-intent.test.ts` 19 tests, GAP-KEY-03 `[x]`). **Still open:** macOS/Linux mouse behavior (`11` GAP-KEY-02). W/M `[-]`: no OS-level global binding surface exists there. B `[-]`: device-local setting. | +| CAP-17 | Screen text capture (OCR overlay) | [~] | [-] | [-] | [-] | Desktop/Windows. The rebindable `screen-ocr` action (default `Ctrl+Alt+O`, CAP-16) freezes the monitor under the cursor and covers it with the `screen-ocr` popup; text is selected by flow drag (start on a word), rectangle drag (start on empty space or in Area mode), double-click word, triple-click line, Shift+click extend, `Ctrl+A`. Actions: copy (multi-line / one line), copy image, save PNG, **searchable PDF** (image above a real text layer), translate and summarize through `LlmGateway`, read aloud (`TTSPlaybackService`), open link / web search, recognition language switch (`AppConfig.screenOcrLanguage`). Pure selection/text/PDF logic `packages/core/src/screen-ocr.ts`; service `apps/desktop/src/main/services/ScreenOcrService.ts`; engine `services/screen-ocr/windows-ocr-engine.ts` (Windows.Media.Ocr via `powershell.exe -EncodedCommand`, 2x upscale); capture `utils/win32-screen-capture.ts` (GDI BitBlt, 39 ms vs 2.9 s for `desktopCapturer` on a 3-monitor PC). The capture touches disk only as one temp PNG that is deleted right after recognition. **Verified 2026-11-20:** core 34 + desktop 41 tests, real-engine probe (Korean+English screen, 0.64 s), headless overlay run (flow/rect selection, copy, translate, PDF request, release on close) and a printed PDF whose text layer is searchable. **Not yet verified:** the live hotkey journey in the running app (focus, mixed-DPI multi-monitor) — `GAP-OCR-01`. macOS has no engine and fails closed with a message — `GAP-OCR-02`. | --- @@ -57,7 +58,7 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]` | MEM-01 | History list + search | [x] | [x] | [x] | [x] | Desktop SQLite (`HistoryService.list`/`getAll` with SQLite `mode`, `isFavorite`, `tag`, `search`, and `beforeCreatedAt` cursor pagination — 2026-10-30 `GAP-UX-02` `[x]`); web/mobile Supabase | | MEM-02 | History detail + edit | [x] | [x] | [x] | [x] | Desktop `HistoryService.update` + `history:update` IPC + inline edit in `HistoryEntryCard.tsx` (2026-10-30 `GAP-UX-02` `[x]`); Mobile `HistoryDetailScreen` | | MEM-03 | History favorites | [~] | [x] | [x] | [x] | Desktop had **no** favorites until 2026-09-27 (the old `[x]` was wrong): `history.is_favorite` column, `HistoryService.setFavorite` + `history:setFavorite` IPC, star toggle in `HistoryEntryCard`; the value is the same Supabase `history.is_favorite` mobile filters on, so it syncs both ways (`apps/desktop/tests/main/sync/SyncEngine.test.ts` (20) + `apps/desktop/tests/integration/cross-device-sync.supabase.test.ts` (5, local Supabase stack)). `[~]` until a GUI run toggles it and mobile shows it | -| MEM-04 | History export / share | [x] | [~] | [x] | [x] | Desktop `MemoService.exportMarkdown` exports both tagged and untagged history with filter support and interactive save dialog (2026-10-30 `GAP-UX-02` `[x]`); web limited; mobile share sheet | +| MEM-04 | History export / share | [x] | [~] | [x] | [x] | Desktop `MemoService.exportMarkdown` exports both tagged and untagged history with filter support and interactive save dialog (2026-10-30 `GAP-UX-02` `[x]`); web limited; mobile text/Markdown/source-audio share (`history-share.ts`, `D3ROFileShareModule`). 외부 대상 앱 수신 증거는 SSOT R-017/R-018의 별도 게이트 | | MEM-05 | History audio playback | [~] | [x] | [x] | [x] | Signed URLs on web/mobile. **Desktop had no playback at all** (the old `[x]` was wrong); since 2026-09-27 the history card plays this device's recording from the file (`history:getAudio` → bytes → Blob) and a phone/web recording through a 5-minute signed URL of its `audio_files` row. Desktop recordings upload to the same `audio` bucket contract (`{userId}/desktop/...`, `audio_files`, ≤50 MiB, Settings > Cloud toggle `cloudSyncAudio`) so the phone plays them too (`tests/main/sync/SyncExtensions.test.ts` (9) + integration case "지식 문서·설정·녹음" against the local Supabase stack). `[~]` until a GUI run plays both kinds | | MEM-06 | Dictionary (custom vocabulary) | [x] | [x] | [x] | [x] | All surfaces CRUD; Desktop Red Team RT-02 & RT-18 fuzzed/verified | | MEM-07 | Dictionary import/export | [x] | [x] | [x] | [-] | Desktop `dictionary:import/export` JSON+CSV (file dialogs, `DictionaryService`); web `serializeDictionary`/`importDictionaryFile` + header buttons; mobile CSV/TXT export + CSV/JSON/TXT import via `data-portability` | @@ -115,12 +116,12 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]` | ACC-04 | Password reset / recovery deep link | [ ] | [ ] | [x] | [x] | Mobile ForgotPassword/UpdatePassword | | ACC-05 | Account profile / identity management | [~] | [~] | [x] | [x] | Desktop `LicenseTab`; mobile `AccountScreen` | | ACC-06 | Logout + local sensitive purge | [x] | [x] | [x] | [x] | Mobile central purge GREEN | -| ACC-07 | Account deletion (server cascade + local purge) | [ ] | [ ] | [~] | [x] | `account-delete` Edge; mobile device E2E pending. **2026-11-04 backend retention proof:** isolated local Supabase verified `audio-purge` authorization and both direct and pg_cron/Vault dispatch; the queued DB row, deleted `audio_files` row, and private Storage object were removed together. Production deployment/schedule remains `GAP-OPS-04`. | +| ACC-07 | Account deletion (server cascade + local purge) | [ ] | [ ] | [~] | [x] | `account-delete` Edge; mobile device E2E pending. `audio-purge` local proof (2026-11-04) and production scheduled proof (2026-11-17) are GREEN: Vault → pg_net → Edge returned HTTP 200 and the isolated real Storage object and queue row changed `1 → 0` (`GAP-OPS-04` resolved). | | ACC-08 | Cloud sync (per-user data) | [~] | [x] | [x] | [x] | Desktop `CloudSyncService` + `services/sync/`. The earlier `[x]` hid shipped defects fixed on 2026-09-27 (GAP-SYNC-01/02): first pull after sign-in fetched nothing, only the first meeting's memos/documents were pushed, deletions never propagated, team meetings were pulled into the personal DB and their `team_id` cleared on re-push, Realtime never connected. Anonymous local-mode data is now imported into the first account that signs in (`db/index.ts importLocalModeData`). Production deploy pending (GAP-SYNC-05) | | ACC-09 | Device registration + revocation | [~] | [~] | [x] | [x] | Mobile `DevicesScreen`. **Desktop registers itself since 2026-09-27** (`services/sync/device-registration.ts`, platform `windows`/`macos`, installation id in `AppConfig.deviceInstallationId`); revoking it from the phone signs the desktop out (Realtime on `devices` + 5-min heartbeat), signing out on desktop unregisters it. Web creates/checks in a stable `platform='web'` device only when the user opts into browser notifications, refuses to resurrect a revoked row, and revalidates an existing local Push subscription through the register RPC before showing it connected (`web-device.ts`, `web-push-session.ts`, `web-push.spec.ts`). An isolated throwaway local-browser run produced exactly one active web device and one device-bound token; no web device-management UI or production proof. Mobile parser accepts all five platforms and names them on the card. Local-stack desktop evidence exists; production pending GAP-SYNC-05 | | ACC-10 | Offline queue + retry | [~] | [ ] | [x] | [x] | Mobile durable queue | | ACC-11 | Data export/import (portability) | [~] | [ ] | [x] | [x] | Mobile canonical JSON E2E GREEN; desktop has export files. **2026-09-27 backend fix:** `export_account_portability` serialised whole rows, so columns added after the v1 archive (meeting creation metadata, meeting-document template/idempotency) made any account with meetings fail the exact-key check in both the server restore and the mobile parser; the export now projects onto v1 keys (migration `20260927000034`, integration test asserts memo/meeting keys) | -| ACC-12 | Notification / push | [ ] | [~] | [~] | [x] | Backend transports for FCM + Web Push (VAPID) + APNs (.p8) + outbox cron drain implemented. **2026-11-04 (`GAP-PUSH-03` `[~]`):** Web production sidebar calls the explicit user-gesture permission → stable web device → `subscribeWebPush` → `register_push_registration` path. Opt-out records disabled intent before bounded parallel server/local cleanup; a stale local subscription is re-registered through the server RPC before it may appear connected, and logout never waits on cleanup (`web-push.spec.ts` 17 contract tests). The standalone image copies `public/sw.js`, and missing build-time `NEXT_PUBLIC_VAPID_PUBLIC_KEY` fails closed. Isolated local evidence reached active device + token + pending outbox + completed drain + `push_deliveries.status='delivered'`; this is provider acceptance, not browser receipt. The final production-standalone browser attempt timed out at login navigation before the dashboard, so production permission/subscription/render/receipt and deployed cron/provider configuration remain open (`EXT-FIREBASE-01` for Android). | +| ACC-12 | Notification / push | [ ] | [~] | [~] | [x] | Backend transports for FCM + Web Push (VAPID) + APNs (.p8) + outbox cron drain implemented. **2026-11-17:** production VAPID/web image and scheduled drain are deployed; authenticated Chrome subscriptions succeeded and two outbox runs ended `delivered`. Browser `getNotifications()` was still 0, so visible receipt and APNs/FCM live delivery remain open. | --- @@ -233,7 +234,7 @@ end-to-end behaviour has **not been verified by typing in a real app** (`11` GAP | INFRA-12 | Cloudflare edge + tunnel | [x] | `server/cloudflare-worker`, Cloudflare Tunnel `kd-nas` | | INFRA-13 | Site deploy (Cloudflare Pages) | [x] | `.forgejo/workflows/deploy-site.yml`; the unused GitHub Pages workflow was removed in Wave 3 | | INFRA-17 | Test hygiene & TDD v2.0 gates | [x] | `scripts/ci/check-test-hygiene.mjs` (`test:hygiene`), `check-protected-tests.mjs` (`check:protected-tests`), `check-test-quality.mjs` (`test:quality`), `check-i18n-contract.mjs` (`check:i18n`), `check-ds-contract.mjs` (`check:ds-contract`), `run-affected-tests.mjs` (`test:affected`), `verify-desktop-installer-smoke.mjs` (`release:installer:smoke`), and `@d3ro/core/ports` (`Clock`/`Random` deterministic ports) — all equipped with `--self-test` and wired into `verify:all`, `.forgejo/workflows/ci.yml`, `release-desktop.mjs`, and `.forgejo/workflows/release.yml`. Applied policy: `docs/tdd-red/06-repo-application.md`, `07-revamp-plan.md`. | -| INFRA-15 | Update & release system | [x] | Canonical Forgejo feed + channels/policy (`release/update-policy.json`, `src/main/update-policy.ts`), canonical publisher `scripts/ci/publish-forgejo-release.mjs`, legacy GitLab mirror; `npm run release:metadata:test`. v1.1.0 was published to Forgejo on 2026-09-15; product version moved to `1.2.0` as a forward-fix with CI-only publication, a same-version re-release guard, and download centers that link the feed instead of repository paths. `1.3.0` (2026-09-18) carries the local-STT fixes; Windows publication still needs the CI signing secrets (`11` GAP-REL-02). | +| INFRA-15 | Update & release system | [~] | Canonical Forgejo feed + channels/policy (`release/update-policy.json`, `src/main/update-policy.ts`), canonical publisher `scripts/ci/publish-forgejo-release.mjs`; `npm run release:metadata:test`. 2026-11-20 설치본과 로그는 정상적으로 업데이트를 확인했으나 공개 피드가 1.17.1에 머물렀고 미게시 1.18.1·1.18.2의 115.2 MiB 설치본이 업로드 한도를 초과했다. 1.18.4는 Windows full-only 패키지(`fullInstallVersionGap=0`)와 재귀적인 과거 산출물 포함 차단으로 피드 한도를 맞춘다. 게시·실제 설치본 제안은 `11` GAP-REL-17에서 추적한다. | | INFRA-16 | Desktop STT engine packaging | [x] | `apps/desktop/scripts/setup-sidecar.mjs` + `build-sidecar.mjs`, `electron-builder.yml` `extraResources` (`sidecar-dist/sidecar` → `resources/sidecar`, `resources/ffmpeg`), and `scripts/ci/verify-sidecar-bundle.mjs` run in `package-windows`/`package-macos` before electron-builder. Verified on the real bundle: `sidecar.exe` + `_internal` including `faster_whisper/assets/silero_vad_v6.onnx`, plus a packaged-engine transcription round-trip on GPU. | | INFRA-17 | 서명 없는 배포 채널 (portable + Scoop) | [x] | `scripts/ci/build-portable.mjs` (95MiB 7z 분할 볼륨 + Scoop 매니페스트), `scripts/ci/publish-portable-release.mjs`, `scripts/local/install-d3ro-voice.ps1`, `bucket/` 버킷, `.forgejo/workflows/portable.yml`; 7z 분할 볼륨(Scoop, 162MiB) + zip 분할 부품(수동 설치, 243MiB, 7-Zip 불필요); updater feed와 분리. 2026-09-18 `portable-1.3.1` 게시 + 실제 설치 검증. | | INFRA-18 | 로컬 런타임 온디맨드 설치 | [x] | `RuntimeProvisioner`(부품 다운로드 + SHA-256 검증 + tar 해제, `%APPDATA%/d3ro-voice/runtime`), `POST runtime:ensure` / `runtime:progress` IPC, 설정 > STT 상태/내려받기 UI. 설치본에서 엔진/ffmpeg를 분리해 189MB → 90.6MiB, 업데이트 피드 게시 복구. 검증은 전부 디스크에 기록된 파일 기준이며(부품 크기·해시 → 결합본 크기·해시), 부품 다운로드는 최대 3회 재시도한다. 2026-09-18 실제 feed 통합 검증(엔진 94.4MiB/18초, ffmpeg 21.7MiB/5초). | diff --git a/docs/map/11-gap-backlog.md b/docs/map/11-gap-backlog.md index 7e9b9645..fd934c26 100644 --- a/docs/map/11-gap-backlog.md +++ b/docs/map/11-gap-backlog.md @@ -21,6 +21,8 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | ID | Area | Gap | Evidence | Suggested next step | |---|---|---|---|---| +| GAP-OCR-01 | Desktop | Screen text capture (CAP-17) has not been driven end-to-end in the running app: global hotkey → overlay takes focus → drag select → copy/PDF on a real desktop, including a mixed-DPI multi-monitor setup. Unit, real-engine and headless-overlay checks pass. | `apps/desktop/src/main/screen-ocr-wiring.ts`, `apps/desktop/src/main/windows/screen-ocr-overlay.ts`, `apps/desktop/tests/main/services/screen-ocr-service.test.ts` | Run the installed build: press `Ctrl+Alt+O` on each monitor, confirm the frozen image lines up with the real screen, Esc/Ctrl+C work without a first click, and a saved PDF is searchable. Then flip CAP-17 to `[x]`. | +| GAP-OCR-02 | Desktop | Screen text capture is Windows-only and uses a single recognizer language per pass. macOS has no engine (fails closed with a message); with only the Korean Windows OCR pack installed, small English UI text is sometimes misread. | `apps/desktop/src/main/services/screen-ocr/windows-ocr-engine.ts` (`OcrEnginePort`) | Add a macOS Vision adapter behind `OcrEnginePort`; consider a second pass with another installed language for mixed-language screens, or a bundled ONNX recognizer downloaded at runtime. | | GAP-QA-01 | Quality | Extreme Red Team: headful end-to-end bug hunting across real desktop Electron, Web Next.js, and CI pipelines. | `red_team_log.md`, `apps/desktop/tests/e2e`, `apps/web/e2e/smoke.spec.ts` | `[x]` 2026-09-15: 18 scenarios executed, 14 defects caught and 100% resolved (infinite chunking loop DEF-008, IPC signature mismatch DEF-004, markdown editor typing rollback DEF-006, Web RSC Link serialization DEF-012, secret scanner lookahead DEF-013, etc.). All 18 scenarios GREEN with zero regressions. **2026-11-04 rework:** the red-team cycle specs were one-off bug hunts (machine screenshot paths, fixed sleeps, conditional assertions) and were replaced by 5 behavior-scoped protected journeys + a shared Electron fixture; 4 stale/duplicate feature specs, the orphaned root `tests/e2e`, and 7 ad-hoc Playwright runner scripts were deleted. Duplicates merged. New `npm run test:hygiene` gate blocks the patterns that made them meaningless. Log: `docs/tdd-red/06-repo-application.md`. | | GAP-REL-01 | Release | Official release publication to Forgejo and active public download center deployment. | `scripts/ci/publish-forgejo-release.mjs`, `apps/web/src/app/download/page.tsx`, `site/src/sections/Download.tsx`, `apps/web/e2e/smoke.spec.ts` | `[~]` 2026-09-15: v1.1.0 release assets (`D3RO-Voice-Setup-1.1.0-x64.exe`, `.blockmap`, `latest.yml`, `update-policy.json`) published to canonical Forgejo registry and release hub. 2026-09-16: the published 1.1.0 installer carries no Authenticode signature, so it does not satisfy the release policy; product version moved to `1.2.0` and publication must come from CI with the signing gate GREEN. Download centers in `apps/web` (`/download`) and `site` (`#download`) link the canonical Forgejo feed. 2026-09-19: `1.3.7` (overlay fix) is published to the canonical updater feed (`latest.yml` = 1.3.7, 90.6MiB); the CI signing gate that blocks tag-driven publication is still unresolved, so this went out through the local updater path (GAP-REL-06). 2026-09-23: `1.5.0` published the same way (updater feed `latest.yml` = 1.5.0, installer 91.2MiB / 95,612,108 bytes, sha512 matches the local build and the feed serves it anonymously); the runtime and portable channels were republished first. **2026-11-14 (`v1.17.1`):** Desktop `1.17.1` (`6c6875b`, `D3RO-Voice-Setup-1.17.1-x64.exe` `95,294,301` bytes + Ed25519 signed `latest.yml`/`.sig`), `runtime-1.17.1`/`runtime-latest`, `portable-1.17.1`/`portable-latest`, 및 Landing `site/` (`https://d3ro.chanpaca.net/release-identity.json` = `1.17.1`/`6c6875b`)가 프로덕션에 게시됐다(단 Authenticode SmartScreen 평판 `GAP-REL-02`/`06` 및 Release #339 ~91MB 첨부 `GAP-REL-16` 예외는 유지). | | GAP-REL-08 | Release | 다운로드 센터가 **존재하지 않는 설치 파일**을 가리켰다. `apps/web/src/lib/desktop-release.ts`와 `site/src/release.ts`의 `DESKTOP_VERSION`이 `1.2.0`에 멈춰 있어 설치 URL이 `D3RO-Voice-Setup-1.2.0-x64.exe`였고, 그 경로는 피드에서 404다(실측: 1.2.0=404, 1.3.7=206). `version:sync`가 이 두 표면을 덮지 않아 계속 어긋났다. | `scripts/ci/sync-version.mjs`, `apps/web/src/lib/desktop-release.ts`, `site/src/release.ts` | `[x]` 2026-09-19: 두 다운로드 계약 파일을 `sync-version.mjs` 대상에 추가해 버전·릴리스일이 SSOT에서 자동 반영되도록 하고, 현재 값(1.3.7 / 2026-09-19)으로 정정했다. `version:check`·typecheck·site 빌드 GREEN. | @@ -28,12 +30,12 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | GAP-REL-09b | Release | `d3ro.chanpaca.net`이 404였던 직접 원인: 이 Cloudflare 계정에 Pages 프로젝트 `d3ro`/`d3ro-voice`가 **존재하지 않아** 커스텀 도메인 바인딩이 없었다(빈 본문 404, `cf-ray`만 반환). Pages 커스텀 도메인은 존 DNS CNAME(`d3ro → d3ro.pages.dev`)을 요구하는데 기존 `d3ro` 레코드가 남아 있어 `CNAME record not set`으로 pending에 머물렀고, 로컬 wrangler 자격증명에는 DNS 스코프가 없다(403 Authentication error). `deploy-site.yml`은 `CF_API_TOKEN` 시크릿이 없어 마지막 게시 단계에서도 `exit 1`이다. | `server/cloudflare-site-bridge/`, `.forgejo/workflows/deploy-site.yml`, `docs/map/02-infrastructure.md` | `[x]` 2026-09-19: Pages 프로젝트 `d3ro` 생성 + `site/dist` production 배포(`d3ro.pages.dev` 200, `release-identity.json` = commit `2407f5a` / 1.3.7) + 커스텀 도메인 연결. DNS 없이 도메인을 살리기 위해 Workers 라우트 브리지(`server/cloudflare-site-bridge`, `d3ro.chanpaca.net/*` → Pages 프록시, `npx wrangler deploy`)를 배포 → 라이브 확인: `/`·`/privacy/`·`/terms/`·`/delete-account/` 200, 라이브 번들이 설치 파일명을 `1.3.7`로 계산, `/download.html` → `/#download`. 남은 정리 2건: (1) 대시보드에 CNAME을 추가한 뒤 브리지 워커 삭제, (2) CI 자동 게시를 위해 `CF_API_TOKEN`(Pages/Workers Edit) + `CF_ACCOUNT_ID`=`8e83cc130e7329c160cf2b88d6b4c20a`를 Forgejo 시크릿에 등록. **2026-09-23:** CI `deploy`(deploy-site.yml)는 `CF_API_TOKEN` 부재로 run#71까지 여전히 실패한다. 로컬 인증 wrangler(pages:write)로 `npm run build --prefix site` → release-identity 작성 → `npx wrangler pages deploy site/dist --project-name d3ro --branch main`을 수동 배포했고, 라이브 `https://d3ro.chanpaca.net/release-identity.json`이 commit `5c11ee2` / version `1.5.0`을, 라이브 번들이 설치 파일명 `D3RO-Voice-Setup-1.5.0-x64.exe`를 보고한다. 자동 게시에는 여전히 시크릿 등록이 필요하다. | | GAP-BILL-01 | Billing | 사이트 가격과 서버 청구 금액·결제 진입 URL이 제각각이었다. | `packages/core/src/plan-catalog.ts`, `packages/core/src/web-urls.ts`, `scripts/ci/sync-core-contract.mjs` | `[x]` 2026-09-26 (Wave 3, 88f24d8·b6fe588): 가격·쿼터·공개 URL 정본을 core 두 파일로 합치고 Deno는 생성 사본(`contract:check`). Payple 함수 4종+billing-catalog 운영 재배포(payple-* v9, billing-catalog v5) → 신규·갱신 모두 ₩2,900/₩8,900. 결제 진입은 `/app/billing` 하나. **2026-11-04:** `knowledge_embedding` 쿼터도 `PLAN_QUOTA`에 편입하고 `embedding-quota.ts`가 생성 계약을 소비하도록 중복 상수를 제거했다. | | GAP-BILL-02 | Billing | **Payple 정기 갱신이 한 번도 실행되지 않았다.** 갱신 cron(`payple-renew`)이 `.github/workflows`에만 있었는데 GitHub 원격이 없다. 웹 Payple 결제용 `NEXT_PUBLIC_PAYPLE_CLIENT_KEY`는 설정된 적이 없다. | `.forgejo/workflows/payple-renew.yml`, `apps/web/src/components/billing/payple-checkout-button.tsx`, `apps/web/Dockerfile` | `[~]` 2026-09-26: 워크플로 Forgejo 이식(dc43884), `CRON_SECRET` 새로 발급해 Supabase 함수 시크릿·Forgejo 시크릿에 등록, Forgejo `SUPABASE_URL` 등록 — main에 push되면 스케줄이 등록된다. **백로그(사용자 결정, 2026-09-27):** 아직 Payple 계약·계정이 없다. 웹 Payple 클라이언트 키(`NEXT_PUBLIC_PAYPLE_CLIENT_KEY`)는 계약 후 `.env`에 넣고 웹 이미지를 다시 빌드한다. 그 전까지 웹 결제 버튼은 꺼진 상태로 둔다. Stripe는 쓰지 않고(2026-09-26 저장소에서 제거, GAP-BILL-03), Google Play 가격은 스토어가 정본이라 사이트에 표시하지 않는다. | -| GAP-BILL-03 | Billing | **Stripe 결제 제거 — 운영 잔여물 정리.** 사용자 결정(2026-09-26)으로 저장소에서 Stripe 코드·설정·테스트를 모두 지웠다(함수 3종, 웹 checkout/portal 버튼, `billing-catalog`의 Stripe 가격 조회, 데스크톱 `CheckoutModal`·`payment:*` IPC, `billingUrl()`의 `success`/`canceled` 복귀 쿼리). 배포된 Supabase 함수와 시크릿은 아직 운영에 남아 있다. 과거 `provider='stripe'` 행·`stripe_*` 컬럼·마이그레이션은 이력 호환으로 유지한다. | `server/supabase/config.toml`, `server/supabase/functions/billing-catalog/index.ts`, `apps/web/src/lib/billing-catalog.ts` | `[ ]` 운영: `supabase functions delete stripe-checkout`·`stripe-portal`·`stripe-webhook`, 시크릿 `STRIPE_SECRET_KEY`·`STRIPE_WEBHOOK_SECRET`·`STRIPE_PRICE_PRO`·`STRIPE_PRICE_PRO_PLUS`·`STRIPE_PRICE_TEAM` unset, Stripe 대시보드 웹훅 엔드포인트 비활성화. `billing-catalog` 재배포는 웹앱 배포보다 먼저(웹 파서가 Stripe 가격을 거부). | +| GAP-BILL-03 | Billing | **Stripe 결제 제거 — 운영 잔여물 정리.** 저장소에서는 2026-09-26에 제거했고 과거 `provider='stripe'` 행·`stripe_*` 컬럼은 이력 호환으로 유지한다. | `server/supabase/config.toml`, `server/supabase/functions/billing-catalog/index.ts`, `apps/web/src/lib/billing-catalog.ts` | `[~]` 2026-11-17: 운영 Supabase 함수 목록에 `stripe-checkout`·`stripe-portal`·`stripe-webhook`이 없고 5개 `STRIPE_*` 시크릿도 모두 absent임을 확인했다. 남은 외부 항목은 Stripe 대시보드의 과거 웹훅 엔드포인트 비활성화 확인뿐이다. | | GAP-WEB-01 | Web | 웹앱(`apps/web`)이 공개되지 않았다(배포 경로가 없었음). | `apps/web/Dockerfile`, `docker-compose.nas.yml`, `server/cloudflare-site-bridge` | `[x]` 2026-09-26: `/app` basePath·NAS `d3ro_voice_web`(3002). 터널 `kd-nas` ingress에 `d3ro.chanpaca.net` path `^/app` → NAS 3002를 추가하고 브리지 워커가 `/app`·`/api`·`/health`를 도메인 원본(터널)으로 흘린다(4aadee8). Supabase `site_url`을 `https://d3ro.chanpaca.net/app`으로(기존 localhost:3000), 허용 목록에 `/app/**` 추가. 라이브 `/app/login` 200. 같은 수정으로 9/19부터 끊겨 있던 API(`/api`, 관리자 로그인·stt-proxy)도 복구. | | GAP-OPS-01 | Ops | NAS 운영 compose가 저장소와 어긋나 있었다(JWT 기본값 폴백, 법률 wwwroot 마운트, 필수 변수 4개 누락). | `docker-compose.nas.yml`, NAS `/volume1/docker/d3ro/.env` | `[x]` 2026-09-26: NAS `.env`에 `SUPABASE_URL`·`SUPABASE_SERVICE_ROLE_KEY`(운영 service_role)·`ADMIN_BOOTSTRAP_TOKEN`(신규)·`API_SERVER_URL` 추가, 저장소 compose로 교체 후 `docker compose up -d`. 4개 컨테이너 정상, 백업 `*.before-wave3-20260926`. | | GAP-OPS-02 | Ops | 관리자 주소가 두 개였다(`admin.chanpaca.net`, `d3ro-admin.chanpaca.net`). `admin.d3ro.chanpaca.net`은 2단계 서브도메인이라 고급 인증서(ACM, 월 $10)가 필요하다. | Cloudflare 터널 kd-nas ingress, chanpaca.net DNS | `[x]` 2026-09-26: 사용자 결정 — 관리자 주소는 `d3ro-admin.chanpaca.net` 하나(chanpaca.net에 다른 서비스가 많다). `admin.chanpaca.net` 터널 규칙·DNS 삭제로 이름을 풀었다. ACM은 지금 구독하지 않는다. 참고: `*.kite`·`*.voice` 고급 인증서는 ACM이 꺼져 2026-11-02 만료 후 갱신되지 않는다(다른 프로젝트). | -| GAP-OPS-03 | Ops | **`payple-renew` 크론이 등록 이후 한 번도 성공하지 못했다.** Forgejo 시크릿 `SUPABASE_URL`이 로컬 Supabase 주소(`127.0.0.1:55321`)로 등록돼 매일 `curl: (7) Failed to connect`. Payple 계약 전이라 청구 대상 구독은 없다(GAP-BILL-02). | `.forgejo/workflows/payple-renew.yml`, `scripts/ci/set-forgejo-secrets.mjs` | `[~]` 2026-10-11: 시크릿을 `.env` 운영 값으로 교체, 스크립트를 `.env` 정본 동기화 + 로컬 주소 거부로 확장. 남은 확인: 다음 정기 실행(10:00 KST)이 HTTP 200인지(수동 dispatch는 실결제 경로라 보류). | -| GAP-OPS-04 | Ops | `audio-purge`가 pg_cron의 service credential을 handler 안에서 검증하는 구조인데 `config.toml`에 함수 stanza가 없어 기본 gateway JWT 검증이 먼저 요청을 거부할 수 있었다. | `server/supabase/config.toml`, `server/supabase/functions/audio-purge/{index,handler}.ts`, migration `20260929000004_audio_retention_on_delete.sql` | `[~]` 2026-11-04: `[functions.audio-purge] verify_jwt = false`를 명시하고 격리 로컬 Supabase에서 실제 경로를 검증했다. 키 없음/유효한 non-service 키는 401, service 키는 200이었고 direct drain과 `pg_cron` → Vault → `pg_net` → Edge → Storage 경로 모두 `claimed=1`, `removed=1`, `failed=0`, `completed=1`; queue/`audio_files`/`storage.objects`는 `1|1|1`→`0|0|0`이었다. **2026-11-14 운영 반영:** `audio-purge` 포함 24개 Edge Function을 운영(`verify_jwt = false` `config.toml` 반영)에 재배포했으며 무인증 호출이 HTTP `401`로 거부됨을 확인했다. **남은 경계:** 운영 DB의 실제 `pg_cron`/Vault/실객체 스케줄 실행은 별도 실데이터 검증이 필요하다. | +| GAP-OPS-03 | Ops | **`payple-renew` 크론이 등록 이후 한 번도 성공하지 못했다.** Forgejo 시크릿 `SUPABASE_URL`이 로컬 Supabase 주소(`127.0.0.1:55321`)로 등록돼 매일 `curl: (7) Failed to connect`. Payple 계약 전이라 청구 대상 구독은 없다(GAP-BILL-02). | `.forgejo/workflows/payple-renew.yml`, `scripts/ci/set-forgejo-secrets.mjs` | `[~]` 2026-11-17: 운영 DB에 Payple 갱신·만료 대상 0건을 확인한 뒤 함수를 직접 호출해 HTTP 200 `{renewed:0, failed:0, expired:0}`을 확인했다(실결제 없음). Forgejo 정기 실행 기록은 기존 API 토큰 HTTP 401로 아직 읽지 못하므로 스케줄 증거는 남는다. | +| GAP-OPS-04 | Ops | `audio-purge`가 pg_cron의 service credential을 handler 안에서 검증하는 구조인데 `config.toml`에 함수 stanza가 없어 기본 gateway JWT 검증이 먼저 요청을 거부할 수 있었다. | `server/supabase/config.toml`, `server/supabase/functions/audio-purge/{index,handler}.ts`, migration `20260929000004_audio_retention_on_delete.sql` | `[x]` 2026-11-17: 로컬 경로(2026-11-04)와 운영 배포(2026-11-14)에 이어 운영 Vault의 `project_url`/`service_role_key`를 복구했다. 09:00 UTC 실제 `purge-orphaned-audio` 예약 실행이 `pg_cron` → Vault → `pg_net` → Edge → Storage를 완료했고, 격리된 실제 WAV 객체와 queue row가 `1 → 0`, `net._http_response.status_code=200`으로 확인됐다. 테스트 사용자·객체·queue 잔여물은 0이다. 증거: [`2026-11-17-backlog-operations.md`](../evidence/2026-11-17-backlog-operations.md). | | GAP-CI-02 | CI | `linux-builder` 러너가 노트북 한 대(`kd-desktop`)뿐이라 노트북이 꺼지면 CI·크론이 통째로 멈춘다(2026-09-29~10-09, run #128~#137 Canceled). | `.forgejo/workflows/*.yml` (`runs-on: linux-builder`) | `[ ]` 후보: 상시 켜진 NAS 러너에 `linux-builder`(또는 크론 전용) 라벨 추가, 최소한 `payple-renew`는 NAS로. | | GAP-CI-03 | CI | 9-28부터 `ci.yml`의 데스크톱 Vitest·모바일 Jest가 테스트 전부 통과인데도 실패했다. 데스크톱: 템플릿 테스트가 결과를 실제 TextInsertService로 넣다가 nut-js(libnut)가 X 디스플레이 없음(`Could not open main display`)으로 워커를 죽임. 모바일: `knowledge-service.test.ts`가 구독의 삭제 대조 setInterval을 끄지 않아 Jest가 끝나지 않음(잡 무한 대기). | `apps/desktop/tests/setup.ts`, `apps/mobile-rn/__tests__/knowledge-service.test.ts` | `[x]` 2026-10-11: setup.ts에 nut-js 공통 목, 테스트가 unsubscribe. 러너 호스트(vd-linux)에서 데스크톱 2539/2539 exit 0, 모바일 589/589 정상 종료 확인. | | GAP-CI-04 | CI | Forgejo build validation과 root `build:all`이 web production build를 생략했고, migration checker도 CI quality gate에 연결되지 않았다. | `.forgejo/workflows/ci.yml`, `scripts/ci/build-all.mjs`, `scripts/ci/check-supabase-migrations.mjs` | `[x]` 2026-11-04: web production build를 두 경로에 추가하고 CI quality에서 `check:migrations:test` → `check:migrations`를 실행한다. CI 자체는 73개 파일의 naming/order/metadata 검사다. 같은 날 별도 격리 로컬 스택에서 empty/reset replay 73/73과 `pg-delta --strict-coverage` shadow diff 0을 확인했지만, 이 runtime gate는 아직 CI에 자동화되지 않았고 linked remote drift도 확인하지 않았다. | @@ -44,7 +46,7 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | GAP-UX-02 | Desktop | 기록 조회에 모드·즐겨찾기 조건, 태그+검색 조합이 없어 화면이 불러온 페이지 위에서 거른다(조건이 까다로우면 여러 페이지를 불러와야 보인다). 오프셋 페이지라 사이 삽입·삭제 때 누락·중복 가능. 기록 제목·본문 편집 없음. 마크다운 내보내기는 태그 붙은 기록만·저장 위치 선택 불가. | `HistoryService`, `history-handlers.ts`, `MemoService.exportMarkdown`, `HistoryEntryCard.tsx`, `HistoryPage.tsx`, `tests/unit/records-view.test.ts`, `tests/red/memo.usecase.test.ts` | `[x]` 2026-10-30: `HistoryService.list`/`getAll`에 SQLite 직접 조건(`mode`, `isFavorite`, `tag`, `search`/`query`, `beforeCreatedAt` 커서 페이지네이션)을 추가하고, `HistoryService.update`(`history:update` IPC + `HistoryEntryCard` 인라인 편집 + 동기화 push)와 `MemoService.exportMarkdown`(무태그 기록 포함, 필터 연동, `savePath` 및 저장 대화상자 선택)을 구현했다. 검증: `records-view.test.ts` 21/21, `memo.usecase.test.ts` 15/15 통과. | | GAP-UX-03 | Desktop | 회의 요약 항목 → 전사 구간 근거 링크 없음(요약·전사를 잇는 인용 데이터가 없다). | `MeetingSummaryService`, `MarkdownRenderer.tsx`, `MeetingSummaryTab.tsx`, `MeetingDetailTabs.tsx`, `TranscriptTab.tsx`, `EditableSegment.tsx`, `tests/unit/desktop-ux-gaps.test.ts` | `[x]` 2026-10-30: `MeetingSummaryService`가 요약·결정·액션아이템에 `[MM:SS]` 타임스탬프 근거 인용을 생성·파싱(`parseCitationTimestampMs`, `extractTranscriptCitations`)하고, `MarkdownRenderer`/`MeetingSummaryTab`에서 인용 배지 클릭 시 전사 탭의 해당 `EditableSegment`(`data-timestamp-ms`)로 이동·하이라이트한다. 검증: `desktop-ux-gaps.test.ts` 13/13 통과. | | GAP-UX-04 | Mobile | 모바일 정보 구조 개편: visible Home/Records/Meetings/More 4탭, 숨은 Record route, 세 동작 FAB, Home/More, 새/전환된 v4 흐름의 `ScreenHeader`와 48dp back target. | `apps/mobile-rn/src/navigation/TabNavigator.tsx`, `components/{RecordFab,ScreenHeader}.tsx`, `screens/{Home,More}Screen.tsx` | `[x]` 2026-09-28: 전체 Jest 86 suites/589 tests, 320dp dark 1/1 PASS(88초), 411dp light 1/1 PASS(100초). Canonical 보고서는 `scratch/design-audit/wave45/navigation-shell-search-{320-dark,411-light}-verified.xml`, 추적 요약은 `docs/evidence/wave45-mobile-shell-search-2026-09-28.md`. `DashScreen`/`WorksHubScreen`은 삭제했고 WorksHub의 로컬 도구 검색·고정은 복잡도 축소를 위해 의도적으로 종료했다. 목적지는 탭/More에 보존됐고 콘텐츠 삭제는 없으며 비활성 `works-hub-pins.v1` 키는 남을 수 있다. TalkBack/font-scale/rotation은 이 셸 gap을 다시 열지 않고 Q-021 `[~]`로 추적한다. | -| GAP-UX-05 | Desktop+Mobile | 기록+회의 통합 검색. 두 원본은 분리 유지하고 결과만 `source + id`로 상세 화면에 연결한다. | `@d3ro/core/types`, desktop `UnifiedSearchService`/`UnifiedSearchPage`, mobile `features/search`/`UnifiedSearchScreen` | `[~]` 2026-09-28 → **2026-10-30 코드·테스트 보강 완료:** 모바일 `unified-search-service.ts` 및 `UnifiedSearchScreen.tsx`에 `AbortSignal`/`AbortController` 요청 취소, `transcripts` 구간 테이블 검색(`searchTranscriptSegments`), 대용량 원문 상한(`boundPayloadText`)을 추가하고, 데스크톱 `UnifiedSearchService.ts`에도 `meetingMemos` 및 전사 구간 타임스탬프 스니펫 추출·인덱스 정렬을 추가했다(검증: 모바일 `unified-search-service.test.ts` 및 데스크톱 `UnifiedSearchService.test.ts` 12/12 통과). Electron `Ctrl+K` 실앱 수동 검증만 남아 `[~]` 유지. | +| GAP-UX-05 | Desktop+Mobile | 기록+회의 통합 검색. 두 원본은 분리 유지하고 결과만 `source + id`로 상세 화면에 연결한다. | `@d3ro/core/types`, desktop `UnifiedSearchService`/`UnifiedSearchPage`, mobile `features/search`/`UnifiedSearchScreen` | `[~]` 2026-09-28 → **2026-10-30 코드·테스트 보강 완료:** 모바일 `unified-search-service.ts` 및 `UnifiedSearchScreen.tsx`에 `AbortSignal`/`AbortController` 요청 취소, `transcripts` 구간 테이블 검색(`searchTranscriptSegments`), 대용량 원문 상한(`boundPayloadText`)을 추가하고, 데스크톱 `UnifiedSearchService.ts`에도 `meetingMemos` 및 전사 구간 타임스탬프 스니펫 추출·인덱스 정렬을 추가했다(검증: 모바일 `unified-search-service.test.ts` 및 데스크톱 `UnifiedSearchService.test.ts` 12/12 통과). **2026-11-18:** 현재 모바일 APK의 local seeded history + canonical meeting RPC 데이터로 통합 검색 두 결과·두 상세 이동·Markdown 컨트롤이 77초 Maestro PASS. Electron `Ctrl+K` 실앱 수동 검증만 남아 `[~]` 유지. | | GAP-UX-06 | Desktop | main 쪽 정리 필요: `STTManager.ts:53-129` 공급자 설명 한국어 하드코딩·마케팅 문구("100% 완전 오프라인", "Industry Benchmark") — 렌더러는 더 이상 쓰지 않는다 / audio TEST_DEVICE 가 deviceId 무시 / 사전 `incrementUsage` 호출처 없음(사용 횟수 항상 0) / 사전 발음 필드가 인식 힌트·치환에 쓰이지 않음 / 대화 세션 다시 듣기 IPC 없음 / preload `instruction.getAll` 이 `unknown[]` / 지식 추가 실패 판정이 문구 비교. | `STTManager.ts`, `ipc/audio-handlers.ts`, `DictionaryService.ts`, `VoiceModeService.ts`, `VoiceConversationService.ts`, `preload/index.ts`, `ipc/rag-handlers.ts`, `KnowledgeBasePage.tsx` | `[x]` 2026-10-30: 7개 항목 전수 해결 — (1) `STTManager.ts` 중립 기술 설명으로 교체, (2) `audio-handlers.ts` `TEST_DEVICE`가 `deviceId`·`durationMs` 전달, (3) `DictionaryService` 발음 힌트(`getPromptHints`) 및 발음→표제어 치환·`incrementUsage`(`applyDictionaryCorrections`)를 `VoiceModeService._transcribe`에 연결, (4) `voiceConversation:replayMessage` IPC + `VoiceConversationPage` 다시 듣기 버튼 추가, (5) `preload` `instruction.getAll` 타입 `CustomInstruction[]` 지정, (6) `rag-handlers.ts`·`KnowledgeBasePage.tsx` 구조화 에러(`details.cancelled` / `ErrorCode`) 판정으로 전환. 검증: `desktop-ux-gaps.test.ts` 13/13 통과. | | GAP-UX-07 | Desktop | 2026-09-28 개편 문구는 ko·en 만 — 다른 8개 로케일은 en 폴백. 온보딩 Ollama 모델 크기 표기(`onboarding.llmModelSize` 9.6GB)와 안내 모달의 크기가 다르다. | `packages/i18n/src/locales/*`, `OllamaGuideModal.tsx`, `scripts/ci/sync-i18n-locales.mjs`, `tests/main/services/i18n-locale-parity.test.ts` | `[x]` 2026-10-30: `onboarding.llmModelSize`와 `OllamaGuideModal.tsx`의 기본 모델(`gemma4:e4b`) 크기 표기를 `4.0GB`로 통일하고, 12개 로케일 전체를 동기화했다. **2026-11-04:** updater dialog 16키를 추가해 현재 2,742키이며 `i18n-locale-parity.test.ts` 15/15가 이를 고정한다. | | GAP-UX-08 | Mobile | **대화면(태블릿/폴더블 펼침) 레이아웃 대응이 없다.** 825dp 폭에서도 모든 화면이 한 열로 늘어난 휴대폰 레이아웃이고, `useWindowDimensions`/breakpoint/`numColumns` 사용처가 0건이다. More/Meetings/Commands/Templates 는 2열 그리드 후보, Dictionary Edit·Delete 와 Templates Select 는 화면 절반~전체 폭 버튼이 된다. 적응형 배너(`ANCHORED_ADAPTIVE_BANNER`, `minHeight: 50`)는 로드 후 728×90↔468×60 으로 높이가 변해 탭 바가 시프트한다(콘텐츠 가림은 스크롤로 회피 확인). | `packages/ui-native/src/responsive.tsx`, `apps/mobile-rn/src/components/ads/FreeTierBanner.tsx`, `apps/mobile-rn/src/screens/*`, `apps/mobile-rn/__tests__/responsive-layout.test.tsx`, `docs/evidence/2026-11-05-tablet-layout-audit.md` | `[~]` **2026-11-13 코드·Jest 구현 완료:** `@d3ro/ui-native/responsive`(`resolveResponsiveLayout`, `useResponsiveLayout`, `useContentWidth`, `ContentColumn`)를 추가해 `>=600dp` 태블릿/폴더블에서 본문 폭 상한(`880dp`, 폼·온보딩 `520dp`), 2열 그리드(`More`/`Meetings`/`Commands`/`Templates`/`Records`), 인라인 액션 버튼 폭 제한(`Dictionary`/`Templates`), `FreeTierBanner` `90dp` 고정 슬롯 예약(레이아웃 시프트 방지)을 10개 주요 화면에 반영했다(`responsive-layout.test.tsx` 4/4 및 전체 모바일 Jest 89 suites / 605 tests PASS). 남은 게이트: 실기기 Fold6/Tab S11 `open`/`closed` Maestro 시각 확인. | @@ -70,6 +72,7 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | GAP-MTG-03 | Meetings | Existing recordings could become plain transcription history, but not a meeting with linked audio and minutes. | desktop `MeetingModeService`, `meeting/imported-recording.ts`, `meeting-mode-handlers.ts`; mobile `MeetingsScreen` → `RecordScreen`; MTG-13 | `[~]` 2026-11-02: installed Windows 1.16.0 passed native picker→timestamped transcript→local summary/action item with a real WAV (`2026-11-02-verification.md`). Desktop GUI gate is complete; authenticated Android picker→upload→transcript→minutes on Fold6 remains. | | GAP-MTG-04 | Meetings | Learned typing vocabulary never reached meeting transcription: STT used a hardcoded Korean hint, refine had no glossary, refined lines stopped inside `CaptionService`, and the stored transcript was raw segments. | `packages/core/src/transcript-correction.ts`, `apps/desktop/src/main/services/TranscriptGlossaryService.ts`, `CaptionService.ts`, `meeting/MeetingRecordingSession.ts`, `MeetingModeService.ts`, `FileTranscriptionService.ts`, `VoiceModeService.ts`; MTG-14 | `[~]` 2026-11-05: one glossary SSOT wired into caption, meeting, file transcription and dictation; refined lines now propagate to the meeting transcript and renderer (`meetingMode:segmentUpdated`). **Direct measurement against the real local database** (`users/_local/d3ro.db`: 1,952 learned phrases / 2,522 typing samples / 3 meeting transcripts) exposed that the first cut also rewrote ordinary Korean (286 of 3,005 words: 하면→라면, 이제→이게, 매일→메일, 정보→정도), and v1.16.3 restricts deterministic correction to dictionary pronunciations plus typed Latin identifiers — re-measured **0 of 3,005**. Real-engine check with the local sidecar (`large-v3-turbo`): a Korean TTS fixture containing the user term transcribes as 하람로그에 with no hint and haramlog에 with the learned hint; a dictionary pronunciation entry maps 디에로 → D3RO. Hangul-layout artifacts (dkssudgktpdy) are excluded from the hint. Evidence: `packages/core/__tests__/transcript-correction.test.ts` 16/16, `apps/desktop/tests/main/services/transcript-glossary.test.ts` 10/10, core 589/589, desktop offline suite, workspace typecheck, touched-file ESLint, `test:hygiene`. **Remaining:** a live meeting with real names/jargon by voice, and a packaged-install check of the new IPC event. | | GAP-REL-16 | Release | Forgejo release-page asset attachment for the ~91 MB installer times out through Cloudflare (HTTP 524), although the package registry upload and the signed manifest succeed. | `scripts/ci/publish-forgejo-release.mjs`, `scripts/ci/lib/immutable-package-guard.mjs` | `[~]` 2026-11-06: reproduced on v1.16.2, v1.16.3 and v1.16.4. **2026-11-14 (`v1.17.1`):** `v1.17.1` (`6c6875b`) also reproduced `write ECONNRESET` at Human Release #339 asset attachment due to Cloudflare ~91 MB proxy limit, while Forgejo generic registry (`1.17.1/latest.yml`, `.sig`, `latest/latest.yml`, `runtime-1.17.1`, `portable-1.17.1`) and public signed-manifest verification completed with HTTP `200`, so installed apps can auto-update cleanly. To retry only this step locally without Cloudflare proxy timeout or check detached tag: check out `v1.17.1` before `npm run release -- --resume`. | +| GAP-REL-17 | Release | 설치된 1.17.1은 자동 업데이트를 정상 확인하지만 공개 피드도 1.17.1이라 1.18.x 제안이 나오지 않았다. 미게시 1.18.1·1.18.2 설치본이 각각 120,821,996·120,821,907 bytes(115.2 MiB)라 100 MiB 업로드 게이트에서 중단됐고, 버전 태그와 원격 피드가 어긋났다. | `apps/desktop/electron-builder.yml`, `scripts/ci/{build-desktop-installer,release-desktop,publish-forgejo-release}.mjs`, `docs/evidence/2026-11-17-backlog-operations.md` | `[~]` 2026-11-20: 원인 재현. 실행 앱·피드·로그가 모두 `1.17.1`이며 kill switch=false, staging=100%다. full-only 시험 108,504,875 bytes도 초과했고 1.18.3은 과거 release를 ASAR에 재귀 포함해 실패했다. `1.18.4`는 `!release/**`·명시적 `out/**/*`, Windows nut-js·다른 플랫폼 SQLite·shared package 중복 제외로 레이아웃을 정상화한다. Windows는 `.blockmap` 대신 최대 압축 전체 설치본을 받는다(`fullInstallVersionGap=0`). 실제 빌드·smoke·서명 공개 피드와 설치본 제안까지 확인한다. | | GAP-INFRA-01 | Build | `apps/mobile-rn` is outside npm workspaces, so root `typecheck`/`test`/`lint` skip it. `typecheck:mobile`/`lint:mobile`/`test:mobile`/`verify:all` root scripts added 2026-09-13 (`package.json`), but membership/CI integration is still open. | `package.json`, `.forgejo/workflows/ci.yml`, `.gitlab-ci.yml` | `[x]` 2026-10-30: React Native Metro/Gradle 네이티브 오토링킹 격리를 위해 `apps/mobile-rn`은 독립 `node_modules`로 유지하고, 루트 `verify:all` 및 `.forgejo/workflows/ci.yml`·`.gitlab-ci.yml`의 `mobile-quality` 잡이 모바일 `lint`·`typecheck`·`test:ci`를 필수 게이트로 실행하도록 정본화했다. **2026-11-04:** root `test:mobile`도 watch-capable 기본 Jest가 아니라 mobile `test:ci`(`jest --runInBand`)를 호출하도록 고정했다. | | GAP-MOB-01 | Legacy | `apps/mobile` Expo skeleton duplicated auth/data code and got version-sync edits. | SSOT G-002 | `[x]` 2026-09-13: deleted `apps/mobile`, removed from `sync-version.mjs` and `package-lock.json`; `version:check` GREEN. | | GAP-INFRA-02 | CI | GitLab admin NAS deploy job is disabled; admin deploy is manual/GHCR. | `.gitlab-ci.yml`, `docs/deployment/nas-deploy-runbook.md` | `[x]` 2026-10-30: 임시 CI DinD 데몬만 바꾸던 구 잡 대신 `docker-compose.nas.yml` 기반의 정본 배포·헬스체크·롤백 절차를 `docs/deployment/nas-deploy-runbook.md`로 문서화하고 `.gitlab-ci.yml` 및 `02-infrastructure.md`에 연결했다. | @@ -77,9 +80,9 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | GAP-INFRA-04 | Quality | Desktop `typecheck` is a no-op: `tsconfig.json` is `files: []` + references, so `tsc --noEmit` checks nothing. Real `tsc -p tsconfig.node.json --noEmit` surfaces many pre-existing errors. | `apps/desktop/package.json`, `apps/desktop/tsconfig.node.json`, `apps/desktop/tsconfig.web.json` | `[x]` 2026-10-30: `apps/desktop/package.json`의 `typecheck`가 `tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json`을 실행하도록 수정하고 전체 컴파일 에러를 0건으로 해소했다 (GAP-REL-15). | | GAP-SHELL-01 | Support | Admin `/support` is a stub panel; desktop-only `SupportModal`. No shared ticket contract. | `apps/admin/src/app/(admin)/support/page.tsx` | `[x]` 2026-10-30: 어드민 `/support`를 정적 스텁에서 `content_reports` 기반의 fail-closed 고객지원·콘텐츠 신고 관리 콘솔(상태별 필터, 요약 지표 카드, 페이지네이션, 백엔드 미연결 시 명시적 오류 배너 `support-backend-error`)로 업그레이드했다 (`apps/admin` typecheck 0 에러). | | GAP-PUSH-01 | Push | `send-push` accepted `webpush`/`apns` but marked them `push_provider_not_supported`. | `_shared/webpush.ts`, `_shared/apns.ts`, `send-push/index.ts` | `[x]` 2026-09-13: VAPID Web Push (RFC 8291) + APNs `.p8` transports implemented and routed; 10 new tests incl. an encryption round-trip. Web/iOS client registration code now exists (see GAP-PUSH-03); provider secrets, deployed cron execution, and live delivery remain separate runtime gates. | -| GAP-PUSH-02 | Push | Nothing triggered `send-push?mode=drain`; enqueued notifications never left the outbox. | `server/cloudflare-worker/src/push-drain.ts`, `wrangler.toml` | `[x]` 2026-09-13: Cloudflare Cron Trigger (`* * * * *`) drains the outbox; tests in CI. Requires `SUPABASE_URL` + `SUPABASE_SERVICE_ROLE_KEY` secret on the worker. | -| GAP-PUSH-03 | Push | Web/iOS provider-specific registration paths were missing; web additionally needed a production call site that actually subscribes the signed-in device. | `apps/web/public/sw.js`, `apps/web/src/lib/{web-device,web-push,web-push-session}.ts`, `apps/web/src/components/layout/web-push-control.tsx`, `apps/web/e2e/web-push.spec.ts`, `packages/api-client/src/types.ts`, `apps/mobile-rn/src/features/notifications/*`, `apps/mobile-rn/__tests__/notifications.test.ts` | `[~]` 2026-11-04: web sidebar opt-in/out uses explicit user-gesture permission, a stable active `platform='web'` device, device-bound RPCs, rollback, disabled-intent reconciliation, bounded parallel local/server cleanup, and logout-independent sign-out; 17 Playwright contract tests cover these boundaries. An ephemeral isolated local run proved device/token/outbox/drain and a provider-accepted `delivered` row, but did not observe the service-worker notification. A production-standalone rerun built/served, then timed out during throwaway login navigation before dashboard render. Mobile APNs/FCM branching is unit-tested. Still open: matching production VAPID configuration, authenticated production permission/subscription and 1440/390/a11y render proof, deployed scheduled drain, and real Web Push/APNs receipt. | -| GAP-PUSH-04 | Push | Android still depends on FCM (`google-services.json`). | `apps/mobile-rn/android`, `send-push` | Decide: minimal Firebase project, or UnifiedPush/ntfy. See `docs/deployment/push-transport-without-firebase.md`. | +| GAP-PUSH-02 | Push | Nothing triggered `send-push?mode=drain`; enqueued notifications never left the outbox. | `server/cloudflare-worker/src/push-drain.ts`, `wrangler.toml` | `[x]` 2026-11-17: Cloudflare Cron Trigger(`* * * * *`)에 운영 Supabase URL과 현재 프로젝트 secret을 주입했다. 초기 401을 재현한 뒤 drain 요청에 Bearer + `apikey`를 모두 전달하도록 회귀 테스트를 추가했고, 실제 예약 실행 로그 `claimed=1 completed=1 pending=0`을 확인했다. | +| GAP-PUSH-03 | Push | Web/iOS provider-specific registration paths were missing; web additionally needed a production call site that actually subscribes the signed-in device. | `apps/web/public/sw.js`, `apps/web/src/lib/{web-device,web-push,web-push-session}.ts`, `apps/web/src/components/layout/web-push-control.tsx`, `apps/web/e2e/web-push.spec.ts`, `packages/api-client/src/types.ts`, `apps/mobile-rn/src/features/notifications/*`, `apps/mobile-rn/__tests__/notifications.test.ts` | `[~]` 2026-11-04: web sidebar opt-in/out uses explicit user-gesture permission, a stable active `platform='web'` device, device-bound RPCs, rollback, disabled-intent reconciliation, bounded parallel local/server cleanup, and logout-independent sign-out; 17 Playwright contract tests cover these boundaries. An ephemeral isolated local run proved device/token/outbox/drain and a provider-accepted `delivered` row, but did not observe the service-worker notification. A production-standalone rerun built/served, then timed out during throwaway login navigation before dashboard render. Mobile APNs/FCM branching is unit-tested. **2026-11-17:** production VAPID keys and web image are deployed; an authenticated temporary user obtained a real browser subscription and the scheduled outbox produced `push_deliveries.status='delivered'` twice (headless and visible Chrome). However `registration.getNotifications()` remained 0, so actual browser display receipt and APNs receipt remain open. Temp users were deleted. Evidence: `docs/evidence/2026-11-17-backlog-operations.md`. | +| GAP-PUSH-04 | Push | Android still depends on FCM (`google-services.json`). | `apps/mobile-rn/android`, `send-push` | `[!]` 2026-11-17: Play 배포·기존 RN Google 서비스 계약과 일치하도록 **FCM을 유지**한다. UnifiedPush/ntfy 이중 전송은 도입하지 않는다. 남은 것은 `EXT-FIREBASE-01`의 production Firebase project·Android app·FCM 자격증명이다. | | GAP-STT-01 | Local STT | Packaged desktop builds shipped **no** faster-whisper sidecar: `electron-builder.yml` had no `extraResources` entry for it and no pipeline job built it. Local transcription was impossible on any installed build; the app fell back to a system Python without the runtime. | `apps/desktop/electron-builder.yml`, `.gitlab-ci.yml`, `apps/desktop/scripts/build-sidecar.mjs` | `[x]` 2026-09-18: sidecar bundled via `extraResources` (`sidecar-dist/sidecar` → `resources/sidecar`), `sidecar:setup`/`sidecar:build` scripts, and `scripts/ci/verify-sidecar-bundle.mjs` fails packaging when the engine or its Silero VAD data is missing. Verified on the real 242 MB bundle. | | GAP-STT-02 | Local STT | Dev resolved the sidecar/SoX paths against the Vite output dir (`out/main`), so the sidecar ran a Python without faster-whisper and SoX recording died with `spawn sox ENOENT`. | `apps/desktop/src/main/utils/paths.ts`, `apps/desktop/tests/main/utils/paths.test.ts` | `[x]` 2026-09-18: app root is discovered by walking up for app markers; packaged mode fails loudly instead of silently falling back. Unit tests pin both branches. | | GAP-STT-03 | Local engines | On hosts where `localhost` resolves only to IPv6, every local engine call (STT sidecar and Ollama) was refused. Audio capture and local LLM appeared dead. | `apps/desktop/src/main/utils/loopback.ts`, `LocalSTTService`, `LocalLLMService`, `RAGService`, `OnlineLLMService`, `STTManager` | `[x]` 2026-09-18: loopback normalization to `127.0.0.1` for all local engine URLs; defaults updated; 9 unit tests. Verified against the live sidecar and Ollama on a host with an IPv6-only `localhost`. | @@ -129,7 +132,8 @@ Legend: `[ ]` open · `[~]` in progress · `[!]` blocked externally · `[x]` res | GAP-SYNC-08 | Sync | Meeting memo conflict detection compares mutable content plus timestamp/creation fields instead of an immutable revision. An A→B→A edit can return to the same compared values and evade stale-client detection; the shared `MeetingMemo` type has no `updated_at` or revision field. | `server/supabase/migrations/20261113000001_meeting_memos_revision_cas.sql`, `packages/api-client/src/types.ts` `MeetingMemo`, `apps/mobile-rn/src/features/meetings/meetings-service.ts`, `apps/desktop/src/main/{db/schema.ts,services/sync/sync-adapters.ts}` | `[x]` **2026-11-13 마이그레이션·클라이언트·단위 검증 완료 → 2026-11-14 운영 DB 반영:** 74번째 마이그레이션 `20261113000001_meeting_memos_revision_cas.sql`로 `meeting_memos.revision integer not null default 1 check (revision >= 1)` 및 단조 증가 트리거 `bump_meeting_memo_revision`을 추가하고, `@d3ro/api-client`, 모바일 `updateMeetingMemoConflictSafe`/`deleteMeetingMemoConflictSafe`(단조 `revision` 우선 CAS로 `A→B→A` 회피 차단, 구 스키마 폴백 유지), 데스크톱 SQLite `meeting_memos.revision`·`sync-adapters.ts`를 모두 갱신했다(`check:migrations` 74개 GREEN, 모바일 `meetings.test.ts` 18/18·데스크톱 `SyncEngine.test.ts` 20/20 PASS). **2026-11-14:** 운영 Supabase `supabase db push --remote`로 21개 보류 마이그레이션(`20260927000037`~`20261113000001`)을 반영하고 `supabase migration list --remote`에서 전체 74개 로컬=원격 일치를 확인했으며 데스크톱 `v1.17.1`도 함께 게시했다. | | GAP-OPS-01 | Ops | **Production Supabase was five migrations behind** (`0029` content reporting, `0030` profile column ACL — users could raise their own `role`/`tier` through PostgREST, `0031` audit-log actor unlink, `0032` meeting-document reporting, `0033` team activity feed) and `content-report` was never deployed, while the map listed those features GREEN from local runs. Most functions still ran the 2026-08-21 build. | `server/supabase/migrations/`, `scripts/ci/check-supabase-migrations.mjs` | `[x]` 2026-09-27: schema+data dump taken, `db push` applied `0029`–`0035`, all functions redeployed (unauthenticated calls return 401, i.e. live and gated); `authenticated` can no longer UPDATE `profiles.tier`; real-account export returns exactly the v1 keys. **2026-11-04 boundary:** file checker는 73개 파일의 self-test/order/name/duplicate/non-empty만 다룬다. 별도 격리 로컬 stack의 empty/reset replay와 `pg-delta` shadow diff는 통과했지만 linked remote migration state/drift는 재검증하지 않았다. | -| GAP-STT-01 | Cloud STT | A 5 s phone recording took ~66 s and ended on the phone's tiny local model (2026-09-27). Chain: the gateway's first endpoint (laptop GPU 192.168.0.227) is off (3 s), the NAS CPU Whisper (2 cores, load ~7) needs 30–90 s for 3 s of audio, and `stt-proxy` waited up to 60 s for the gateway. The direct OpenAI fallback **never worked**: the production `OPENAI_API_KEY` secret is not a valid header value (invisible/non-ASCII characters — `TypeError: headers … not a valid ByteString`), and whisper-1 `verbose_json` reports the language by name, which the result contract rejected. The same key backs `embed-chunks`, `search-knowledge` and `realtime-token`. | `server/supabase/functions/{stt-proxy,_shared/stt-contract.ts,_shared/provider-key.ts}` | `[!]` 2026-09-27 code fixed and deployed: gateway wait = 5 s + clip length (max 30 s) when a direct provider exists, provider language names mapped to codes, keys stripped of BOM/zero-width characters (still-invalid keys count as not configured), fail-closed responses list per-provider failures (`attempts`). **External:** re-enter a valid `OPENAI_API_KEY` (or add `GROQ_API_KEY`) in Supabase function secrets, or keep the GPU endpoint online; until then cloud STT runs on the NAS CPU (~30 s for a short clip). | +| GAP-STT-01 | Cloud STT | A 5 s phone recording took ~66 s and ended on the phone's tiny local model (2026-09-27). Chain: the gateway's first endpoint (laptop GPU 192.168.0.227) is off (3 s), the NAS CPU Whisper (2 cores, load ~7) needs 30–90 s for 3 s of audio, and `stt-proxy` waited up to 60 s for the gateway. The direct OpenAI fallback **never worked**: the production `OPENAI_API_KEY` secret is not a valid header value (invisible/non-ASCII characters — `TypeError: headers … not a valid ByteString`), and whisper-1 `verbose_json` reports the language by name, which the result contract rejected. The same key backs `embed-chunks`, `search-knowledge` and `realtime-token`. | `server/supabase/functions/{stt-proxy,_shared/stt-contract.ts,_shared/provider-key.ts}` | `[!]` 2026-09-27 code fixed and deployed: gateway wait = 5 s + clip length (max 30 s) when a direct provider exists, provider language names mapped to codes, keys stripped of BOM/zero-width characters (still-invalid keys count as not configured), fail-closed responses list per-provider failures (`attempts`). **External:** re-enter a valid `OPENAI_API_KEY` (or add `GROQ_API_KEY`) in Supabase function secrets, or keep the GPU endpoint online; until then cloud STT depends on the NAS CPU. **2026-11-17 실제 운영 probe:** 임시 계정과 4.7초 로컬 TTS WAV로 `stt-proxy`가 HTTP 502 `gateway/http_504`를 반환하고 direct provider는 시도되지 않았다. NAS를 재시작한 직접 전사는 정확히 성공했으나 콜드 로딩 포함 약 101초였다. 임시 계정은 HTTP 200으로 삭제했다. 유효한 공급자 키 또는 상시 GPU가 여전히 필요하다. | +| GAP-SEC-01 | Dependencies | Docker 빌드에서 발견한 Next.js 등의 critical 취약점과 오래된 Electron/Vitest toolchain | `apps/{web,admin,desktop}/package.json`, `package-lock.json`, `apps/mobile-rn/package.json` | `[~]` 2026-11-18: Next 16.4.6, Mermaid 12.3.0, Electron 43.8.10, electron-vite 6.0.0, Vite 8.3.8, Vitest 5.1.0으로 갱신하고 Node 24 계약·비동기 Clipboard await·전체 테스트/빌드를 통과했다. 현재 audit은 critical 0, high 25 / moderate 12다. picomatch는 최신 4.0.7도 GHSA-fc5q-39xc-vjpf 대상이므로 안전한 상위 수정판이 나오면 다시 평가한다. 운영 Web `f36c4661…3906d3`·Admin `1a98f25d…36ca58` 배포와 localhost/public health 200을 확인했다. Electron 실GUI는 외부 터미널 수동 게이트로 남긴다. 증거: `docs/evidence/2026-11-17-backlog-operations.md`. **2026-11-20:** 이 상태의 Electron 43 은 설치본을 만들 수 없었다 — better-sqlite3 12.8.0 은 Electron 43(ABI 148) 프리빌드가 없고 소스 빌드도 V8 API 변경으로 실패해 `v1.18.0` 빌드가 `fix-native-abi` 에서 멈췄다(미게시). better-sqlite3 13.2.0(Node-API 프리빌드 내장)으로 올리고 `fix-native-abi.mjs`/`verify-native-abi.mjs` 를 그 구조에 맞췄다: 데스크톱 2,933 테스트 GREEN, Electron 43.8.10 메인 프로세스에서 WAL·트랜잭션·FTS5 질의 확인. `npm run rebuild:test`/`rebuild:app` 은 더 이상 필요 없다. | --- ## 2. Mobile checklist roll-up (from `MOBILE_APP_COMPLETION_SSOT.md` §4) @@ -138,16 +142,16 @@ These are the mobile SSOT rows still `[ ]` / `[~]`. Do not duplicate the full te | Group | Open rows | Theme | |---|---|---| -| G (governance) | G-008..G-011; G-006/G-007 `[~]` | 2026-11-04 route/push contract typing and Talk logger improved; remaining type/error/identity consolidation, legacy bundle separation, credential rotation | +| G (governance) | G-011; G-006/G-007/G-010 `[~]` | G-008 재현 빌드와 G-009 entitlement SSOT는 해결. 남은 것은 타입/오류 정리, OAuth 운영 client 설정, credential rotation | | A (auth/account) | A-001..A-013, A-018; A-014..A-017 `[~]` | Session restore, signup, deep links, OAuth, profile, provider E2E | -| O (onboarding/a11y) | O-002..O-007, O-009, O-011; O-001 `[~]`, O-008/O-010/O-012 `[~]` | O-001 2026-11-01: `.2` Fold6 fresh auth/signup/small-screen PASS; latest `.3` fresh-auth/retry FAILED (onboarding visibility), 회귀 테스트 추가(`apps/mobile-rn/.maestro-output/fold6-20261101-fix1/`). 2026-11-04 current-source E2E upgrade/launch, inspected-route UIA labels/48dp, and AVD font-scale 2.0 + rotation/scroll passed. Remaining: permission journeys/tutorial, app-wide theme/a11y, manual TalkBack/focus order and SDK AdMob descendant, iOS, full-app ko/en audit ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)) | +| O (onboarding/a11y) | O-002..O-007, O-009, O-011; O-001 `[~]`, O-008/O-010/O-012 `[~]` | 2026-11-18 fresh auth/signup/invite, small-screen, authenticated parity를 포함한 공식 전체 게이트 PASS. 남은 것: permission journeys/tutorial, app-wide theme/a11y, TalkBack/focus order, iOS, 실기기 로케일 ([evidence](../evidence/2026-11-17-backlog-operations.md)) | | D (data/sync/offline) | D-001..D-014 | Schema/RLS, devices, cross-surface read/write, offline queue, conflict policy | -| R (record/transcribe) | R-001..R-009, R-011..R-015, R-017..R-020; R-016 `[x]` | Permissions, recorder, FGS, upload queue, job state, sharing | +| R (record/transcribe) | R-001..R-009, R-011..R-015, R-020; R-017..R-019 `[~]`; R-016 `[x]` | Permissions, recorder, FGS, upload queue, job state, sharing; 파일/원본 공유 코드·Jest는 GREEN이나 외부 대상 수신과 강제 재처리는 남음 | | H (history/meetings) | H-001..H-005, H-007..H-010, H-012, H-013, H-015; H-014/H-017 `[~]`; H-006/H-011/H-016 `[x]` | Pagination, filters, detail, meeting timeline/docs/speaker filter chips (`H-014` `[~]`)/cross-app | | F (feature parity) | F-003..F-010, F-013, F-014; F-001 `[~]`; F-002/F-011/F-012 `[x]` | Mobile Home dashboard subset, commands/actions/chat/conversation/knowledge | | T (teams/admin/notify) | T-001..T-005, T-009..T-012; T-006..T-008, T-013 `[x]` | Team CRUD/roles, push delivery/deep links, notification settings | | M (monetization) | M-025, M-027; M-013 `[~]` | Play Billing license test, Payple webhook signature | -| Q (quality/release) | Q-012..Q-014, Q-019, Q-020, Q-022, Q-026; Q-010/Q-011/Q-021/Q-023/Q-027/Q-028 `[~]` | Current-source Fold6/API 34 state-preserving install, cold launch, Notifications cards, and bounded crash/UIA/font-scale/rotation automation are GREEN. Remaining: OAuth/billing/full journey; manual TalkBack and permission/FCM transitions, app-wide visual coverage, iOS, env unification, production AAB ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)) | +| Q (quality/release) | Q-012..Q-014, Q-019, Q-022; Q-010/Q-011/Q-020/Q-021/Q-023/Q-026/Q-027/Q-028 `[~]` | Current-source Fold6/API 34 state-preserving install, cold launch, Notifications cards, bounded crash/UIA/font-scale/rotation 및 2026-11-18 공식 모바일 전체 게이트는 GREEN. Remaining: OAuth/billing/추가 실패 journey, manual TalkBack/FCM, app-wide visual/iOS, production AAB | --- @@ -162,7 +166,7 @@ These are the mobile SSOT rows still `[ ]` / `[~]`. Do not duplicate the full te | EXT-PLAY-03 | Production AAB + CI secret injection + recovery backups | Inject Firebase/AdMob/signing/evidence CI secrets | SSOT EXT-008 | | EXT-PLAY-04 | Closed test 0/12 members, 14 days; production access disabled | Run closed test, request production | SSOT EXT-010 | | EXT-OAUTH-01 | GitHub/Apple provider secrets; real mobile Google consent→callback | Configure providers, verify consent | SSOT EXT-001 | -| EXT-APPSIGN-01 | Live App Links still old certificate | Deploy updated `assetlinks.json`, re-verify live | SSOT App Links row | +| EXT-APPSIGN-01 | ~~Live App Links still old certificate~~ | `[x]` 2026-11-17: live `/.well-known/assetlinks.json` HTTP 200, package `com.d3ro.voice`와 Play app-signing SHA-256이 source와 정확히 일치 | SSOT App Links row | | EXT-PHYS-01 | Physical Fold6 share/OAuth/purchase and production-artifact evidence | Current-source E2E upgrade install/cold launch passed on 2026-11-04 without clearing data. Run real file share, OAuth, purchase/restore, and later the signed production artifact on device | SSOT EXT-009; [2026-11-04 evidence](../evidence/2026-11-04-mobile-runtime-a11y.md) | | EXT-PAY-01 | Payple live history + webhook signature verification | Provider contract + signature scheme | SSOT M-027 | | EXT-STRIPE-01 | ~~Production Stripe/Payple cross-verification~~ | **삭제됨 2026-09-26** — Stripe 제거. Payple 라이브 검증은 EXT-PAY-01 | SSOT M-013 | @@ -213,15 +217,15 @@ Actionable checklist for the work started this session. Fields to fill are blank **Push — server (code done, config pending)** - [ ] Set Supabase Edge secrets for the transports you deploy: `WEBPUSH_VAPID_PUBLIC_KEY`, `WEBPUSH_VAPID_PRIVATE_KEY`, `WEBPUSH_SUBJECT` (web); `APNS_KEY_ID`, `APNS_TEAM_ID`, `APNS_PRIVATE_KEY`, `APNS_TOPIC`, `APNS_ENVIRONMENT` (iOS); `FCM_SERVICE_ACCOUNT_JSON`, `FCM_PROJECT_ID` (Android). Bake the same public VAPID value into the web image as `NEXT_PUBLIC_VAPID_PUBLIC_KEY`; never expose the private key as `NEXT_PUBLIC_*`. -- [ ] Deploy the updated `send-push` (`supabase functions deploy send-push`). -- [ ] Generate a VAPID keypair (P-256) and store the private/public pair; subject must be `mailto:` or `https:`. +- [x] `send-push` was redeployed to production on 2026-11-17 after VAPID configuration. +- [x] 2026-11-17: P-256 VAPID pair generated; private key is in Supabase secrets, public key is `release/webpush-vapid-public.key`, subject is `https://d3ro.chanpaca.net`. - [ ] Create the APNs `.p8` key in the Apple Developer portal and record Key ID + Team ID. **Push — Cloudflare cron drain** -- [ ] Set worker vars: `SUPABASE_URL` (`wrangler secret`/`[vars]`) and batch limit. -- [ ] Set worker secret: `wrangler secret put SUPABASE_SERVICE_ROLE_KEY`. -- [ ] `wrangler deploy` from `server/cloudflare-worker` and confirm the `scheduled` runs (Cloudflare dashboard → Cron Triggers). -- [ ] Verify end-to-end: enqueue a test event (e.g. team invite) → drain → delivery row `delivered`. +- [x] 2026-11-17: Set worker `SUPABASE_URL` and default batch limit 20. +- [x] 2026-11-17: Set the current project secret through `wrangler secret put SUPABASE_SERVICE_ROLE_KEY`. +- [x] 2026-11-17: `wrangler deploy` 완료, 실제 scheduled run `claimed=1 completed=1 pending=0` 확인. +- [ ] Verify provider end-to-end: enqueue a test event → drain → real browser/device receipt. (Provider 키는 여전히 외부 게이트) **Push — clients** - [~] Web: production sidebar opt-in/out uses the packaged service worker, a stable active web device, `pushManager.subscribe`, device-bound RPCs, disabled-intent reconciliation, bounded local/server cleanup, and non-blocking logout. Isolated local provider acceptance is proven; production authenticated permission/subscription, rendered desktop/mobile accessibility/hit-target evidence, scheduled drain, and browser receipt remain open. (GAP-PUSH-03 — `apps/web/public/sw.js`, `apps/web/src/lib/{web-device,web-push,web-push-session}.ts`, `apps/web/src/components/layout/web-push-control.tsx`) @@ -319,4 +323,16 @@ Evidence: [2026-11-02 verification](../evidence/2026-11-02-verification.md). - **Desktop Shell (`fc5d453`, `3f9e412`):** `WindowManager` 팝업 숨김 타이머/커서 초기화, `CaptionService` 보조모델/중복 stop/epoch 리셋, `VoiceModeService`/`LlmGateway`/`LocalLLMService` signal 전파 및 `/api/pull` dispose `D3ROError(LLM_ERROR)` 래핑, `LocalSTTService` 모델 다운로드 dispose `D3ROError(STTModelDownloadCancelled)` 래핑, `VoiceConversationService`/`AudioCaptureService`/`caption-handlers.ts` fail-closed 정리(`@d3ro/desktop` Vitest **212 files / 2,890 tests PASS**, Python sidecar `33/33 PASS`, `electron-vite build` + `check:desktop-renderer` **7 page(s)** PASS). - **Mobile RN (`bd3c1a9`, `cc3f746`):** 레코더 claim/generation/pollTimer, 내구성 큐 `finishCleanupItem(item)`(파일 선삭제+60초 실패 재시도) 및 `suspendedUsers`/`discardedItems`, `chat`/`admin`/`device`/`llm-stream` abort/세대 헤더 가드, 4개 컨텍스트 및 7개 화면 `scopeGenerationRef`+`try/catch/finally` 적용 + 신규 스위트 5종(**103 suites / 651 tests PASS**). - **Cloud Surfaces (`c68e81e`, `4bf0f0d`):** Cloudflare Worker `BACKEND_ORIGIN` `https://d3ro.chanpaca.net`·`origin-policy.ts`·`push-drain.ts`(`Deno 15/15`), `cloudflare-site-bridge` loop/path 가드(`Deno 5/5`), `.NET` `EndpointUrlPolicy.cs`+`"UpstreamNoRedirect"`(`xUnit 55/55`), Edge `stt-proxy` 413 선차단·`embed-chunks` 환불 경계·`_shared/quota.ts` fail-closed(`Deno 273/273`), Web `edge-fetch.ts`·`safeReturnPath`·`sw.js`·OAuth callback·`chat-panel`/`auth-provider`/`mic-recorder`(`10 files / 52 tests PASS`), Admin `admin-url-safety.ts`·`proxy.ts`·Vitest 도입(`1 file / 6 tests PASS`). - - **유지된 경계 (`[~]` / `[!]` / `RED`):** Wave 7 코드는 `v1.17.1` 운영 배포(`6c6875b`) 이후 `main`에 통합되었으므로 실운영 바이너리·컨테이너 및 라이브 Worker(`fe6d9532-...`, 대시보드 `BACKEND_ORIGIN = http://192.168.0.39:5050` 잔존 -> `1003`/`403`)에는 아직 미반영. Electron 실GUI(`GAP-INPUT-08/09/10/11`), Fold6/iOS 실기기/TalkBack, `EXT-*` 스토어 게이트는 변동 없이 유지. 상세: [`docs/REFACTOR_WAVE7_REPORT.md`](../REFACTOR_WAVE7_REPORT.md). + - **2026-11-17 운영 반영:** NAS API/Admin/Web을 Wave 7 이미지로 재빌드·교체했고 공개 `/health`, `/app/login`, admin login이 모두 200이다. Worker `b9e68793-...`·Site Bridge `cca39627-...`도 배포돼 기존 사설 IP `1003/403`을 해소했다. **남은 경계:** 데스크톱 설치본은 아직 `v1.17.1`이며 Electron 실GUI(`GAP-INPUT-08/09/10/11`), Fold6/iOS 실기기/TalkBack, `EXT-*` 스토어 게이트는 남는다. 상세: [`docs/REFACTOR_WAVE7_REPORT.md`](../REFACTOR_WAVE7_REPORT.md). + +--- + +## 2026-11-17 — 백로그 실행 및 운영 검증 + +- `[x]` **Wave 7 운영 반영:** NAS API/Admin/Web, Cloudflare Worker, Site Bridge를 재배포하고 공개 health/login 경로를 HTTP 200으로 확인했다. +- `[x]` **Push drain:** 현재 프로젝트 secret과 Bearer + `apikey` 계약을 수정하고 실제 scheduled 성공을 확인했다. Web Push는 실제 구독과 `delivered`까지 확인했으나 알림 표시는 미검증이다. +- `[x]` **audio-purge:** 운영 Vault/pg_cron/pg_net/Storage의 실제 객체·queue 삭제를 검증했다. +- `[x]` **모바일 검증 도구:** 로컬 E2E cleartext 명시 예외, Supabase CLI 3.2.0 고정, 다중 기기 `--udid` 고정, 작은 화면 스크롤·키보드 경합 보정을 추가했다. 현재 소스 APK의 fresh auth/signup/invite와 small-screen 개별 실행은 PASS다. +- `[~]` **외부 경계 유지:** Forgejo API 토큰 401, Firebase/Play/AdMob/OAuth/Payple/APNs, 데스크톱 실GUI, Fold6/iOS, SmartScreen 인증서는 외부 조치가 필요하다. + +증거: [`docs/evidence/2026-11-17-backlog-operations.md`](../evidence/2026-11-17-backlog-operations.md). diff --git a/docs/v3/MOBILE_APP_COMPLETION_SSOT.md b/docs/v3/MOBILE_APP_COMPLETION_SSOT.md index da0ad5fc..b8bed4e5 100644 --- a/docs/v3/MOBILE_APP_COMPLETION_SSOT.md +++ b/docs/v3/MOBILE_APP_COMPLETION_SSOT.md @@ -25,7 +25,7 @@ | App Signing | Play SHA-256 `01:00:19:21:DB:4F:33:40:85:CE:21:E4:B8:DE:CC:BD:71:DA:87:67:C5:6E:3B:59:83:2A:A1:C8:29:EA:0D:AB` | Play identity 확인; upload certificate 대조는 첫 AAB 후 | | upload key | external PKCS12·user-only ACL·Credential Manager·private-key readback GREEN; SHA-256 `4F:AC:69:24:...:15:2B:54` | local key GREEN; CI secret·복구 백업·AAB signer/Console 대조는 RED | | release evidence key | Ed25519 external private/public pair roundtrip GREEN; public SSOT·keyId `2797d3e6...4a890b7f` | local pair GREEN; CI private-key secret·복구 백업·실제 signed evidence는 RED | -| App Links | source `assetlinks.json` 3개는 Play SHA-256으로 갱신 | live는 구 certificate라 배포·public 재검증 전까지 RED | +| App Links | source/live `assetlinks.json`이 Play SHA-256과 일치 | 2026-11-17 live HTTP 200·정확한 package/fingerprint 확인 GREEN | | Firebase | Console `u/0`, `u/1` 모두 D3RO project 없음 | 사용자 승인 후 project·Android app 생성 필요; RED | | AdMob | App/Banner/Rewarded ID·SSV SSOT 확정 | `검토 필요`·`광고 게재 제한`·store 미연결·결제 프로필 미완료; RED | | production inputs | production Firebase config·AdMob/upload/evidence CI secret 주입 증거·AAB 없음 | RED | @@ -133,9 +133,9 @@ - [x] G-005 하드코딩된 release signing 자격 증명을 로컬/CI secret 주입으로 이동 - [~] G-006 공용 API·DB 타입을 `packages/api-client`에서 소비하고 화면별 임시 타입 제거 — 2026-11-04: push token/provider와 register/unregister RPC·quota period 계약을 공용 타입에 맞추고, 11개 화면의 `useNavigation`/`useRoute`를 `RootStackParamList`로 교체했다. 프로필 등 화면별 임시 DB DTO와 나머지 feature-local 계약은 계속 정리해야 한다. - [~] G-007 오류 코드·사용자 메시지·관찰 가능 로그를 공용 규약으로 통일 — 2026-11-04: `TalkScreen`의 직접 `console.warn`을 공용 `createLogger('Talk')`로 전환했다. 앱 전체 오류 코드·번역 메시지·구조화 로그 계약 감사와 통합은 남아 있다. -- [ ] G-008 legacy bundle/APK 생성물을 소스 변경과 분리하고 재현 가능한 build script 확정 -- [ ] G-009 Supabase Auth/profile/subscription을 단일 사용자·entitlement SSOT로 확정하고 .NET 계정은 제거 또는 명시적 매핑 -- [ ] G-010 Android application ID, iOS bundle ID, OAuth client, 딥링크 scheme을 하나의 제품 식별자로 통일 +- [x] G-008 legacy bundle/APK 생성물을 소스 변경과 분리하고 재현 가능한 build script 확정 — 2026-11-17 `build-mobile-local-e2e.ps1`이 `npx --yes supabase@3.2.0`으로 CLI를 고정하고, 출력 APK를 `scratch/mobile-e2e`에 분리한다. 현재 소스 `1.17.1-e2e.20261117.1` / `1170101` 빌드·서명·dual-ABI·bundle·model 검증 GREEN (`docs/evidence/2026-11-17-backlog-operations.md`). +- [x] G-009 Supabase Auth/profile/subscription을 단일 사용자·entitlement SSOT로 확정하고 .NET 계정은 제거 또는 명시적 매핑 — `@d3ro/core/entitlement`의 `resolveEntitlement`를 Web/Mobile/Desktop이 사용하고 .NET은 별도 계정 원본이 아닌 명시적 레거시/엔터프라이즈 매핑으로 유지한다(`docs/map/11` GAP-ID-01/02) +- [~] G-010 Android application ID, iOS bundle ID, OAuth client, 딥링크 scheme을 하나의 제품 식별자로 통일 — 2026-11-18 Android/iOS `com.d3ro.voice`, auth/invite `d3ro-voice`로 통일하고 `verify-mobile-build-config.mjs` 음성 자체 검사 GREEN. 운영 OAuth client/consent는 EXT-OAUTH-01에 남는다. - [ ] G-011 노출된 signing/Forgejo/OAuth/JWT 자격 증명을 폐기·회전하고 CI secret으로 이동 - [x] G-012 .NET 고정 관리자 seed·정적 salt SHA-256 비밀번호·fallback JWT secret 제거 @@ -162,7 +162,7 @@ ### O — 온보딩·튜토리얼·테마·접근성 -- [~] O-001 첫 실행 welcome과 기존 사용자/신규 사용자 분기 — 2026-11-01 `.2` Fold6 fresh auth/signup/small-screen PASS; 이후 `.3` Fold6 fresh-auth와 retry는 onboarding visibility 실패. 동일 `.3` APK는 새 격리 API 34 AVD에서 canonical auth 37초 / signup 50초 PASS(재시작 유지 포함). Fold6 실패는 별도로 남아 있다. 신규 사용자 목적지 준비 순서 회귀 테스트: `apps/mobile-rn/__tests__/onboarding-fresh-route.test.tsx`; 현재 증거: `test-results/recovery-2026-11-01/emulator-*.junit.xml` +- [~] O-001 첫 실행 welcome과 기존 사용자/신규 사용자 분기 — 2026-11-01 `.2` Fold6 fresh auth/signup/small-screen PASS; 이후 `.3` Fold6 fresh-auth와 retry는 onboarding visibility 실패. 동일 `.3` APK는 새 격리 API 34 AVD에서 canonical auth 37초 / signup 50초 PASS(재시작 유지 포함). **2026-11-18 `1.17.1-e2e.20261118.3`:** `emulator-5582`에서 fresh auth/signup/invite, 840x1490 small-screen 및 authenticated parity를 포함한 공식 전체 게이트 PASS. `record-cancel`·Account·More 스크롤 문제를 해소했고 Fold6/iOS 실기기는 남는다. 증거: `docs/evidence/2026-11-17-backlog-operations.md`. 신규 사용자 목적지 준비 순서 회귀 테스트: `apps/mobile-rn/__tests__/onboarding-fresh-route.test.tsx` - [ ] O-002 로그인 전 개인정보·클라우드 처리·녹음 권한 설명 - [ ] O-003 마이크 권한 요청/거부/다시 묻지 않음/설정 이동 - [ ] O-004 알림 권한은 가치 설명 뒤 요청하고 거부 시 기능 저하 안내 @@ -173,7 +173,7 @@ - [ ] O-009 테마·언어·햅틱·자동 교정·STT 옵션 저장 및 기기간 동기화 - [~] O-010 글자 확대, TalkBack label/role, focus order, 48dp 터치 영역, 색 대비 검증 — touched controls/ScreenHeader 48dp와 theme contrast source tests GREEN. 2026-11-04 physical Home/API 34 Login의 inspected app-owned action label·48dp와 AVD font scale 2.0 portrait/landscape scroll는 자동 검사 GREEN. AdMob SDK WebView 한 개는 clickable label이 UIA에 노출되지 않았고, 실제 TalkBack announcement/activation·focus order·앱 전체 경로·iOS는 대기 ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)) - [ ] O-011 reduced motion과 애니메이션 비활성 경로 -- [~] O-012 한국어/영어 및 12개 로케일 번역 정합성·하드코딩 문자열 제거 — **2026-11-13 (`GAP-I18N-03`):** 12개 카탈로그 `2,500`키 정합성(`check:i18n`·`locale-contract.test.ts` 15/15 PASS) 고정 및 `index.native.tsx` 12개 로케일 로더 + `Onboarding`/`Settings`/`Account` 12개 언어 선택기 + Android 12개 `localeFilters` 반영(`mobile-i18n-locales.test.tsx` PASS); 실기기 비-한/영 로케일 화면 눈 확인 대기 +- [~] O-012 한국어/영어 및 12개 로케일 번역 정합성·하드코딩 문자열 제거 — **2026-11-13 (`GAP-I18N-03`):** 12개 카탈로그 `2,502`키 정합성(2026-11-18 기록 공유 라벨 포함)(`check:i18n`·`locale-contract.test.ts` 15/15 PASS) 고정 및 `index.native.tsx` 12개 로케일 로더 + `Onboarding`/`Settings`/`Account` 12개 언어 선택기 + Android 12개 `localeFilters` 반영(`mobile-i18n-locales.test.tsx` PASS); 실기기 비-한/영 로케일 화면 눈 확인 대기 ### D — 데이터 가져오기·동기화·오프라인 @@ -210,9 +210,9 @@ - [ ] R-014 `content://`, cloud provider, 한글/공백 파일명, MIME 불일치 안전 처리 - [ ] R-015 대용량 파일 크기·시간 제한, 청크 업로드, 진행률, 취소, 재개 - [x] R-016 다른 앱 공유 시트 `ACTION_SEND`/`ACTION_VIEW` 오디오·비디오 수신 — native instrumentation 3/3와 별도 UID Android ContentProvider APK의 실제 `ACTION_SEND`→Record→durable queue→cancel cleanup E2E GREEN -- [ ] R-017 transcript/요약/회의록을 텍스트·Markdown·파일로 공유 -- [ ] R-018 원본 오디오 공유는 사용자가 명시 선택한 경우에만 임시 URI 권한으로 제공 -- [ ] R-019 전사 결과 복사·편집·저장·재처리·삭제 +- [~] R-017 transcript/요약/회의록을 텍스트·Markdown·파일로 공유 — 2026-11-18 기존 텍스트/회의 문서 공유에 `history-share.ts`의 TXT/Markdown 파일 생성과 HistoryDetail 버튼을 추가. `history-share.test.ts` 5개 + 화면 버튼 테스트 GREEN; 외부 대상 앱의 실제 수신은 별도 게이트 +- [~] R-018 원본 오디오 공유는 사용자가 명시 선택한 경우에만 임시 URI 권한으로 제공 — 별도 버튼→신선한 signed URL→50 MiB/MIME/empty 검사→기존 FileProvider 임시 읽기 권한을 연결. 실패 시 파일 정리와 언마운트 RED→GREEN 테스트 완료; 실제 대상 앱 수신은 미검증 +- [~] R-019 전사 결과 복사·편집·저장·재처리·삭제 — HistoryDetail의 selectable 복사·revision-safe 편집/저장/삭제는 기존 구현·테스트 사용. 완료된 동일 오디오를 durable queue가 중복 제거하므로 강제 재처리 경로는 아직 연결하지 않았다. - [ ] R-020 녹음/파일 전사 정상·실패·취소·오프라인·재시작 E2E - [x] R-021 Supabase/.NET STT provider 전체 실패 시 합성 transcript 성공을 제거하고 fail-closed — 502/503만 반환, 합성 성공 경로 0, Deno/.NET 계약 테스트 GREEN - [x] R-022 .NET STT endpoint 인증·사용자 quota를 강제하고 익명 user fallback 제거 — 사용자 경로는 Supabase JWT+원자 quota SSOT, .NET provider endpoint는 32-byte service token 전용. anonymous 401, direct authenticated legacy 410, exact internal token만 provider orchestration @@ -323,13 +323,13 @@ - [x] Q-017 Web seeded 데이터→모바일 조회/편집→Web 확인 sync E2E - [x] Q-018 Free banner/rewarded test ad와 Pro 광고 미요청 E2E — official Google test ad 실측, ordinary Free 광고 노출과 manager/admin Pro 광고 비노출·미요청 API 34 PASS - [ ] Q-019 Play Billing test purchase/restore/manage E2E -- [ ] Q-020 모든 탭·설정·팀·관리·실패 복구 journey E2E — v4 4탭/FAB/More/통합 검색의 320dp dark·411dp light 부분 journey만 GREEN; 전체 범위를 대신하지 않음 +- [~] Q-020 모든 탭·설정·팀·관리·실패 복구 journey E2E — 2026-11-18 공식 authenticated parity가 Account/Paywall/Devices/Meetings/Templates/Memos/Teams/Notifications/Data portability/Dictionary/Commands/Knowledge/Actions까지 PASS. 관리자·Play/OAuth·실제 provider 실패 경로는 전체 범위를 대신하지 않음 - [~] Q-021 회전·폰트 확대·TalkBack·dark/light·작은/큰 화면 visual gate — v4 journey의 320dp dark·411dp light와 2026-11-04 API 34 Login font scale 2.0 portrait/landscape scroll는 GREEN. 후자는 자동 AVD route proof이며 physical TalkBack/focus order, app-wide 확대/회전, SDK ad, iOS는 대기 - [ ] Q-022 airplane mode·process kill·token expiry·server 5xx·중복 tap 회복 E2E - [~] Q-023 앱 로그 crash/ANR/React error/민감정보 0건 확인 — exact `.9` auth/signup/invite/small-screen 및 admin role journeys에서 fatal/ANR/React fatal 0. 2026-11-04 current-source Fold6/API 34 cold launch 뒤 bounded recent logcat도 crash/React fatal signature 0; 장시간 ANR·production provider journey·민감정보 로그 감사는 대기 - [x] Q-024 APK package/version/signature/SHA-256와 설치된 앱 버전 증거 — 2026-11-04 E2E `1.16.1-e2e.20261104.1` / `2026110401`, SHA-256 `3d2875c7…cf7c`, verifier 및 Fold6/API 34 installed identity 일치. Production artifact 증거로 재사용하지 않음 - [x] Q-025 최종 증거 표에 명령·결과·artifact·스크린샷/영상 경로 기록 -- [ ] Q-026 Node 24 LTS/JDK 17/Gradle 환경을 로컬·CI에서 통일 +- [~] Q-026 Node 24 LTS/JDK 17/Gradle 환경을 로컬·CI에서 통일 — `.nvmrc` 24.19.0, root/mobile `engines.node=24.x`, Docker/CI Node 24.19.0·JDK 17 정합. 실제 검증은 기본 Node 23 셸과 분리한 Node 24.19.0으로 실행; 사용자의 전역 기본 Node 전환은 별도 조치 - [~] Q-027 debug x86_64+arm64, release arm64 APK/AAB ABI 정책과 에뮬레이터 호환성 검증 — universal E2E APK 정책 GREEN, 실제 production arm64 APK/AAB CI 검증 대기 - [~] Q-028 공식 배포가 `assembleRelease` 비-debuggable artifact만 허용하도록 fail-closed — signed evidence·hash/version/package/cert/prod AdMob·create-only 경계와 negative self-test GREEN, 실제 production AAB/CI/secrets 대기 @@ -384,7 +384,7 @@ | Public Forgejo distribution | 최신 E2E TEST-DEMO 고유 asset upload + anonymous redownload hash 대조 | PENDING; `.11` SHA-256 `74035B69…380C2B` 공개 업로드·anonymous redownload 검증은 수행하지 않음 | Forgejo release asset | 2026-08-21 | | Mobile release boundary | `npm run release:mobile:boundary:test` + source-contract/security/syntax/YAML checks | GREEN; release mode·expected version/package/cert/prod AdMob·Ed25519 signed evidence와 artifact hash 일치, immutable snapshot, hardlink/reparse/path-swap/static APK 우회·overwrite·test AdMob/debug signer/nonrelease 거부를 검증. 실제 production APK/AAB에는 아직 실행하지 않음 | `scripts/ci/mobile-release-evidence-lib.mjs`, `scripts/ci/verify-mobile-release-boundary.mjs`, `.github/workflows/release.yml` | 2026-08-21 | | Production Android release gate | release/config/artifact/provenance self-tests + Play/Firebase/AdMob live 재확인 | release identity `1.2.0`/`1020001`, Play app ID `4976102237698469110`, package `com.d3ro.voice`, app-signing SHA-256, local upload/evidence key, AdMob identity를 확인했다. Play는 `임시`, 설정 0/11, AAB 0건, closed tester 0/12명, production access disabled다. Firebase project·CI secret 주입·AAB가 없으므로 현재 판정은 RED다 | `release/product-version.json`, `release/android-release-identity.json`, `scripts/ci/verify-mobile-release-config.mjs`, `scripts/ci/verify-android-artifact.mjs`, live consoles | 2026-08-29 | -| App Links release identity | source/live exact certificate 대조 | `site/public`, `apps/web/public`, `apps/api-server/wwwroot`의 source 3개는 Play app-signing SHA-256으로 갱신. live는 아직 폐기된 과거 certificate를 반환하므로 deploy·public 재검증 전까지 RED. **2026-09-26 Wave 3 갱신(cd9d199):** `apps/web/public`과 `apps/api-server/wwwroot` 사본은 삭제됐고, `site/public`이 유일한 source가 됐다(`scripts/ci/verify-android-app-links.mjs`도 `site/public`만 검사) — live 재검증 필요성은 그대로다 | `site/public/.well-known/assetlinks.json`, `scripts/ci/verify-android-app-links.mjs`, live `d3ro.chanpaca.net` | 2026-08-29 | +| App Links release identity | source/live exact certificate 대조 | **2026-11-17 GREEN:** `site/public/.well-known/assetlinks.json`이 유일한 source이고 live `https://d3ro.chanpaca.net/.well-known/assetlinks.json`이 HTTP 200으로 package `com.d3ro.voice`와 Play app-signing SHA-256 `01:00:19:21:...:AB`를 정확히 반환한다 | `site/public/.well-known/assetlinks.json`, `scripts/ci/verify-android-app-links.mjs`, live `d3ro.chanpaca.net` | 2026-11-17 | | Public legal and deletion resources | scoped NAS host/container deploy + anonymous HTTPS render | 개인정보처리방침, 이용약관, 앱 외부 계정 삭제 요청 경로를 기존 사이트 전체와 분리해 배포했다. host와 running container 4개 파일 SHA 일치; `/privacy/`, `/terms/`, `/delete-account/` 모두 외부 HTTPS 200·정확한 title, privacy→deletion 링크 visible. 실서버 본문 운영자는 `YUN CHAN`, Cloudflare email-protection 복호화 연락처는 `yunchan8804@gmail.com`, `TWENTYOZ` 잔존은 0건이다. Google Play 정책상 필요한 앱 식별·개발자 문의·수집/공유·보관/삭제·외부 삭제 요청 경로를 포함하고 모바일 Settings/Paywall에도 canonical link를 노출 | `site/public/legal.css`, `site/public/privacy/index.html`, `site/public/terms/index.html`, `site/public/delete-account/index.html`, `apps/mobile-rn/src/screens/SettingsScreen.tsx`, live `d3ro.chanpaca.net` | 2026-08-21 | | Android upload signing identity | create-only 3072-bit RSA PKCS12 + Windows credential vault + certificate readback | 2026-08-21에 생성한 local upload-key 후보 SHA-256은 `4F:AC:69:24:82:1C:50:DA:AB:ED:76:49:32:A5:3C:48:6F:8C:6C:5F:34:B9:F1:8D:B9:20:AA:40:99:15:2B:54`다. 다만 production CI secret·오프라인 복구 백업·실제 AAB signer 증거는 없다. Play Console upload certificate는 첫 AAB 업로드 후 표시되며, 현재 확인한 Play app-signing SHA-256과 분리해 대조해야 한다 | `release/android-release-identity.json`, `scripts/gen-keystore.js`, Windows Credential Manager | 2026-08-29 | | Release evidence signing identity | Ed25519 keypair creation + public-key fingerprint + sign/verify roundtrip | private key는 `C:\Users\encep\.d3ro\release\d3ro-mobile-evidence-ed25519-private.pem` user-only ACL, public key는 `release/mobile-release-evidence-public.pem`이다. keyId `2797d3e63affd2348941bc2871b57e520c958f7f5da1a4bbe8aa46904a890b7f`, pair/roundtrip GREEN. CI private-key secret·오프라인 복구 백업·실제 signed evidence는 대기 | `release/mobile-release-evidence-public.pem`, `release/android-release-identity.json`, `scripts/ci/verify-release-evidence-key-pair.mjs` | 2026-08-29 | diff --git a/memory/project_status.md b/memory/project_status.md index 37aefc28..1abd1ce8 100644 --- a/memory/project_status.md +++ b/memory/project_status.md @@ -1,5 +1,18 @@ # D3RO-VOICE 프로젝트 현황 +## 화면 글자 읽기(OCR) 오버레이 — CAP-17 (2026-11-20, 구현·검증 완료 / 미커밋·미배포) + +- 요청: 단축키로 화면을 캡처해 덮고, 그 위 글자를 사각형/일반 끌기로 고르기 + PDF 저장 등 부가 기능. +- 구현: `screen-ocr` 재바인딩 액션(기본 `Ctrl+Alt+O`) → 커서가 있는 모니터를 GDI 로 캡처(`utils/win32-screen-capture.ts`) → `screen-ocr` 팝업(포커스 받는 유일한 팝업, 2단계 표시)이 화면을 덮음 → Windows 내장 OCR(`services/screen-ocr/windows-ocr-engine.ts`, powershell.exe -EncodedCommand, 2배 확대) 결과로 단어 상자 선택. +- 선택: 단어에서 끌면 글 흐름, 빈 곳에서 끌면 사각형(영역 모드는 항상 사각형), 더블클릭 단어, 세 번 클릭 줄, Shift+클릭 이어 고르기, Ctrl+A. +- 동작: 복사 / 한 줄 복사 / 이미지 복사 / PNG 저장 / 검색 가능한 PDF(그림 아래 글자 층) / 번역·요약(LlmGateway) / 읽어 주기(TTS) / 링크 열기·웹 검색 / 인식 언어 변경(`screenOcrLanguage`). +- 정본: 순수 로직 `packages/core/src/screen-ocr.ts`, 서비스 `ScreenOcrService.ts`(포트 주입), 조립 `screen-ocr-wiring.ts`, 창 `windows/screen-ocr-overlay.ts`, 문구 41키 × 12로케일. +- 실측: desktopCapturer 는 모니터 3대에서 2.9초(DXGI 500ms 대기 × 모니터) → GDI BitBlt 39ms 로 교체(폴백으로만 남김). 실제 화면 2560×1440 인식 0.76초(프로세스 포함 1.2초). +- 검증: core 34 + 데스크톱 42 신규 테스트, 데스크톱 전체 214 files / 2,933 GREEN(Node 24.19.0), workspace typecheck·lint·hygiene·design·i18n·contract GREEN, 실엔진 프로브, 헤드리스 Electron 43 에서 오버레이(흐름/사각형 선택·복사·번역·PDF 요청·닫힘 정리) + 인쇄한 PDF 글자 층 검색 확인. +- **남은 것:** 실행 중인 앱에서 단축키→포커스→선택 실사용 확인(`GAP-OCR-01`, 그래서 카탈로그는 `[~]`), macOS 엔진 없음(`GAP-OCR-02`, fail-closed 안내). +- **릴리스:** `v1.18.0` 은 설치본 빌드에서 멈춰 미게시(로컬 태그만 있음) — 기존 Electron 43 업그레이드가 better-sqlite3 12.8.0(ABI 148 프리빌드 없음·소스 빌드 실패)과 맞지 않았다. better-sqlite3 13.2.0(Node-API)으로 올리고 ABI 스크립트를 고쳐 `1.18.1` 로 다시 냈다. Node-API 라 Node/Electron 이 같은 바이너리를 쓰므로 `rebuild:test`/`rebuild:app` 은 불필요. +- 함정: 기본 셸 Node 는 23 — 테스트는 `PATH="$APPDATA/npm:$PATH"`(Node 24.19.0, better-sqlite3 ABI 137)로 돌려야 한다. 한국어 OCR 팩만 있으면 작은 영문 UI 글자를 가끔 오독한다(영어 언어 팩 설치 시 오버레이에서 언어 전환 가능). + ## 학습 어휘를 회의록 전사 교열에 연결 (2026-11-05) - 사용자 보고: "키보드로 치는 건 다 학습하는데 회의록 전사에 활용을 못 한다, 전사가 엉망". diff --git a/package-lock.json b/package-lock.json index f3a8eee5..cd665920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "d3ro-voice-monorepo", - "version": "1.17.1", + "version": "1.18.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "d3ro-voice-monorepo", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "workspaces": [ "apps/desktop", @@ -17,15 +17,20 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", + "electron": "43.8.10", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "prettier": "^3.3.0", - "typescript": "^5.7.0" + "typescript": "^5.7.0", + "vitest": "^5.1.0" + }, + "engines": { + "node": "24.x" } }, "apps/admin": { "name": "@d3ro/admin", - "version": "1.17.1", + "version": "1.18.4", "dependencies": { "@d3ro/api-client": "*", "@d3ro/core": "*", @@ -39,19 +44,37 @@ "@supabase/ssr": "^0.10.0", "@supabase/supabase-js": "^2.103.0", "lucide-react": "^1.33.0", - "next": "16.3.1", + "next": "16.4.6", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0" + "@types/react-dom": "^19.0.0", + "vitest": "^5.1.0" } }, + "apps/admin/node_modules/@types/node": { + "version": "24.0.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.0.tgz", + "integrity": "sha512-yZQa2zm87aRVcqDyH5+4Hv9KYgSdgwX1rFnGvpbzMaC7YAljmhBET93TPiTd3ObwTL+gSpIzPKg5BqVxdCvxKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.8.0" + } + }, + "apps/admin/node_modules/undici-types": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "dev": true, + "license": "MIT" + }, "apps/desktop": { "name": "@d3ro/desktop", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "@d3ro/core": "*", @@ -64,7 +87,7 @@ "@mui/material": "^7.0.0", "@nut-tree-fork/nut-js": "^4.2.6", "@supabase/supabase-js": "^2.45.0", - "better-sqlite3": "^12.8.0", + "better-sqlite3": "^13.2.0", "docx": "^9.6.1", "drizzle-orm": "^0.45.2", "electron-log": "^5.2.0", @@ -86,24 +109,118 @@ "@electron-toolkit/tsconfig": "^1.0.1", "@playwright/test": "^1.62.1", "@types/better-sqlite3": "^7.6.13", - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@types/ws": "^8.18.1", - "@vitejs/plugin-react": "^4.3.0", - "electron": "33.4.11", + "@vitejs/plugin-react": "^6.3.0", + "electron": "43.8.10", "electron-builder": "^26.8.1", - "electron-vite": "^2.3.0", - "vite": "^5.4.0", - "vitest": "^2.1.0" + "electron-vite": "^6.0.0", + "vite": "^8.3.8", + "vitest": "^5.1.0" }, "optionalDependencies": { "@rollup/rollup-win32-x64-msvc": "^4.60.1" } }, + "apps/desktop/node_modules/@rolldown/pluginutils": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz", + "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==", + "dev": true, + "license": "MIT" + }, + "apps/desktop/node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "apps/desktop/node_modules/@vitejs/plugin-react": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.3.0.tgz", + "integrity": "sha512-H9E955aVvD2F4zNHCw4eIZbIfF6xKldlh7MNu+hSU7xwQzh65lI/N+CJWqmfhi0PEjDXIt/H7T7J/4wU63KJiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": ">=0.152.0 <0.157.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "apps/desktop/node_modules/cac": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cac/-/cac-7.1.0.tgz", + "integrity": "sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.19.0" + } + }, + "apps/desktop/node_modules/electron-vite": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/electron-vite/-/electron-vite-6.0.0.tgz", + "integrity": "sha512-zafg2uizgll7jdx0BNDkkzO/SowsUBsiHqYN3v9Ieq7XPDHreRGZ4G9IRY/+RslgBktpLOjLM4jlP+IVpV0BGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.7", + "@babel/plugin-transform-arrow-functions": "^7.29.7", + "cac": "^7.0.0", + "magic-string": "^1.4.2", + "picocolors": "^1.1.1", + "rolldown": "~1.2.10" + }, + "bin": { + "electron-vite": "bin/electron-vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@swc/core": "^1.0.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + } + } + }, + "apps/desktop/node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "dev": true, + "license": "MIT" + }, "apps/web": { "name": "@d3ro/web", - "version": "1.17.1", + "version": "1.18.4", "dependencies": { "@d3ro/api-client": "*", "@d3ro/core": "*", @@ -118,8 +235,8 @@ "@supabase/ssr": "^0.10.0", "@supabase/supabase-js": "^2.103.0", "lucide-react": "^1.33.0", - "mermaid": "^11.14.0", - "next": "16.3.1", + "mermaid": "^12.3.0", + "next": "16.4.6", "react": "^19.0.0", "react-dom": "^19.0.0", "react-markdown": "^10.1.0", @@ -127,12 +244,29 @@ }, "devDependencies": { "@playwright/test": "^1.62.1", - "@types/node": "^22.13.0", + "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", - "vitest": "^2.1.0" + "vitest": "^5.1.0" } }, + "apps/web/node_modules/@types/node": { + "version": "24.0.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.0.tgz", + "integrity": "sha512-yZQa2zm87aRVcqDyH5+4Hv9KYgSdgwX1rFnGvpbzMaC7YAljmhBET93TPiTd3ObwTL+gSpIzPKg5BqVxdCvxKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.8.0" + } + }, + "apps/web/node_modules/undici-types": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "dev": true, + "license": "MIT" + }, "node_modules/@antfu/install-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz", @@ -146,15 +280,6 @@ "url": "https://github.com/sponsors/antfu" } }, - "node_modules/@antfu/install-pkg/node_modules/tinyexec": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.1.1.tgz", - "integrity": "sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, "node_modules/@babel/code-frame": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", @@ -179,20 +304,20 @@ } }, "node_modules/@babel/core": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", - "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.13.tgz", + "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.29.0", - "@babel/generator": "^7.29.0", - "@babel/helper-compilation-targets": "^7.28.6", - "@babel/helper-module-transforms": "^7.28.6", - "@babel/helpers": "^7.28.6", - "@babel/parser": "^7.29.0", - "@babel/template": "^7.28.6", - "@babel/traverse": "^7.29.0", - "@babel/types": "^7.29.0", + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.13", + "@babel/helper-compilation-targets": "^7.29.13", + "@babel/helper-module-transforms": "^7.29.13", + "@babel/helpers": "^7.29.13", + "@babel/parser": "^7.29.13", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.13", + "@babel/types": "^7.29.11", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", @@ -224,13 +349,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.14.tgz", + "integrity": "sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", + "@babel/parser": "^7.29.14", + "@babel/types": "^7.29.14", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -240,9 +365,9 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz", + "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==", "license": "MIT", "dependencies": { "@babel/compat-data": "^7.29.7", @@ -256,9 +381,9 @@ } }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -287,14 +412,14 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz", + "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==", "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" + "@babel/traverse": "^7.29.14" }, "engines": { "node": ">=6.9.0" @@ -314,9 +439,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", + "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -341,25 +466,25 @@ } }, "node_modules/@babel/helpers": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", - "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.14.tgz", + "integrity": "sha512-6E3Mi1r0B0umq6vmZa4/78q+64fqO2YY0THUdjDPKUCKhNb0yQy5NQIaPHCSD3ryTgiTss//P4JsWS80AsZ6LQ==", "license": "MIT", "dependencies": { - "@babel/template": "^7.28.6", - "@babel/types": "^7.29.0" + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.14" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", + "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", "license": "MIT", "dependencies": { - "@babel/types": "^7.29.8" + "@babel/types": "^7.29.14" }, "bin": { "parser": "bin/babel-parser.js" @@ -384,38 +509,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", - "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", - "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/runtime": { "version": "7.29.2", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", @@ -440,17 +533,17 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", - "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.14.tgz", + "integrity": "sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", + "@babel/generator": "^7.29.14", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.8", + "@babel/parser": "^7.29.14", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", + "@babel/types": "^7.29.14", "debug": "^4.3.1" }, "engines": { @@ -458,12 +551,12 @@ } }, "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", + "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-string-parser": "^7.29.14", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -476,10 +569,41 @@ "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", "license": "MIT" }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-13.2.0.tgz", + "integrity": "sha512-bA9dvWlhAUcHkNwU+8w9yiUxJPlj/Lm3VqS7MD+NbIR/7LmpNLuK/AWNFdCo/T3SK5ND0/UHf3IJvl/Jn/i6yg==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "13.2.0", + "@chevrotain/types": "13.2.0" + } + }, + "node_modules/@chevrotain/gast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-13.2.0.tgz", + "integrity": "sha512-bCARdAsG+eEbOveSXcOAC7pVxA04I1ionzeMOwIYf5NX7SaS7zgn4Dgug2BSqoL+iyKeMNSorQjsFSHJHsCNwg==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/types": "13.2.0" + } + }, + "node_modules/@chevrotain/regexp-to-ast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-13.2.0.tgz", + "integrity": "sha512-kxpUkLtiaK09ph+dib+Yvm+3sWSnuwlo25gqfKRgTPNmF6H7uW4gVkMjaRdtnN783S9sM6vUNWh9CsxYX4QwKw==", + "license": "Apache-2.0" + }, "node_modules/@chevrotain/types": { - "version": "11.1.2", - "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-11.1.2.tgz", - "integrity": "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==", + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-13.2.0.tgz", + "integrity": "sha512-7qrYHRlKfWf2AvBfJi5eVOrKAkbxvMFsy/iIHTGIiApNcEecCaVIdR+mIQhyCBsTDJxBz4JWXHMo6krbhR9hVg==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-13.2.0.tgz", + "integrity": "sha512-SzKYY68rseOrb9KILVzPsl6SjkQtdWw01SRGB5aCVI5kFcHltQsOYV3JB0Ffst72DgkvHCyDQ0NLwxtmCCf97Q==", "license": "Apache-2.0" }, "node_modules/@d3ro/admin": { @@ -514,22 +638,13 @@ "resolved": "apps/web", "link": true }, - "node_modules/@develar/schema-utils": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz", - "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==", - "dev": true, + "node_modules/@electron-internal/extract-zip": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.8.tgz", + "integrity": "sha512-8iajeLFbzNwM0m3AsQZSZgYREWglAImyGvvFSWU34FgMW8sHlzdwj9QKvv9dgN7jMP591EFUF/sLOC3Jl9YIjQ==", "license": "MIT", - "dependencies": { - "ajv": "^6.12.0", - "ajv-keywords": "^3.4.1" - }, "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "node": ">=22.12.0" } }, "node_modules/@electron-toolkit/tsconfig": { @@ -577,9 +692,9 @@ "license": "MIT" }, "node_modules/@electron/asar/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -632,9 +747,9 @@ } }, "node_modules/@electron/fuses/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -655,33 +770,45 @@ } }, "node_modules/@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz", + "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==", "license": "MIT", "dependencies": { "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "got": "^11.8.5", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", "progress": "^2.0.3", - "semver": "^6.2.0", + "semver": "^7.6.3", "sumchecker": "^3.0.1" }, "engines": { - "node": ">=12" + "node": ">=22.12.0" }, "optionalDependencies": { - "global-agent": "^3.0.0" + "undici": "^7.24.4" } }, - "node_modules/@electron/get/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node_modules/@electron/get/node_modules/env-paths": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@electron/get/node_modules/undici": { + "version": "7.30.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz", + "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20.18.1" } }, "node_modules/@electron/notarize": { @@ -716,9 +843,9 @@ } }, "node_modules/@electron/notarize/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -789,9 +916,9 @@ } }, "node_modules/@electron/osx-sign/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -812,25 +939,18 @@ } }, "node_modules/@electron/rebuild": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.0.3.tgz", - "integrity": "sha512-u9vpTHRMkOYCs/1FLiSVAFZ7FbjsXK+bQuzviJZa+lG7BHZl1nz52/IcGvwa3sk80/fc3llutBkbCq10Vh8WQA==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz", + "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==", "dev": true, "license": "MIT", "dependencies": { "@malept/cross-spawn-promise": "^2.0.0", "debug": "^4.1.1", - "detect-libc": "^2.0.1", - "got": "^11.7.0", - "graceful-fs": "^4.2.11", "node-abi": "^4.2.0", "node-api-version": "^0.2.1", - "node-gyp": "^11.2.0", - "ora": "^5.1.0", - "read-binary-file-arch": "^1.0.6", - "semver": "^7.3.5", - "tar": "^7.5.6", - "yargs": "^17.0.1" + "node-gyp": "^12.2.0", + "read-binary-file-arch": "^1.0.6" }, "bin": { "electron-rebuild": "lib/cli.js" @@ -866,9 +986,9 @@ "license": "MIT" }, "node_modules/@electron/universal/node_modules/brace-expansion": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz", - "integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.8.tgz", + "integrity": "sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==", "dev": true, "license": "MIT", "dependencies": { @@ -876,9 +996,9 @@ } }, "node_modules/@electron/universal/node_modules/fs-extra": { - "version": "11.3.4", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.4.tgz", - "integrity": "sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==", + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, "license": "MIT", "dependencies": { @@ -891,9 +1011,9 @@ } }, "node_modules/@electron/universal/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -952,9 +1072,9 @@ } }, "node_modules/@electron/windows-sign/node_modules/fs-extra": { - "version": "11.3.4", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.4.tgz", - "integrity": "sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==", + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, "license": "MIT", "optional": true, @@ -969,9 +1089,9 @@ } }, "node_modules/@electron/windows-sign/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "optional": true, @@ -995,6 +1115,18 @@ "node": ">= 10.0.0" } }, + "node_modules/@emnapi/core": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", + "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "2.2.0", + "tslib": "^2.4.0" + } + }, "node_modules/@emnapi/runtime": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", @@ -1005,6 +1137,17 @@ "tslib": "^2.4.0" } }, + "node_modules/@emnapi/wasi-threads": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", + "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@emotion/babel-plugin": { "version": "11.13.5", "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz", @@ -1151,397 +1294,6 @@ "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==", "license": "MIT" }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.9.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", @@ -1603,9 +1355,9 @@ "license": "MIT" }, "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1796,9 +1548,9 @@ "license": "MIT" }, "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1869,9 +1621,9 @@ } }, "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.3.tgz", - "integrity": "sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", "cpu": [ "arm64" ], @@ -1887,13 +1639,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.2" + "@img/sharp-libvips-darwin-arm64": "1.3.4" } }, "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.3.tgz", - "integrity": "sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", "cpu": [ "x64" ], @@ -1909,20 +1661,20 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.2" + "@img/sharp-libvips-darwin-x64": "1.3.4" } }, "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.3.tgz", - "integrity": "sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", "license": "Apache-2.0", "optional": true, "os": [ "freebsd" ], "dependencies": { - "@img/sharp-wasm32": "0.35.3" + "@img/sharp-wasm32": "0.35.5" }, "engines": { "node": ">=20.9.0" @@ -1932,9 +1684,9 @@ } }, "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.2.tgz", - "integrity": "sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", "cpu": [ "arm64" ], @@ -1948,9 +1700,9 @@ } }, "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.2.tgz", - "integrity": "sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", "cpu": [ "x64" ], @@ -1964,12 +1716,15 @@ } }, "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.2.tgz", - "integrity": "sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1980,12 +1735,15 @@ } }, "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.2.tgz", - "integrity": "sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1996,12 +1754,15 @@ } }, "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.2.tgz", - "integrity": "sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", "cpu": [ "ppc64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2012,12 +1773,15 @@ } }, "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.2.tgz", - "integrity": "sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", "cpu": [ "riscv64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2028,12 +1792,15 @@ } }, "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.2.tgz", - "integrity": "sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2044,12 +1811,15 @@ } }, "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.2.tgz", - "integrity": "sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2060,12 +1830,15 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.2.tgz", - "integrity": "sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2076,12 +1849,15 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.2.tgz", - "integrity": "sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2092,12 +1868,15 @@ } }, "node_modules/@img/sharp-linux-arm": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.3.tgz", - "integrity": "sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2110,16 +1889,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.2" + "@img/sharp-libvips-linux-arm": "1.3.4" } }, "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.3.tgz", - "integrity": "sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2132,16 +1914,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.2" + "@img/sharp-libvips-linux-arm64": "1.3.4" } }, "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.3.tgz", - "integrity": "sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", "cpu": [ "ppc64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2154,16 +1939,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.2" + "@img/sharp-libvips-linux-ppc64": "1.3.4" } }, "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.3.tgz", - "integrity": "sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", "cpu": [ "riscv64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2176,16 +1964,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.2" + "@img/sharp-libvips-linux-riscv64": "1.3.4" } }, "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.3.tgz", - "integrity": "sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2198,16 +1989,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.2" + "@img/sharp-libvips-linux-s390x": "1.3.4" } }, "node_modules/@img/sharp-linux-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.3.tgz", - "integrity": "sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2220,16 +2014,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.2" + "@img/sharp-libvips-linux-x64": "1.3.4" } }, "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.3.tgz", - "integrity": "sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2242,16 +2039,19 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.2" + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" } }, "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.3.tgz", - "integrity": "sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2264,17 +2064,17 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.2" + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" } }, "node_modules/@img/sharp-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.3.tgz", - "integrity": "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", "optional": true, "dependencies": { - "@emnapi/runtime": "^1.11.1" + "@emnapi/runtime": "^1.11.3" }, "engines": { "node": ">=20.9.0" @@ -2284,16 +2084,16 @@ } }, "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.3.tgz", - "integrity": "sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", "cpu": [ "wasm32" ], "license": "Apache-2.0", "optional": true, "dependencies": { - "@img/sharp-wasm32": "0.35.3" + "@img/sharp-wasm32": "0.35.5" }, "engines": { "node": ">=20.9.0" @@ -2303,9 +2103,9 @@ } }, "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.3.tgz", - "integrity": "sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", "cpu": [ "arm64" ], @@ -2322,9 +2122,9 @@ } }, "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.3.tgz", - "integrity": "sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", "cpu": [ "ia32" ], @@ -2341,9 +2141,9 @@ } }, "node_modules/@img/sharp-win32-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.3.tgz", - "integrity": "sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", "cpu": [ "x64" ], @@ -2359,109 +2159,6 @@ "url": "https://opencollective.com/libvips" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.2.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/@isaacs/fs-minipass": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", @@ -2474,6 +2171,13 @@ "node": ">=18.0.0" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@isaacs/ttlcache": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/@isaacs/ttlcache/-/ttlcache-1.4.1.tgz", @@ -2975,9 +2679,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -3366,9 +3070,9 @@ } }, "node_modules/@malept/flatpak-bundler/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -3389,12 +3093,15 @@ } }, "node_modules/@mermaid-js/parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-1.2.1.tgz", - "integrity": "sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-2.0.1.tgz", + "integrity": "sha512-j37dj/h6p6pots1L7pLPPNuABEEu9WP4OYg9pW1g+nYG331j0+3canE9OagtYdytYvdSAMG+2fKU5cxep6LgjA==", "license": "MIT", "dependencies": { - "@chevrotain/types": "~11.1.2" + "@chevrotain/types": "~13.2.0" + }, + "engines": { + "node": ">=22.12.0" } }, "node_modules/@mui/core-downloads-tracker": { @@ -3665,16 +3372,38 @@ } } }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", + "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" + } + }, "node_modules/@next/env": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.1.tgz", - "integrity": "sha512-35G3xwkQUb2oETSDjFXGrVugknoayLFBh7vSE+yAcl9IP2zT9wyGwq7297AYHR11kJld807t5f8AJBs6WBzXsQ==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.4.6.tgz", + "integrity": "sha512-SunBjJ6t+oBtecS3dTjdVuMhUogP5wD/vrGL5EVuQYM1iS4O5ilL51HkiJ3sPjMzRHiCChvr4dbaSJbR7F3lxA==", "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.1.tgz", - "integrity": "sha512-ABMIu2zQ7cnNIHm5ivKGwZwUrm0pAai3yiJ/gK/rF1c1VP9UOnj7XECbMKFdVKp9I9eMYq9NoDs1WXOoowxzJw==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.4.6.tgz", + "integrity": "sha512-kJ4VVZkley17xKaJx72QN2IBqjrj7zenCQZaUF0l9ShS/1Mt2kW4+Z5KGG6vgr3L/J562xTOizVyM1iA/u5nlg==", "cpu": [ "arm64" ], @@ -3688,9 +3417,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.1.tgz", - "integrity": "sha512-gNG21e/UnrroeScbY/QndUEdl0mF1FRibW7BBeYUz/5ABCepjqDdEdgr592vpzMtCn/m7FTjYq3TN4TpyDnutw==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.4.6.tgz", + "integrity": "sha512-eIPGZIqC+8JKaeZmvnCANJQF4xWkkHqSnAAajtFxgwDMAOnCgxNvP52SeWZ41PyVwoe+Le/NQuZSaQ8j7YshSA==", "cpu": [ "x64" ], @@ -3704,12 +3433,15 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.1.tgz", - "integrity": "sha512-6B6Lw016iwNUQuaJoraMMTLh6TwHzFUtxipSScD1F3YyymcrRWkobodRS2ftIOkF5vrs4zNlyUrTC5YZQ9Lz5w==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.4.6.tgz", + "integrity": "sha512-9nI6O8vvczH2D9ZNdMGqb/3NuT15T9ksOZnAmx9/gjF2cOi74+xxyf1Hk96uIMfm14c9y6wHeBq6SH8g6udvcA==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -3720,12 +3452,15 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.1.tgz", - "integrity": "sha512-JUiPXZKK9wOhjf4MgDiH29GZLxfqOesbLtHq2pDxwH/WwscTRV2ToymnOTh1egzaZf0ueUf8T2+CeYTGHjW0Iw==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.4.6.tgz", + "integrity": "sha512-7/qPhTxDp2ScluOJOhLuhWmlA17o1yZ0SIgpISBCpBxXgtnK4+KGywBpFkfLPiU1rnSM1faFGzYkH6i7JdTrqA==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -3736,12 +3471,15 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.1.tgz", - "integrity": "sha512-Uog9jsrmIRIL/lfvIp9htmskSNC7JcQsMVucXL2V2YY1y/D9IUN3LPEafqy0zRJ2cIU1SQ0V6F6TlffQ+pLAGg==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.4.6.tgz", + "integrity": "sha512-oOpbNa8XOW1qCGd9VvzC4fbkkRxEls7/WI6tz+YHC0xRA7KpV1U7DrAnCPjzVyOk/karzWEepCOcTIDmwK8FwQ==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -3752,12 +3490,15 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.1.tgz", - "integrity": "sha512-6yy3FT13KgUFOj5H8bl8w/6nKiJwHIvbtwh1V+1acsu+7y4tJjnemSa6mhsh53BeoVrlozE+fMgZhXH46WmjMA==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.4.6.tgz", + "integrity": "sha512-aM8CZ+OR2EwXaAYw7KGkW2GDmNDsLBIRe1MMRZCJPTdw/xhTD0IMUVO4sf3KqrzuRouGzwwLZn34+gFeVXiUQA==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -3768,9 +3509,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.1.tgz", - "integrity": "sha512-iOoN1QecUoGNZik536U/vtK43YwgyrCsGIkth52yIkl612n+0C9MjSnJbQAikISpb+WYRooBVhaDlUW7iZoKog==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.4.6.tgz", + "integrity": "sha512-U0p7/tEtqvHX2crhd841CDwKtp5CFkKXVjOhmfccR3Pvp64sj8KBwRqsvltqLOwVBbj0NtkxwXSDpEHYGbxeXQ==", "cpu": [ "arm64" ], @@ -3784,9 +3525,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.1.tgz", - "integrity": "sha512-d/k+PpAriUPaeMJJOG7HUSdqfEX46FEPWU1p3/nm2ACmXhj9hFEWdFODUBIpkuijXYkfL90qZzTqVPRp4BW/hw==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.4.6.tgz", + "integrity": "sha512-3ZG15/5WIdlTQsIEvc9sPTTSL5XFrlLklIKmfF4fwsDnoAhu6NcBDXsk3mbGxNyo6aVLEGex+fHCv2MahY7a9g==", "cpu": [ "x64" ], @@ -3799,6 +3540,19 @@ "node": ">= 10" } }, + "node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -3837,43 +3591,6 @@ "node": ">= 8" } }, - "node_modules/@npmcli/agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-3.0.0.tgz", - "integrity": "sha512-S79NdEgDQd/NGCay6TCoVzXSj74skRZIKJcpJjC5lOq34SZzyI6MqtiiWoiVWoVrTcGjNeC4ipbh1VIHlpfF5Q==", - "dev": true, - "license": "ISC", - "dependencies": { - "agent-base": "^7.1.0", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.1", - "lru-cache": "^10.0.1", - "socks-proxy-agent": "^8.0.3" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/@npmcli/agent/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/@npmcli/fs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-4.0.0.tgz", - "integrity": "sha512-/xGlezI6xfGO9NwuJlnwz/K14qD1kCSAGtacBHnGzeAIuJGazcp45KP5NuyARXoKb7cwulAGWVsbeSxdG/cb0Q==", - "dev": true, - "license": "ISC", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, "node_modules/@nut-tree-fork/default-clipboard-provider": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/@nut-tree-fork/default-clipboard-provider/-/default-clipboard-provider-4.2.6.tgz", @@ -4028,17 +3745,71 @@ "node-abort-controller": "3.1.1" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", "dev": true, "license": "MIT", - "optional": true, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@peculiar/asn1-schema": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.1.tgz", + "integrity": "sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + }, "engines": { "node": ">=14" } }, + "node_modules/@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@peculiar/utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz", + "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/webcrypto": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.2.tgz", + "integrity": "sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "tslib": "^2.8.1", + "webcrypto-core": "^1.9.2" + }, + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/@playwright/test": { "version": "1.62.1", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.62.1.tgz", @@ -4065,6 +3836,69 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@react-native/codegen": { + "version": "0.85.3", + "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.85.3.tgz", + "integrity": "sha512-/JkS1lGLyzBWP1FbgDwaqEf7qShIC6pUC1M0a/YMAd/v4iqR24MRkQWe7jkYvcBQ2LpEhs5NGE9InhxSv21zCA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/parser": "^7.29.0", + "hermes-parser": "0.33.3", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "tinyglobby": "^0.2.15", + "yargs": "^17.6.2" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/@react-native/community-cli-plugin": { + "version": "0.85.3", + "resolved": "https://registry.npmjs.org/@react-native/community-cli-plugin/-/community-cli-plugin-0.85.3.tgz", + "integrity": "sha512-fs85dmbIqNmtzEixDb0g+q6R3Vt4H9eAt8/inIZdDKfjN76+sUJA2r1nxODQ76bU23MrIbz8sI7KFBPaWk/zQw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@react-native/dev-middleware": "0.85.3", + "debug": "^4.4.0", + "invariant": "^2.2.4", + "metro": "^0.84.3", + "metro-config": "^0.84.3", + "metro-core": "^0.84.3", + "semver": "^7.1.3" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + }, + "peerDependencies": { + "@react-native-community/cli": "*", + "@react-native/metro-config": "0.85.3" + }, + "peerDependenciesMeta": { + "@react-native-community/cli": { + "optional": true + }, + "@react-native/metro-config": { + "optional": true + } + } + }, + "node_modules/@react-native/debugger-frontend": { + "version": "0.85.3", + "resolved": "https://registry.npmjs.org/@react-native/debugger-frontend/-/debugger-frontend-0.85.3.tgz", + "integrity": "sha512-uAu7rM5o/Np1zgp6fi5zM1sP1aB8DcS7DdOLcj/TkSutOAjkMqqd2lWt1/+3S7qXexRHVK5XcP+o3VXo4L/V0A==", + "license": "BSD-3-Clause", + "peer": true, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, "node_modules/@react-native/debugger-shell": { "version": "0.85.3", "resolved": "https://registry.npmjs.org/@react-native/debugger-shell/-/debugger-shell-0.85.3.tgz", @@ -4080,6 +3914,52 @@ "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" } }, + "node_modules/@react-native/dev-middleware": { + "version": "0.85.3", + "resolved": "https://registry.npmjs.org/@react-native/dev-middleware/-/dev-middleware-0.85.3.tgz", + "integrity": "sha512-JYzBiT4A8w+KQt+dOD5v+ti+tDrGoPnsSTuApq3Ls4RB5sfWbDlYMyz3dbc8qBIHz9tv0sQ5+eOu6Xwqzr5AQA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@isaacs/ttlcache": "^1.4.1", + "@react-native/debugger-frontend": "0.85.3", + "@react-native/debugger-shell": "0.85.3", + "chrome-launcher": "^0.15.2", + "chromium-edge-launcher": "^0.3.0", + "connect": "^3.6.5", + "debug": "^4.4.0", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "open": "^7.0.3", + "serve-static": "^1.16.2", + "ws": "^7.5.10" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/ws": { + "version": "7.5.14", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.14.tgz", + "integrity": "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/@react-native/virtualized-lists": { "version": "0.85.3", "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.85.3.tgz", @@ -4104,17 +3984,10 @@ } } }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.27", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", - "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.1.tgz", - "integrity": "sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==", + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz", + "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==", "cpu": [ "arm" ], @@ -4123,12 +3996,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.1.tgz", - "integrity": "sha512-YjG/EwIDvvYI1YvYbHvDz/BYHtkY4ygUIXHnTdLhG+hKIQFBiosfWiACWortsKPKU/+dUwQQCKQM3qrDe8c9BA==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz", + "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==", "cpu": [ "arm64" ], @@ -4137,12 +4013,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.1.tgz", - "integrity": "sha512-mjCpF7GmkRtSJwon+Rq1N8+pI+8l7w5g9Z3vWj4T7abguC4Czwi3Yu/pFaLvA3TTeMVjnu3ctigusqWUfjZzvw==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz", + "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==", "cpu": [ "arm64" ], @@ -4151,12 +4030,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.1.tgz", - "integrity": "sha512-haZ7hJ1JT4e9hqkoT9R/19XW2QKqjfJVv+i5AGg57S+nLk9lQnJ1F/eZloRO3o9Scy9CM3wQ9l+dkXtcBgN5Ew==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz", + "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==", "cpu": [ "x64" ], @@ -4165,26 +4047,15 @@ "optional": true, "os": [ "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.1.tgz", - "integrity": "sha512-czw90wpQq3ZsAVBlinZjAYTKduOjTywlG7fEeWKUA7oCmpA8xdTkxZZlwNJKWqILlq0wehoZcJYfBvOyhPTQ6w==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.1.tgz", - "integrity": "sha512-KVB2rqsxTHuBtfOeySEyzEOB7ltlB/ux38iu2rBQzkjbwRVlkhAGIEDiiYnO2kFOkJp+Z7pUXKyrRRFuFUKt+g==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz", + "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==", "cpu": [ "x64" ], @@ -4193,12 +4064,15 @@ "optional": true, "os": [ "freebsd" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.1.tgz", - "integrity": "sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz", + "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==", "cpu": [ "arm" ], @@ -4207,194 +4081,135 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.1.tgz", - "integrity": "sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==", - "cpu": [ - "arm" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.1.tgz", - "integrity": "sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz", + "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==", "cpu": [ "arm64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.1.tgz", - "integrity": "sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz", + "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.1.tgz", - "integrity": "sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==", - "cpu": [ - "loong64" + "libc": [ + "musl" ], - "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.1.tgz", - "integrity": "sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==", - "cpu": [ - "loong64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.1.tgz", - "integrity": "sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz", + "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==", "cpu": [ "ppc64" ], "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.1.tgz", - "integrity": "sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==", - "cpu": [ - "ppc64" + "libc": [ + "glibc" ], - "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.1.tgz", - "integrity": "sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==", - "cpu": [ - "riscv64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.1.tgz", - "integrity": "sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.1.tgz", - "integrity": "sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz", + "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==", "cpu": [ "s390x" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.1.tgz", - "integrity": "sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz", + "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.1.tgz", - "integrity": "sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz", + "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.1.tgz", - "integrity": "sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==", - "cpu": [ - "x64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.1.tgz", - "integrity": "sha512-4Cv23ZrONRbNtbZa37mLSueXUCtN7MXccChtKpUnQNgF010rjrjfHx3QxkS2PI7LqGT5xXyYs1a7LbzAwT0iCA==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz", + "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==", "cpu": [ "arm64" ], @@ -4403,12 +4218,45 @@ "optional": true, "os": [ "openharmony" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.1.tgz", - "integrity": "sha512-i1okWYkA4FJICtr7KpYzFpRTHgy5jdDbZiWfvny21iIKky5YExiDXP+zbXzm3dUcFpkEeYNHgQ5fuG236JPq0g==", + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz", + "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "2.0.0-beta.2", + "@emnapi/runtime": "2.0.0-beta.2", + "@napi-rs/wasm-runtime": "1.2.6" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", + "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz", + "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==", "cpu": [ "arm64" ], @@ -4417,26 +4265,15 @@ "optional": true, "os": [ "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.1.tgz", - "integrity": "sha512-u09m3CuwLzShA0EYKMNiFgcjjzwqtUMLmuCJLeZWjjOYA3IT2Di09KaxGBTP9xVztWyIWjVdsB2E9goMjZvTQg==", - "cpu": [ - "ia32" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.1.tgz", - "integrity": "sha512-k+600V9Zl1CM7eZxJgMyTUzmrmhB/0XZnF4pRypKAlAgxmedUA+1v9R+XOFv56W4SlHEzfeMtzujLJD22Uz5zg==", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz", + "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==", "cpu": [ "x64" ], @@ -4445,7 +4282,10 @@ "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.60.1", @@ -4471,6 +4311,7 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -4590,6 +4431,7 @@ "version": "4.0.6", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dev": true, "license": "MIT", "dependencies": { "defer-to-connect": "^2.0.0" @@ -4604,49 +4446,15 @@ "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", "license": "MIT" }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "node_modules/@tybys/wasm-util": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz", + "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==", "dev": true, "license": "MIT", + "optional": true, "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" + "tslib": "^2.4.0" } }, "node_modules/@types/better-sqlite3": { @@ -4663,6 +4471,7 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dev": true, "license": "MIT", "dependencies": { "@types/http-cache-semantics": "*", @@ -4671,6 +4480,17 @@ "@types/responselike": "^1.0.0" } }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, "node_modules/@types/d3": { "version": "7.4.3", "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", @@ -4933,6 +4753,13 @@ "@types/ms": "*" } }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/estree": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", @@ -4977,6 +4804,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==", + "dev": true, "license": "MIT" }, "node_modules/@types/istanbul-lib-coverage": { @@ -5010,6 +4838,7 @@ "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -5045,18 +4874,6 @@ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", "license": "MIT" }, - "node_modules/@types/plist": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz", - "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*", - "xmlbuilder": ">=11.0.1" - } - }, "node_modules/@types/prop-types": { "version": "15.7.15", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", @@ -5095,6 +4912,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -5113,14 +4931,6 @@ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, - "node_modules/@types/verror": { - "version": "1.10.11", - "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz", - "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==", - "dev": true, - "license": "MIT", - "optional": true - }, "node_modules/@types/ws": { "version": "8.18.1", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", @@ -5147,28 +4957,18 @@ "license": "MIT", "peer": true }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.58.1.tgz", - "integrity": "sha512-eSkwoemjo76bdXl2MYqtxg51HNwUSkWfODUOQ3PaTLZGh9uIWWFZIjyjaJnex7wXDu+TRx+ATsnSxdN9YWfRTQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz", + "integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.58.1", - "@typescript-eslint/type-utils": "8.58.1", - "@typescript-eslint/utils": "8.58.1", - "@typescript-eslint/visitor-keys": "8.58.1", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/type-utils": "8.73.0", + "@typescript-eslint/utils": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -5181,22 +4981,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.58.1", + "@typescript-eslint/parser": "^8.73.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.58.1.tgz", - "integrity": "sha512-gGkiNMPqerb2cJSVcruigx9eHBlLG14fSdPdqMoOcBfh+vvn4iCq2C8MzUB89PrxOXk0y3GZ1yIWb9aOzL93bw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.73.0.tgz", + "integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.58.1", - "@typescript-eslint/types": "8.58.1", - "@typescript-eslint/typescript-estree": "8.58.1", - "@typescript-eslint/visitor-keys": "8.58.1", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3" }, "engines": { @@ -5212,14 +5012,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.58.1.tgz", - "integrity": "sha512-gfQ8fk6cxhtptek+/8ZIqw8YrRW5048Gug8Ts5IYcMLCw18iUgrZAEY/D7s4hkI0FxEfGakKuPK/XUMPzPxi5g==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz", + "integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.58.1", - "@typescript-eslint/types": "^8.58.1", + "@typescript-eslint/tsconfig-utils": "^8.73.0", + "@typescript-eslint/types": "^8.73.0", "debug": "^4.4.3" }, "engines": { @@ -5234,14 +5034,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.58.1.tgz", - "integrity": "sha512-TPYUEqJK6avLcEjumWsIuTpuYODTTDAtoMdt8ZZa93uWMTX13Nb8L5leSje1NluammvU+oI3QRr5lLXPgihX3w==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz", + "integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.1", - "@typescript-eslint/visitor-keys": "8.58.1" + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5252,9 +5052,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.58.1.tgz", - "integrity": "sha512-JAr2hOIct2Q+qk3G+8YFfqkqi7sC86uNryT+2i5HzMa2MPjw4qNFvtjnw1IiA1rP7QhNKVe21mSSLaSjwA1Olw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz", + "integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==", "dev": true, "license": "MIT", "engines": { @@ -5269,15 +5069,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.58.1.tgz", - "integrity": "sha512-HUFxvTJVroT+0rXVJC7eD5zol6ID+Sn5npVPWoFuHGg9Ncq5Q4EYstqR+UOqaNRFXi5TYkpXXkLhoCHe3G0+7w==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz", + "integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.1", - "@typescript-eslint/typescript-estree": "8.58.1", - "@typescript-eslint/utils": "8.58.1", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -5294,9 +5094,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.58.1.tgz", - "integrity": "sha512-io/dV5Aw5ezwzfPBBWLoT+5QfVtP8O7q4Kftjn5azJ88bYyp/ZMCsyW1lpKK46EXJcaYMZ1JtYj+s/7TdzmQMw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz", + "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", "dev": true, "license": "MIT", "engines": { @@ -5308,18 +5108,18 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.58.1.tgz", - "integrity": "sha512-w4w7WR7GHOjqqPnvAYbazq+Y5oS68b9CzasGtnd6jIeOIeKUzYzupGTB2T4LTPSv4d+WPeccbxuneTFHYgAAWg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", + "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.58.1", - "@typescript-eslint/tsconfig-utils": "8.58.1", - "@typescript-eslint/types": "8.58.1", - "@typescript-eslint/visitor-keys": "8.58.1", + "@typescript-eslint/project-service": "8.73.0", + "@typescript-eslint/tsconfig-utils": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3", - "minimatch": "^10.2.2", + "minimatch": "^11.0.1", "semver": "^7.7.3", "tinyglobby": "^0.2.15", "ts-api-utils": "^2.5.0" @@ -5332,20 +5132,26 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { + "@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev", "typescript": ">=4.8.4 <6.1.0" + }, + "peerDependenciesMeta": { + "@typescript/native": { + "optional": true + } } }, "node_modules/@typescript-eslint/utils": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.58.1.tgz", - "integrity": "sha512-Ln8R0tmWC7pTtLOzgJzYTXSCjJ9rDNHAqTaVONF4FEi2qwce8mD9iSOxOpLFFvWp/wBFlew0mjM1L1ihYWfBdQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.73.0.tgz", + "integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.58.1", - "@typescript-eslint/types": "8.58.1", - "@typescript-eslint/typescript-estree": "8.58.1" + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5360,13 +5166,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.58.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.58.1.tgz", - "integrity": "sha512-y+vH7QE8ycjoa0bWciFg7OpFcipUuem1ujhrdLtq1gByKwfbC7bPeKsiny9e0urg93DqwGcHey+bGRKCnF1nZQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz", + "integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/types": "8.73.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -5406,60 +5212,24 @@ "d3-transition": "^3.0.1" } }, - "node_modules/@vitejs/plugin-react": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", - "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.28.0", - "@babel/plugin-transform-react-jsx-self": "^7.27.1", - "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-beta.27", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" - } - }, - "node_modules/@vitest/expect": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz", - "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/@vitest/mocker": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz", - "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.0.tgz", + "integrity": "sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "2.1.9", + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.1.0", "estree-walker": "^3.0.3", - "magic-string": "^0.30.12" + "magic-string": "^1.4.3" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0" + "msw": "^2.4.9 || ^3.0.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "msw": { @@ -5470,101 +5240,34 @@ } } }, - "node_modules/@vitest/pretty-format": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz", - "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz", - "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "2.1.9", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz", - "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "2.1.9", - "magic-string": "^0.30.12", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/@vitest/spy": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz", - "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz", + "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==", "dev": true, "license": "MIT", - "dependencies": { - "tinyspy": "^3.0.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz", - "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "2.1.9", - "loupe": "^3.1.2", - "tinyrainbow": "^1.2.0" - }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@xmldom/xmldom": { - "version": "0.8.12", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.12.tgz", - "integrity": "sha512-9k/gHF6n/pAi/9tqr3m3aqkuiNosYTurLLUtc7xQ9sxB/wm7WPygCv8GYa6mS0fLJEHhqMC1ATYhz++U/lRHqg==", + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz", + "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==", "dev": true, "license": "MIT", "engines": { "node": ">=10.0.0" } }, - "node_modules/7zip-bin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz", - "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==", - "dev": true, - "license": "MIT" - }, "node_modules/abbrev": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", - "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", "dev": true, "license": "ISC", "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/abort-controller": { @@ -5579,6 +5282,47 @@ "node": ">=6.5" } }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "peer": true, + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "peer": true, + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, "node_modules/acorn": { "version": "8.16.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", @@ -5666,16 +5410,6 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, "node_modules/anser": { "version": "1.4.10", "resolved": "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz", @@ -5713,40 +5447,36 @@ "integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg==", "license": "MIT" }, - "node_modules/app-builder-bin": { - "version": "5.0.0-alpha.12", - "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.12.tgz", - "integrity": "sha512-j87o0j6LqPL3QRr8yid6c+Tt5gC7xNfYo6uQIQkorAC6MpeayVMZrEDzKmJJ/Hlv7EnOQpaRm53k6ktDYZyB6w==", - "dev": true, - "license": "MIT" - }, "node_modules/app-builder-lib": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.8.1.tgz", - "integrity": "sha512-p0Im/Dx5C4tmz8QEE1Yn4MkuPC8PrnlRneMhWJj7BBXQfNTJUshM/bp3lusdEsDbvvfJZpXWnYesgSLvwtM2Zw==", + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.18.0.tgz", + "integrity": "sha512-lx+KkuCSZHcbECf4R3IAcC9VOFk0+cMUwljO63s5y8yqS1Lw0sRGmjPaWsPwP3zv3ohZYbMhUvjXeiQXXZhJXA==", "dev": true, "license": "MIT", "dependencies": { - "@develar/schema-utils": "~2.6.5", "@electron/asar": "3.4.1", "@electron/fuses": "^1.8.0", "@electron/get": "^3.0.0", "@electron/notarize": "2.5.0", "@electron/osx-sign": "1.3.3", - "@electron/rebuild": "^4.0.3", + "@electron/rebuild": "^4.2.1", "@electron/universal": "2.0.3", "@malept/flatpak-bundler": "^0.4.0", + "@noble/hashes": "^1.8.0", + "@peculiar/webcrypto": "^1.7.1", "@types/fs-extra": "9.0.13", + "ajv": "^8.18.0", + "asn1js": "^3.0.10", "async-exit-hook": "^2.0.1", - "builder-util": "26.8.1", - "builder-util-runtime": "9.5.1", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", "chromium-pickle-js": "^0.2.0", "ci-info": "4.3.1", "debug": "^4.3.4", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "ejs": "^3.1.8", - "electron-publish": "26.8.1", + "electron-publish": "26.18.0", "fs-extra": "^10.1.0", "hosted-git-info": "^4.1.0", "isbinaryfile": "^5.0.0", @@ -5754,7 +5484,8 @@ "js-yaml": "^4.1.0", "json5": "^2.2.3", "lazy-val": "^1.0.5", - "minimatch": "^10.0.3", + "minimatch": "^10.2.5", + "pkijs": "^3.4.0", "plist": "3.1.0", "proper-lockfile": "^4.1.2", "resedit": "^1.7.0", @@ -5762,14 +5493,15 @@ "tar": "^7.5.7", "temp-file": "^3.4.0", "tiny-async-pool": "1.3.0", + "unzipper": "^0.12.3", "which": "^5.0.0" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "dmg-builder": "26.8.1", - "electron-builder-squirrel-windows": "26.8.1" + "dmg-builder": "26.18.0", + "electron-builder-squirrel-windows": "26.18.0" } }, "node_modules/app-builder-lib/node_modules/@electron/get": { @@ -5810,15 +5542,32 @@ } }, "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" } }, + "node_modules/app-builder-lib/node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/app-builder-lib/node_modules/ci-info": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", @@ -5851,9 +5600,9 @@ } }, "node_modules/app-builder-lib/node_modules/fs-extra/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -5883,6 +5632,29 @@ "node": ">=18" } }, + "node_modules/app-builder-lib/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/app-builder-lib/node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/app-builder-lib/node_modules/which": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", @@ -5932,15 +5704,19 @@ "license": "MIT", "peer": true }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "node_modules/asn1js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz", + "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==", "dev": true, - "license": "MIT", - "optional": true, + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.2.0", + "tslib": "^2.8.1" + }, "engines": { - "node": ">=0.8" + "node": ">=12.0.0" } }, "node_modules/assertion-error": { @@ -5953,16 +5729,12 @@ "node": ">=12" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=8" - } + "license": "MIT" }, "node_modules/async-exit-hook": { "version": "2.0.1", @@ -6001,6 +5773,13 @@ "when-exit": "^2.1.4" } }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "dev": true, + "license": "MIT" + }, "node_modules/babel-plugin-macros": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", @@ -6026,23 +5805,6 @@ "hermes-parser": "0.33.3" } }, - "node_modules/babel-plugin-syntax-hermes-parser/node_modules/hermes-estree": { - "version": "0.33.3", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.33.3.tgz", - "integrity": "sha512-6kzYZHCk8Fy1Uc+t3HGYyJn3OL4aeqKLTyina4UFtWl8I0kSL7OmKThaiX+Uh2f8nGw3mo4Ifxg0M5Zk3/Oeqg==", - "license": "MIT", - "peer": true - }, - "node_modules/babel-plugin-syntax-hermes-parser/node_modules/hermes-parser": { - "version": "0.33.3", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.33.3.tgz", - "integrity": "sha512-Yg3HgaG4CqgyowtYjX/FsnPAuZdHOqSMtnbpylbptsQ9nwwSKsy6uRWcGO5RK0EqiX12q8HvDWKgeAVajRO5DA==", - "license": "MIT", - "peer": true, - "dependencies": { - "hermes-estree": "0.33.3" - } - }, "node_modules/bail": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", @@ -6084,9 +5846,9 @@ "license": "MIT" }, "node_modules/baseline-browser-mapping": { - "version": "2.11.16", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.16.tgz", - "integrity": "sha512-H/bNPUFHewJHyCTdjn1n3Pit5+2GmWT6mmeHImPX+8MA9NA6b67jO4gYmi4jTbCJb2otq34KMZnovndDPqJwhQ==", + "version": "2.11.38", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.38.tgz", + "integrity": "sha512-rMgy5YW7x28SMfXHLlVZDBqlWzYZ0x2rVR/6FWrNBF0chjigARK1H6nM0hKA1Um3kPOlkQFVtjJs00d2N1ezuw==", "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.cjs" @@ -6096,17 +5858,24 @@ } }, "node_modules/better-sqlite3": { - "version": "12.8.0", - "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-12.8.0.tgz", - "integrity": "sha512-RxD2Vd96sQDjQr20kdP+F+dK/1OUNiVOl200vKBZY8u0vTwysfolF6Hq+3ZK2+h8My9YvZhHsF+RSGZW2VYrPQ==", - "hasInstallScript": true, + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-13.2.0.tgz", + "integrity": "sha512-Z8Q/9x/uNyKxA1v4FNodyItRVRw1TeKBrmj32JhxhR0ceNcBY+wMobt/Bv7M7TzwPAXjnZRtNaEsATnUZSKWZQ==", "license": "MIT", "dependencies": { - "bindings": "^1.5.0", - "prebuild-install": "^7.1.1" + "node-addon-api": "^8.0.0" }, "engines": { - "node": "20.x || 22.x || 23.x || 24.x || 25.x" + "node": ">=22" + } + }, + "node_modules/better-sqlite3/node_modules/node-addon-api": { + "version": "8.9.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.9.2.tgz", + "integrity": "sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==", + "license": "MIT", + "engines": { + "node": "^18 || ^20 || >= 21" } }, "node_modules/bindings": { @@ -6118,30 +5887,12 @@ "file-uri-to-path": "1.0.0" } }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" }, "node_modules/bmp-js": { "version": "0.1.0", @@ -6154,20 +5905,21 @@ "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dev": true, "license": "MIT", "optional": true }, "node_modules/brace-expansion": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz", - "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz", + "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" } }, "node_modules/braces": { @@ -6184,9 +5936,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz", - "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", + "version": "4.29.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz", + "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==", "funding": [ { "type": "opencollective", @@ -6203,11 +5955,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.11.12", - "caniuse-lite": "^1.0.30001809", - "electron-to-chromium": "^1.5.402", - "node-releases": "^2.0.53", - "update-browserslist-db": "^1.3.0" + "baseline-browser-mapping": "^2.11.37", + "caniuse-lite": "^1.0.30001826", + "electron-to-chromium": "^1.5.486", + "node-releases": "^2.0.64", + "update-browserslist-db": "^1.4.0" }, "bin": { "browserslist": "cli.js" @@ -6217,10 +5969,10 @@ } }, "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "license": "Apache-2.0", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.2.tgz", + "integrity": "sha512-V2o8YS2EhrKMO9AumnkK0ynynfFlsajpYupwq7S46H5mhcanwxDkNTw3K67wPIcKTH1ffkA4vhMOtAc7gRmPZw==", + "license": "MIT", "peer": true, "dependencies": { "node-int64": "^0.4.0" @@ -6250,15 +6002,6 @@ "ieee754": "^1.1.13" } }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/buffer-equal": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", @@ -6275,16 +6018,14 @@ "license": "MIT" }, "node_modules/builder-util": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.8.1.tgz", - "integrity": "sha512-pm1lTYbGyc90DHgCDO7eo8Rl4EqKLciayNbZqGziqnH9jrlKe8ZANGdityLZU+pJh16dfzjAx2xQq9McuIPEtw==", + "version": "26.16.0", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.16.0.tgz", + "integrity": "sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==", "dev": true, "license": "MIT", "dependencies": { "@types/debug": "^4.1.6", - "7zip-bin": "~5.2.0", - "app-builder-bin": "5.0.0-alpha.12", - "builder-util-runtime": "9.5.1", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", "cross-spawn": "^7.0.6", "debug": "^4.3.4", @@ -6297,13 +6038,15 @@ "stat-mode": "^1.0.0", "temp-file": "^3.4.0", "tiny-async-pool": "1.3.0" + }, + "engines": { + "node": ">=14.0.0" } }, "node_modules/builder-util-runtime": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.5.1.tgz", - "integrity": "sha512-qt41tMfgHTllhResqM5DcnHyDIWNgzHvuY2jDcYP9iaGpkWxTUzV6GQjDeLnlR1/DtdlcsWQbA7sByMpmJFTLQ==", - "dev": true, + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", + "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", "license": "MIT", "dependencies": { "debug": "^4.3.4", @@ -6329,9 +6072,9 @@ } }, "node_modules/builder-util/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -6351,106 +6094,21 @@ "node": ">= 10.0.0" } }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "node_modules/bytestreamjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz", + "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "engines": { - "node": ">=8" - } - }, - "node_modules/cacache": { - "version": "19.0.1", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-19.0.1.tgz", - "integrity": "sha512-hdsUxulXCi5STId78vRVYEtDAjq99ICAUktLTeTYsLoTE6Z8dS0c8pWNCxwdrk9YfJeobDZc2Y186hD/5ZQgFQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@npmcli/fs": "^4.0.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^10.0.1", - "minipass": "^7.0.3", - "minipass-collect": "^2.0.1", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^7.0.2", - "ssri": "^12.0.0", - "tar": "^7.4.3", - "unique-filename": "^4.0.0" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/cacache/node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/cacache/node_modules/brace-expansion": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz", - "integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/cacache/node_modules/glob": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", - "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", - "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/cacache/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/cacache/node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=6.0.0" } }, "node_modules/cacheable-lookup": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "dev": true, "license": "MIT", "engines": { "node": ">=10.6.0" @@ -6460,6 +6118,7 @@ "version": "7.0.4", "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dev": true, "license": "MIT", "dependencies": { "clone-response": "^1.0.2", @@ -6478,6 +6137,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, "license": "MIT", "dependencies": { "pump": "^3.0.0" @@ -6512,10 +6172,23 @@ "node": ">=6" } }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/caniuse-lite": { - "version": "1.0.30001809", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001809.tgz", - "integrity": "sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==", + "version": "1.0.30001826", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz", + "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==", "funding": [ { "type": "opencollective", @@ -6552,18 +6225,11 @@ } }, "node_modules/chai": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", - "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz", + "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==", "dev": true, "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, "engines": { "node": ">=18" } @@ -6624,14 +6290,20 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/check-error": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", - "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", - "dev": true, - "license": "MIT", + "node_modules/chevrotain": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-13.2.0.tgz", + "integrity": "sha512-GTouk5YzgBxlTPCaDn5q0q2EJKkrYmnPF+HmF8v0Qo4r3iyPG7HJivkN1wthCXZcm3sIcZFpGTRovLPNdJNRCA==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "13.2.0", + "@chevrotain/gast": "13.2.0", + "@chevrotain/regexp-to-ast": "13.2.0", + "@chevrotain/types": "13.2.0", + "@chevrotain/utils": "13.2.0" + }, "engines": { - "node": ">= 16" + "node": ">=22.0.0" } }, "node_modules/chownr": { @@ -6676,19 +6348,6 @@ "mkdirp": "^1.0.4" } }, - "node_modules/chromium-edge-launcher/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "license": "MIT", - "peer": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/chromium-pickle-js": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", @@ -6712,50 +6371,6 @@ "node": ">=8" } }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-spinners": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", - "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/client-only": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", @@ -6790,20 +6405,11 @@ "node": ">=12" } }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, "node_modules/clone-response": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, "license": "MIT", "dependencies": { "mimic-response": "^1.0.0" @@ -6985,6 +6591,20 @@ "license": "MIT", "peer": true }, + "node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", @@ -7035,15 +6655,13 @@ "node": ">=10" } }, - "node_modules/crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "buffer": "^5.1.0" + "node_modules/cosmiconfig/node_modules/yaml": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz", + "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==", + "license": "ISC", + "engines": { + "node": ">= 6" } }, "node_modules/cross-dirname": { @@ -7638,6 +7256,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dev": true, "license": "MIT", "dependencies": { "mimic-response": "^3.1.0" @@ -7653,6 +7272,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -7661,25 +7281,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -7687,23 +7288,11 @@ "dev": true, "license": "MIT" }, - "node_modules/defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "clone": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -7713,6 +7302,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -7731,6 +7321,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -7798,6 +7389,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "devOptional": true, "license": "Apache-2.0", "engines": { "node": ">=8" @@ -7807,6 +7399,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true, "license": "MIT", "optional": true }, @@ -7842,9 +7435,9 @@ "license": "MIT" }, "node_modules/dir-compare/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -7866,20 +7459,16 @@ } }, "node_modules/dmg-builder": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.8.1.tgz", - "integrity": "sha512-glMJgnTreo8CFINujtAhCgN96QAqApDMZ8Vl1r8f0QT8QprvC1UCltV4CcWj20YoIyLZx6IUskaJZ0NV8fokcg==", + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.18.0.tgz", + "integrity": "sha512-ozCGC54wi2C1RkS2v69y9lQxvoQ1Coh+iT8CmWiyY8y1ZuOKVvuNson2Hd+HEOs9+EZNNsOBbzKgQZ4SNqWd0w==", "dev": true, "license": "MIT", "dependencies": { - "app-builder-lib": "26.8.1", - "builder-util": "26.8.1", + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", "fs-extra": "^10.1.0", - "iconv-lite": "^0.6.2", "js-yaml": "^4.1.0" - }, - "optionalDependencies": { - "dmg-license": "^1.0.11" } }, "node_modules/dmg-builder/node_modules/fs-extra": { @@ -7898,9 +7487,9 @@ } }, "node_modules/dmg-builder/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -7920,33 +7509,6 @@ "node": ">= 10.0.0" } }, - "node_modules/dmg-license": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz", - "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "@types/plist": "^3.0.1", - "@types/verror": "^1.10.3", - "ajv": "^6.10.0", - "crc": "^3.8.0", - "iconv-corefoundation": "^1.1.7", - "plist": "^3.0.4", - "smart-buffer": "^4.0.2", - "verror": "^1.10.0" - }, - "bin": { - "dmg-license": "bin/dmg-license.js" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -8008,9 +7570,9 @@ "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" }, "node_modules/dompurify": { - "version": "3.4.14", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.14.tgz", - "integrity": "sha512-dVoH9z+MY+C9IilgGCk3YfFqjLi3fChm2OiKJMzh6axrJ5qwxqWaZamgmHrpv22CN/KdbZJuGEGgfQoL00LTdg==", + "version": "3.4.18", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz", + "integrity": "sha512-ofe3wI/uNm68HInABYFJYqQxRw1EaKAjNdrFVKqjUY+UZurvNd2L/HuQe097s/4RivWiZyP6tT7aoT8atjfhwg==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" @@ -8212,12 +7774,15 @@ "node": ">= 0.4" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, - "license": "MIT" + "license": "BSD-3-Clause", + "dependencies": { + "readable-stream": "^2.0.2" + } }, "node_modules/ee-first": { "version": "1.1.1", @@ -8243,36 +7808,36 @@ } }, "node_modules/electron": { - "version": "33.4.11", - "resolved": "https://registry.npmjs.org/electron/-/electron-33.4.11.tgz", - "integrity": "sha512-xmdAs5QWRkInC7TpXGNvzo/7exojubk+72jn1oJL7keNeIlw7xNglf8TGtJtkR4rWC5FJq0oXiIXPS9BcK2Irg==", - "hasInstallScript": true, + "version": "43.8.10", + "resolved": "https://registry.npmjs.org/electron/-/electron-43.8.10.tgz", + "integrity": "sha512-He/CVZxahZbDOS++eIwzU+XubARqz8s3d/eqPCmE/VcWc67yf8sei5vbKVZJE2jCmqqbbr5yWrWKmXJSyds8Ug==", "license": "MIT", "dependencies": { - "@electron/get": "^2.0.0", - "@types/node": "^20.9.0", - "extract-zip": "^2.0.1" + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" }, "bin": { - "electron": "cli.js" + "electron": "cli.js", + "install-electron": "install.js" }, "engines": { - "node": ">= 12.20.55" + "node": ">= 22.12.0" } }, "node_modules/electron-builder": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.8.1.tgz", - "integrity": "sha512-uWhx1r74NGpCagG0ULs/P9Nqv2nsoo+7eo4fLUOB8L8MdWltq9odW/uuLXMFCDGnPafknYLZgjNX0ZIFRzOQAw==", + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.18.0.tgz", + "integrity": "sha512-ASgIuQnOq4RuD8jMhS9hI0LS3EMRT1I/M5R6utqifB/BHN80IcCjBdt+DED+NmNPvmBgEtrlExXZitNdA7kXOg==", "dev": true, "license": "MIT", "dependencies": { - "app-builder-lib": "26.8.1", - "builder-util": "26.8.1", - "builder-util-runtime": "9.5.1", + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", "ci-info": "^4.2.0", - "dmg-builder": "26.8.1", + "dmg-builder": "26.18.0", "fs-extra": "^10.1.0", "lazy-val": "^1.0.5", "simple-update-notifier": "2.0.0", @@ -8287,15 +7852,15 @@ } }, "node_modules/electron-builder-squirrel-windows": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.8.1.tgz", - "integrity": "sha512-o288fIdgPLHA76eDrFADHPoo7VyGkDCYbLV1GzndaMSAVBoZrGvM9m2IehdcVMzdAZJ2eV9bgyissQXHv5tGzA==", + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.18.0.tgz", + "integrity": "sha512-a2elgTipboXNIsxqS1HOmHMGp4Pd3LJgIZOdIFTOskBSawvxKyZWYWQ1d7KKA4CtINSchYCYEKzhxRqiKZev9Q==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "app-builder-lib": "26.8.1", - "builder-util": "26.8.1", + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", "electron-winstaller": "5.4.0" } }, @@ -8347,15 +7912,16 @@ } }, "node_modules/electron-publish": { - "version": "26.8.1", - "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.8.1.tgz", - "integrity": "sha512-q+jrSTIh/Cv4eGZa7oVR+grEJo/FoLMYBAnSL5GCtqwUpr1T+VgKB/dn1pnzxIxqD8S/jP1yilT9VrwCqINR4w==", + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.18.0.tgz", + "integrity": "sha512-MagnqaZSALSWjcdKu5HEVhYUZD/2BDL3q7XzrqWwub6gf/UfD3ItMgmthVDv9w5y9E0gH1C3JWqKaXwf6f4ROg==", "dev": true, "license": "MIT", "dependencies": { "@types/fs-extra": "^9.0.11", - "builder-util": "26.8.1", - "builder-util-runtime": "9.5.1", + "aws4": "^1.13.2", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", "form-data": "^4.0.5", "fs-extra": "^10.1.0", @@ -8379,9 +7945,9 @@ } }, "node_modules/electron-publish/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -8430,9 +7996,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.411", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.411.tgz", - "integrity": "sha512-gglkxzokjHfawpGxq75XdBV2/l3BAPzrsMs70qgaZdTW5rpV1tC4MdgJVP9fN126bODA4ZJQkn1wryEzJyQXIg==", + "version": "1.5.487", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.487.tgz", + "integrity": "sha512-qWotOhQYeYEj+DK4+Y+cfPj44qiC6ETIiWtJLfmDJydED2BJJ7loPA4SfBbbrMI6X/X3tryJgxnY9nxsO545Zw==", "license": "ISC" }, "node_modules/electron-updater": { @@ -8451,19 +8017,6 @@ "tiny-typed-emitter": "^2.1.0" } }, - "node_modules/electron-updater/node_modules/builder-util-runtime": { - "version": "9.7.0", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", - "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", - "license": "MIT", - "dependencies": { - "debug": "^4.3.4", - "sax": "^1.2.4" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/electron-updater/node_modules/fs-extra": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", @@ -8499,36 +8052,6 @@ "node": ">= 10.0.0" } }, - "node_modules/electron-vite": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/electron-vite/-/electron-vite-2.3.0.tgz", - "integrity": "sha512-lsN2FymgJlp4k6MrcsphGqZQ9fKRdJKasoaiwIrAewN1tapYI/KINLdfEL7n10LuF0pPSNf/IqjzZbB5VINctg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.7", - "@babel/plugin-transform-arrow-functions": "^7.24.7", - "cac": "^6.7.14", - "esbuild": "^0.21.5", - "magic-string": "^0.30.10", - "picocolors": "^1.0.1" - }, - "bin": { - "electron-vite": "bin/electron-vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "@swc/core": "^1.0.0", - "vite": "^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - } - } - }, "node_modules/electron-winstaller": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz", @@ -8568,14 +8091,26 @@ } }, "node_modules/electron/node_modules/@types/node": { - "version": "20.19.39", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.39.tgz", - "integrity": "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw==", + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": ">=7.24.0 <7.24.7" } }, + "node_modules/electron/node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "license": "MIT" + }, + "node_modules/elkjs": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.12.1.tgz", + "integrity": "sha512-IhMYKHE4S2vtx0QrhBP3lYOIKDeIiJXBrdq9MGYkuB8ZHqhrBnHNfSUndjXFewrX1CPK8chwq+2NA0K0hliYuw==", + "license": "EPL-2.0 OR GPL-3.0-or-later" + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -8583,25 +8118,15 @@ "license": "MIT" }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.4.tgz", + "integrity": "sha512-ImAQpWtQZKdkUxvj9CMNzB8M4IGg0DkRTZzmOHqgVFrf71JDmUacbt+iKljfIpD2yHcxI+HR76d8bwvdvtSvGA==", "license": "MIT", "peer": true, "engines": { "node": ">= 0.8" } }, - "node_modules/encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "license": "MIT", - "optional": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, "node_modules/end-of-stream": { "version": "1.4.5", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", @@ -8615,6 +8140,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -8650,7 +8176,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -8660,16 +8186,16 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", "dev": true, "license": "MIT" }, @@ -8716,48 +8242,10 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, "license": "MIT", "optional": true }, - "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -8894,9 +8382,9 @@ "license": "MIT" }, "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -9129,19 +8617,10 @@ "resolved": "https://registry.npmjs.org/exif-parser/-/exif-parser-0.1.12.tgz", "integrity": "sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==" }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "license": "(MIT OR WTFPL)", - "engines": { - "node": ">=6" - } - }, "node_modules/expect-type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", - "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -9160,52 +8639,6 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "license": "MIT" }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/extsprintf": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", - "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "optional": true - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -9227,9 +8660,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "funding": [ { "type": "github", @@ -9242,15 +8675,6 @@ ], "license": "BSD-3-Clause" }, - "node_modules/fastdom": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.12.tgz", - "integrity": "sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==", - "license": "MIT", - "dependencies": { - "strictdom": "^1.0.1" - } - }, "node_modules/fastq": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", @@ -9275,22 +8699,13 @@ } }, "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "license": "Apache-2.0", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.4.tgz", + "integrity": "sha512-tGQtaoYisPDriJBN0mT5yZSyNETnJGA1gTYxaVRAE5KUO3LI9kPUc9WIu8JXcxaIci+faIKlzXqXyPgrmubtBQ==", + "license": "MIT", "peer": true, "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" + "bser": "2.1.2" } }, "node_modules/fdir": { @@ -9364,9 +8779,9 @@ "license": "MIT" }, "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz", - "integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.8.tgz", + "integrity": "sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==", "dev": true, "license": "MIT", "dependencies": { @@ -9488,9 +8903,9 @@ "peer": true }, "node_modules/follow-redirects": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", - "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.3.tgz", + "integrity": "sha512-toOSoqN6d51Wjf1aOFJYcoVv1aND9rj/CwjLU0Vz40oDuSpWDayCeKe4JpL5NL0WdFvoOOCI3BRo69HahjbR1A==", "funding": [ { "type": "individual", @@ -9507,48 +8922,18 @@ } } }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", "dev": true, "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "hasown": "^2.0.4", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -9564,39 +8949,6 @@ "node": ">= 0.6" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs-minipass": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", - "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -9707,12 +9059,6 @@ "omggif": "^1.0.10" } }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "license": "MIT" - }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -9756,9 +9102,9 @@ "license": "MIT" }, "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", - "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", + "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -9793,6 +9139,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, "license": "BSD-3-Clause", "optional": true, "dependencies": { @@ -9827,6 +9174,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -9844,7 +9192,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -9857,6 +9205,7 @@ "version": "11.8.6", "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, "license": "MIT", "dependencies": { "@sindresorhus/is": "^4.0.0", @@ -9910,6 +9259,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -10017,6 +9367,23 @@ "license": "MIT", "peer": true }, + "node_modules/hermes-estree": { + "version": "0.33.3", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.33.3.tgz", + "integrity": "sha512-6kzYZHCk8Fy1Uc+t3HGYyJn3OL4aeqKLTyina4UFtWl8I0kSL7OmKThaiX+Uh2f8nGw3mo4Ifxg0M5Zk3/Oeqg==", + "license": "MIT", + "peer": true + }, + "node_modules/hermes-parser": { + "version": "0.33.3", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.33.3.tgz", + "integrity": "sha512-Yg3HgaG4CqgyowtYjX/FsnPAuZdHOqSMtnbpylbptsQ9nwwSKsy6uRWcGO5RK0EqiX12q8HvDWKgeAVajRO5DA==", + "license": "MIT", + "peer": true, + "dependencies": { + "hermes-estree": "0.33.3" + } + }, "node_modules/hoist-non-react-statics": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", @@ -10079,8 +9446,40 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "dev": true, "license": "BSD-2-Clause" }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", @@ -10099,6 +9498,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dev": true, "license": "MIT", "dependencies": { "quick-lru": "^5.1.1", @@ -10130,32 +9530,6 @@ "node": ">=20.0.0" } }, - "node_modules/iconv-corefoundation": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz", - "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "cli-truncate": "^2.1.0", - "node-addon-api": "^1.6.3" - }, - "engines": { - "node": "^8.11.2 || >=10" - } - }, - "node_modules/iconv-corefoundation/node_modules/node-addon-api": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", - "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", - "dev": true, - "license": "MIT", - "optional": true - }, "node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", @@ -10263,12 +9637,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" - }, "node_modules/inline-style-parser": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz", @@ -10294,16 +9662,6 @@ "loose-envify": "^1.0.0" } }, - "node_modules/ip-address": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", - "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, "node_modules/is-alphabetical": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", @@ -10422,16 +9780,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -10473,19 +9821,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -10533,22 +9868,6 @@ "whatwg-fetch": "^3.4.1" } }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, "node_modules/jake": { "version": "10.9.4", "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", @@ -10567,13 +9886,6 @@ "node": ">=10" } }, - "node_modules/jake/node_modules/async": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", - "dev": true, - "license": "MIT" - }, "node_modules/jest-get-type": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", @@ -10649,19 +9961,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/jest-worker": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", @@ -10707,9 +10006,9 @@ } }, "node_modules/jiti": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", - "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", "dev": true, "license": "MIT", "bin": { @@ -10729,9 +10028,19 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], "license": "MIT", "dependencies": { "argparse": "^2.0.1" @@ -10763,6 +10072,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, "license": "MIT" }, "node_modules/json-parse-even-better-errors": { @@ -10795,6 +10105,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, "license": "ISC", "optional": true }, @@ -10814,6 +10125,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" @@ -10832,34 +10144,35 @@ } }, "node_modules/katex": { - "version": "0.16.47", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", - "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "version": "0.18.10", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.18.10.tgz", + "integrity": "sha512-/B6p9eY9DX7aHBfpkHdpirDTZ5QH9xTwL9y837PWuzuv41O5jFdqNQwVQEQsimY0/iVNkwBY4+4hMfhQ7d4Dbw==", "funding": [ "https://opencollective.com/katex", "https://github.com/sponsors/katex" ], "license": "MIT", "dependencies": { - "commander": "^8.3.0" + "commander": "^15.0.0" }, "bin": { "katex": "cli.js" } }, "node_modules/katex/node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz", + "integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==", "license": "MIT", "engines": { - "node": ">= 12" + "node": ">=22.12.0" } }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, "license": "MIT", "dependencies": { "json-buffer": "3.0.1" @@ -10975,6 +10288,279 @@ "license": "MIT", "peer": true }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -11065,23 +10651,6 @@ "license": "MIT", "peer": true }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/longest-streak": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", @@ -11104,17 +10673,11 @@ "loose-envify": "cli.js" } }, - "node_modules/loupe": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", - "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", - "dev": true, - "license": "MIT" - }, "node_modules/lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -11139,36 +10702,13 @@ } }, "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/make-fetch-happen": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-14.0.3.tgz", - "integrity": "sha512-QMjGbFTP0blj97EeidG5hk/QhKQ3T4ICckQGLgz38QF7Vgbk6e6FTARN8KhKxyBbWn8R0HU+bnw8aSoFPD4qtQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@npmcli/agent": "^3.0.0", - "cacache": "^19.0.1", - "http-cache-semantics": "^4.1.1", - "minipass": "^7.0.2", - "minipass-fetch": "^4.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^1.0.0", - "proc-log": "^5.0.0", - "promise-retry": "^2.0.1", - "ssri": "^12.0.0" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" + "@jridgewell/sourcemap-codec": "^1.6.0" } }, "node_modules/makeerror": { @@ -11214,6 +10754,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -11530,16 +11071,17 @@ "peer": true }, "node_modules/mermaid": { - "version": "11.17.0", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.17.0.tgz", - "integrity": "sha512-Jo9N377Wb4MSnHFPTbLi2SxFpsQl4eVHoxnW5U1Md9EazvgMp3s+4ohDxr81YNTgbn5Kj7HJ3yslrSJ52kwpbA==", + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.3.0.tgz", + "integrity": "sha512-4113TdXeLAsMruJ79OpFL5O8+LTFXhQqZ260rF3tgUmiNAtRm4Uume04I+65PRN6yZ69J4f8rVYWW8zRk65UYw==", "license": "MIT", "dependencies": { "@braintree/sanitize-url": "^7.1.2", "@iconify/utils": "^3.0.2", - "@mermaid-js/parser": "^1.2.1", + "@mermaid-js/parser": "^2.0.1", "@types/d3": "^7.4.3", "@upsetjs/venn.js": "^2.0.0", + "chevrotain": "~13.2.0", "cytoscape": "^3.34.0", "cytoscape-cose-bilkent": "^4.1.0", "cytoscape-fcose": "^2.2.0", @@ -11547,16 +11089,18 @@ "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.14", "dayjs": "^1.11.21", - "dompurify": "^3.3.3", + "dompurify": "^3.4.17", + "elkjs": "^0.12.0", "es-toolkit": "^1.45.1", - "fastdom": "1.0.12", - "katex": "^0.16.47", + "katex": "^0.18.0", "khroma": "^2.1.0", "marked": "^16.3.0", "roughjs": "^4.6.6", "stylis": "^4.3.6", - "ts-dedent": "^2.2.0", - "uuid": "^11.1.0 || ^12 || ^13 || ^14.0.0" + "ts-dedent": "^2.2.0" + }, + "engines": { + "node": ">=22.12.0" } }, "node_modules/mermaid/node_modules/stylis": { @@ -11565,6 +11109,387 @@ "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==", "license": "MIT" }, + "node_modules/metro": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro/-/metro-0.84.6.tgz", + "integrity": "sha512-ty/tx/imE5Ph2gvPU788Ckim6RAC2tyZxLz2hWRgC9U7/fGKV7qY/slADy0qHPEw9cpUgc4BfmV3oUsYwm7oeg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/core": "^7.25.2", + "@babel/generator": "^7.29.1", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "accepts": "^2.0.0", + "ci-info": "^2.0.0", + "connect": "^3.6.5", + "debug": "^4.4.0", + "error-stack-parser": "^2.0.6", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "hermes-parser": "0.35.0", + "invariant": "^2.2.4", + "jest-worker": "^29.7.0", + "jsc-safe-url": "^0.2.2", + "lodash.throttle": "^4.1.1", + "metro-babel-transformer": "0.84.6", + "metro-cache": "0.84.6", + "metro-cache-key": "0.84.6", + "metro-config": "0.84.6", + "metro-core": "0.84.6", + "metro-file-map": "0.84.6", + "metro-resolver": "0.84.6", + "metro-runtime": "0.84.6", + "metro-source-map": "0.84.6", + "metro-symbolicate": "0.84.6", + "metro-transform-plugins": "0.84.6", + "metro-transform-worker": "0.84.6", + "mime-types": "^3.0.1", + "nullthrows": "^1.1.1", + "serialize-error": "^2.1.0", + "source-map": "^0.5.6", + "throat": "^5.0.0", + "ws": "^7.5.10", + "yargs": "^17.6.2" + }, + "bin": { + "metro": "src/cli.js" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-babel-transformer": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.84.6.tgz", + "integrity": "sha512-B1ozl6KxFHbQjXZ2U8WiTPWXylqiD3V4EXyV5r0fqETOrqIrJlBvbVTD82UxIN+B3Vpe4l8G1tb15ocd2RyOQA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "flow-enums-runtime": "^0.0.6", + "hermes-parser": "0.35.0", + "metro-cache-key": "0.84.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-babel-transformer/node_modules/hermes-estree": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.35.0.tgz", + "integrity": "sha512-xVx5Opwy8Oo1I5yGpVRhCvWL/iV3M+ylksSKVNlxxD90cpDpR/AR1jLYqK8HWihm065a6UI3HeyAmYzwS8NOOg==", + "license": "MIT", + "peer": true + }, + "node_modules/metro-babel-transformer/node_modules/hermes-parser": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.35.0.tgz", + "integrity": "sha512-9JLjeHxBx8T4CAsydZR49PNZUaix+WpQJwu9p2010lu+7Kwl6D/7wYFFJxoz+aXkaaClp9Zfg6W6/zVlSJORaA==", + "license": "MIT", + "peer": true, + "dependencies": { + "hermes-estree": "0.35.0" + } + }, + "node_modules/metro-cache": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-cache/-/metro-cache-0.84.6.tgz", + "integrity": "sha512-KBJVpb02oKNO+jlWQ1Aax7cd11YP0MClDaMgx6C4MhyZ9g95J/dC1Bo6sCzXaU9L9h/w5cQfT5zDkGW5sOj99A==", + "license": "MIT", + "peer": true, + "dependencies": { + "exponential-backoff": "^3.1.1", + "flow-enums-runtime": "^0.0.6", + "https-proxy-agent": "^7.0.5", + "metro-core": "0.84.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-cache-key": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.84.6.tgz", + "integrity": "sha512-6tyXt1BZ/3U183XV48oif7Nm65TE+pTo0Vs31u4FxMgqiYQR/SiSr3RoXn3pmy4pd280ZmLmct0x3jZpu0pV4A==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-config": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.84.6.tgz", + "integrity": "sha512-cD2mLEofcuV26kxSV4hfV1Pbuh6igdUhYQriO8ZVeJ7HyZfq4/wqHV0gSR7fEO8NUp9odr60/Kzm5YakmghWwQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "connect": "^3.6.5", + "flow-enums-runtime": "^0.0.6", + "jest-validate": "^29.7.0", + "metro": "0.84.6", + "metro-cache": "0.84.6", + "metro-core": "0.84.6", + "metro-runtime": "0.84.6", + "yaml": "^2.6.1" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-core": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-core/-/metro-core-0.84.6.tgz", + "integrity": "sha512-ZqYskM8+f3PFMosBDJd8DLqRvT1ltRGhWL/ZfTpBvf4SoadO30VVrdhAoHFVGz3G1CJpWa3fgZH7nnnX/ybllA==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "lodash.throttle": "^4.1.1", + "metro-resolver": "0.84.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-file-map": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.84.6.tgz", + "integrity": "sha512-ov9VywWBsHPt54Zc7/DxWvqjTwxuZvhfeyHg8ZAMGKtf2PcH1wS3EnoBH7In53Rspk/eXVWAO5+avxunPn081w==", + "license": "MIT", + "peer": true, + "dependencies": { + "debug": "^4.4.0", + "fb-watchman": "^2.0.0", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "invariant": "^2.2.4", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "nullthrows": "^1.1.1", + "walker": "^1.0.7" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-minify-terser": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-minify-terser/-/metro-minify-terser-0.84.6.tgz", + "integrity": "sha512-SqhB/Kxrw0XfyW0k8mEscqX/CQopm6Fp3EpdSIPzvKfGgQp9bTMahg9PAdVsXUmIWwErbmFw1VqB+VFBOKksUw==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "terser": "^5.15.0" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-resolver": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.84.6.tgz", + "integrity": "sha512-PplpGc/OCLxgKeLNsLQO/VHsYDIvkcGGr3zNT7UanHCGRqhxKv245o+naV8cRI4/pcLqyc+9j+J0AJbT3Kp5Sg==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-runtime": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.84.6.tgz", + "integrity": "sha512-47EYO/DOai0PA3GoAyDpyXOgHNMwbl/Z9dQlQineDLHkpD42xOwMrIx1crT0+n6F+aGoEyxZmeFwfMzaIqVqKQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/runtime": "^7.25.0", + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-source-map": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.84.6.tgz", + "integrity": "sha512-4p/EplRbgNxhdqA6kAj1AmIq9qqYXYSAjgxuZ73rYA+p037xDDrxK8CyDKNfbn1k6aMuVt8LV0fpt7NHUTKiZw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-symbolicate": "0.84.6", + "nullthrows": "^1.1.1", + "ob1": "0.84.6", + "source-map": "^0.5.6", + "vlq": "^1.0.0" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-symbolicate": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.84.6.tgz", + "integrity": "sha512-wJFyyF5ysbVyoYVWGL6GwVMiNnGllwDU2gF096376fl0fc8IFUlADSyNlswj31K9og2sOilXe/FdyWFPczPUYg==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-source-map": "0.84.6", + "nullthrows": "^1.1.1", + "source-map": "^0.5.6", + "vlq": "^1.0.0" + }, + "bin": { + "metro-symbolicate": "src/index.js" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-transform-plugins": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.84.6.tgz", + "integrity": "sha512-pROPMFaj25Y9+3LlLqpBRz/7B/2YPnfEQz/z3juYxkh3FGQ+3c/Qh4E+khPSTdwTw0M6LitLYHMqaHMbQmuBJw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/generator": "^7.29.1", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "flow-enums-runtime": "^0.0.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro-transform-worker": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.84.6.tgz", + "integrity": "sha512-xLTVrOENaHR9DiuhnHS+zcle0rKsCy2CpXSIx7xD+zhJs+qVRNUyV7Z1zIt/0P/d0cSGVx846R+dIjHEudhcww==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/generator": "^7.29.1", + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "flow-enums-runtime": "^0.0.6", + "metro": "0.84.6", + "metro-babel-transformer": "0.84.6", + "metro-cache": "0.84.6", + "metro-cache-key": "0.84.6", + "metro-minify-terser": "0.84.6", + "metro-source-map": "0.84.6", + "metro-transform-plugins": "0.84.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, + "node_modules/metro/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "license": "MIT", + "peer": true + }, + "node_modules/metro/node_modules/hermes-estree": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.35.0.tgz", + "integrity": "sha512-xVx5Opwy8Oo1I5yGpVRhCvWL/iV3M+ylksSKVNlxxD90cpDpR/AR1jLYqK8HWihm065a6UI3HeyAmYzwS8NOOg==", + "license": "MIT", + "peer": true + }, + "node_modules/metro/node_modules/hermes-parser": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.35.0.tgz", + "integrity": "sha512-9JLjeHxBx8T4CAsydZR49PNZUaix+WpQJwu9p2010lu+7Kwl6D/7wYFFJxoz+aXkaaClp9Zfg6W6/zVlSJORaA==", + "license": "MIT", + "peer": true, + "dependencies": { + "hermes-estree": "0.35.0" + } + }, + "node_modules/metro/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/metro/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "peer": true, + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/metro/node_modules/serialize-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", + "integrity": "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/metro/node_modules/ws": { + "version": "7.5.14", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.14.tgz", + "integrity": "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/micromark": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", @@ -12191,16 +12116,6 @@ "node": ">= 0.6" } }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/mimic-function": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", @@ -12217,6 +12132,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -12238,16 +12154,17 @@ "license": "ISC" }, "node_modules/minimatch": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", - "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.5" + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -12257,6 +12174,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -12271,136 +12189,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/minipass-collect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-2.0.1.tgz", - "integrity": "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minipass-fetch": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-4.0.1.tgz", - "integrity": "sha512-j7U11C5HXigVuutxebFadoYBbd7VSdZWggSe64NVdvWNBqGAiXPL2QVCehjmw7lY1oF9gOllYbORh+hiNgfPgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "minipass": "^7.0.3", - "minipass-sized": "^1.0.3", - "minizlib": "^3.0.1" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/minipass-flush": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.7.tgz", - "integrity": "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-flush/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-flush/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, - "node_modules/minipass-pipeline": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", - "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-pipeline/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-pipeline/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, - "node_modules/minipass-sized": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", - "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, "node_modules/minizlib": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", @@ -12414,25 +12202,18 @@ } }, "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "license": "MIT", "peer": true, - "dependencies": { - "minimist": "^1.2.6" - }, "bin": { "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "license": "MIT" - }, "node_modules/mlly": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", @@ -12475,12 +12256,6 @@ "node": "^18 || >=20" } }, - "node_modules/napi-build-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", - "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", - "license": "MIT" - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -12489,21 +12264,29 @@ "license": "MIT" }, "node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", "license": "MIT", + "peer": true, + "dependencies": { + "content-type": "^2.1.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/next": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/next/-/next-16.3.1.tgz", - "integrity": "sha512-hsAp0i7Rh+/dhe7DGIeN2YlpLM1DP4MNxti9EtDMtqcO612X81MvvEj388/oTce9U1EcEIOWDlGq0zRwrBKvuA==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/next/-/next-16.4.6.tgz", + "integrity": "sha512-QZJiYhaZLJMo2KpkQGQIwvmd79WVsAWeYIU554a8d7zArS3si/IRy3lBNV/rtYhE70oLwdLYhPAXLPx8HwcwtA==", "license": "MIT", "dependencies": { - "@next/env": "16.3.1", + "@next/env": "16.4.6", "@swc/helpers": "0.5.23", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", @@ -12517,15 +12300,15 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.3.1", - "@next/swc-darwin-x64": "16.3.1", - "@next/swc-linux-arm64-gnu": "16.3.1", - "@next/swc-linux-arm64-musl": "16.3.1", - "@next/swc-linux-x64-gnu": "16.3.1", - "@next/swc-linux-x64-musl": "16.3.1", - "@next/swc-win32-arm64-msvc": "16.3.1", - "@next/swc-win32-x64-msvc": "16.3.1", - "sharp": "^0.35.3" + "@next/swc-darwin-arm64": "16.4.6", + "@next/swc-darwin-x64": "16.4.6", + "@next/swc-linux-arm64-gnu": "16.4.6", + "@next/swc-linux-arm64-musl": "16.4.6", + "@next/swc-linux-x64-gnu": "16.4.6", + "@next/swc-linux-x64-musl": "16.4.6", + "@next/swc-win32-arm64-msvc": "16.4.6", + "@next/swc-win32-x64-msvc": "16.4.6", + "sharp": "^0.35.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -12557,9 +12340,9 @@ "license": "MIT" }, "node_modules/node-abi": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.28.0.tgz", - "integrity": "sha512-Qfp5XZL1cJDOabOT8H5gnqMTmM4NjvYzHp4I/Kt/Sl76OVkOBBHRFlPspGV0hYvMoqQsypFjT/Yp7Km0beXW9g==", + "version": "4.40.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.40.0.tgz", + "integrity": "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w==", "dev": true, "license": "MIT", "dependencies": { @@ -12613,28 +12396,28 @@ } }, "node_modules/node-gyp": { - "version": "11.5.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-11.5.0.tgz", - "integrity": "sha512-ra7Kvlhxn5V9Slyus0ygMa2h+UqExPqUIkfk7Pc8QTLT956JLSy51uWFwHtIYy0vI8cB4BDhc/S03+880My/LQ==", + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", "dev": true, "license": "MIT", "dependencies": { "env-paths": "^2.2.0", "exponential-backoff": "^3.1.1", "graceful-fs": "^4.2.6", - "make-fetch-happen": "^14.0.3", - "nopt": "^8.0.0", - "proc-log": "^5.0.0", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", "semver": "^7.3.5", - "tar": "^7.4.3", + "tar": "^7.5.4", "tinyglobby": "^0.2.12", - "which": "^5.0.0" + "undici": "^6.25.0", + "which": "^6.0.0" }, "bin": { "node-gyp": "bin/node-gyp.js" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/node-gyp-build": { @@ -12649,67 +12432,67 @@ } }, "node_modules/node-gyp/node_modules/isexe": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", - "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", "dev": true, "license": "BlueOak-1.0.0", "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/node-gyp/node_modules/which": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", - "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", "dev": true, "license": "ISC", "dependencies": { - "isexe": "^3.1.1" + "isexe": "^4.0.0" }, "bin": { "node-which": "bin/which.js" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.53", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.53.tgz", - "integrity": "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==", + "version": "2.0.65", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.65.tgz", + "integrity": "sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==", "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/nopt": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", - "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", "dev": true, "license": "ISC", "dependencies": { - "abbrev": "^3.0.0" + "abbrev": "^4.0.0" }, "bin": { "nopt": "bin/nopt.js" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/normalize-url": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -12746,6 +12529,19 @@ "license": "MIT", "peer": true }, + "node_modules/ob1": { + "version": "0.84.6", + "resolved": "https://registry.npmjs.org/ob1/-/ob1-0.84.6.tgz", + "integrity": "sha512-+s+6zjd0X68hfAcn92NsEPXnSYOF3O7exw/Fj4UfRTB+UL+Tdjdkzu5/4WquXlzqgvNm8FWuuW6/0Yd8S2rYxw==", + "license": "MIT", + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" + } + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -12759,12 +12555,27 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, "license": "MIT", "optional": true, "engines": { "node": ">= 0.4" } }, + "node_modules/obug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz", + "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/omggif": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz", @@ -12793,17 +12604,18 @@ "wrappy": "1" } }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, + "node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", "license": "MIT", + "peer": true, "dependencies": { - "mimic-fn": "^2.1.0" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" }, "engines": { - "node": ">=6" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12827,30 +12639,6 @@ "node": ">= 0.8.0" } }, - "node_modules/ora": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", - "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/overlayscrollbars": { "version": "2.16.0", "resolved": "https://registry.npmjs.org/overlayscrollbars/-/overlayscrollbars-2.16.0.tgz", @@ -12871,6 +12659,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -12917,26 +12706,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-map": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.4.tgz", - "integrity": "sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, "node_modules/package-manager-detector": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz", @@ -13083,30 +12852,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "license": "MIT" }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -13116,23 +12861,6 @@ "node": ">=8" } }, - "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, "node_modules/pe-library": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", @@ -13161,12 +12889,6 @@ "url": "https://github.com/sponsors/Borewit" } }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "license": "MIT" - }, "node_modules/phin": { "version": "3.7.1", "resolved": "https://registry.npmjs.org/phin/-/phin-3.7.1.tgz", @@ -13187,9 +12909,9 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "license": "MIT", "engines": { "node": ">=12" @@ -13236,6 +12958,27 @@ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", "license": "MIT" }, + "node_modules/pkijs": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.3.tgz", + "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==", + "dev": true, + "license": "BSD-3-Clause", + "workspaces": [ + "website" + ], + "dependencies": { + "@noble/hashes": "1.8.0", + "asn1js": "^3.0.6", + "bytestreamjs": "^2.0.1", + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/playwright": { "version": "1.62.1", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.62.1.tgz", @@ -13398,45 +13141,6 @@ "node": "^12.20.0 || >=14" } }, - "node_modules/prebuild-install": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", - "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", - "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.", - "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^2.0.0", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/prebuild-install/node_modules/node-abi": { - "version": "3.89.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.89.0.tgz", - "integrity": "sha512-6u9UwL0HlAl21+agMN3YAMXcKByMqwGx+pq+P76vii5f7hTPtKDp08/H9py6DY+cfDw7kQNTGEj/rly3IgbNQA==", - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -13499,13 +13203,13 @@ "peer": true }, "node_modules/proc-log": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-5.0.0.tgz", - "integrity": "sha512-Azwzvl90HaF0aCz1JrDdXQykFakSSNPaPoiZ9fm5qJIMHioDZEi7OAdRwSm6rSoPtY3Qutnm3L7ogmg3dc+wbQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", "dev": true, "license": "ISC", "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/process": { @@ -13615,6 +13319,26 @@ "node": ">=6" } }, + "node_modules/pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/pvutils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz", + "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -13640,6 +13364,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -13658,30 +13383,6 @@ "node": ">= 0.6" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react": { "version": "19.2.4", "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", @@ -13703,9 +13404,9 @@ } }, "node_modules/react-devtools-core/node_modules/ws": { - "version": "7.5.10", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "version": "7.5.14", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.14.tgz", + "integrity": "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==", "license": "MIT", "peer": true, "engines": { @@ -13839,93 +13540,6 @@ "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" } }, - "node_modules/react-native/node_modules/@react-native/codegen": { - "version": "0.85.3", - "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.85.3.tgz", - "integrity": "sha512-/JkS1lGLyzBWP1FbgDwaqEf7qShIC6pUC1M0a/YMAd/v4iqR24MRkQWe7jkYvcBQ2LpEhs5NGE9InhxSv21zCA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/core": "^7.25.2", - "@babel/parser": "^7.29.0", - "hermes-parser": "0.33.3", - "invariant": "^2.2.4", - "nullthrows": "^1.1.1", - "tinyglobby": "^0.2.15", - "yargs": "^17.6.2" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - }, - "peerDependencies": { - "@babel/core": "*" - } - }, - "node_modules/react-native/node_modules/@react-native/community-cli-plugin": { - "version": "0.85.3", - "resolved": "https://registry.npmjs.org/@react-native/community-cli-plugin/-/community-cli-plugin-0.85.3.tgz", - "integrity": "sha512-fs85dmbIqNmtzEixDb0g+q6R3Vt4H9eAt8/inIZdDKfjN76+sUJA2r1nxODQ76bU23MrIbz8sI7KFBPaWk/zQw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@react-native/dev-middleware": "0.85.3", - "debug": "^4.4.0", - "invariant": "^2.2.4", - "metro": "^0.84.3", - "metro-config": "^0.84.3", - "metro-core": "^0.84.3", - "semver": "^7.1.3" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - }, - "peerDependencies": { - "@react-native-community/cli": "*", - "@react-native/metro-config": "0.85.3" - }, - "peerDependenciesMeta": { - "@react-native-community/cli": { - "optional": true - }, - "@react-native/metro-config": { - "optional": true - } - } - }, - "node_modules/react-native/node_modules/@react-native/debugger-frontend": { - "version": "0.85.3", - "resolved": "https://registry.npmjs.org/@react-native/debugger-frontend/-/debugger-frontend-0.85.3.tgz", - "integrity": "sha512-uAu7rM5o/Np1zgp6fi5zM1sP1aB8DcS7DdOLcj/TkSutOAjkMqqd2lWt1/+3S7qXexRHVK5XcP+o3VXo4L/V0A==", - "license": "BSD-3-Clause", - "peer": true, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/@react-native/dev-middleware": { - "version": "0.85.3", - "resolved": "https://registry.npmjs.org/@react-native/dev-middleware/-/dev-middleware-0.85.3.tgz", - "integrity": "sha512-JYzBiT4A8w+KQt+dOD5v+ti+tDrGoPnsSTuApq3Ls4RB5sfWbDlYMyz3dbc8qBIHz9tv0sQ5+eOu6Xwqzr5AQA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@isaacs/ttlcache": "^1.4.1", - "@react-native/debugger-frontend": "0.85.3", - "@react-native/debugger-shell": "0.85.3", - "chrome-launcher": "^0.15.2", - "chromium-edge-launcher": "^0.3.0", - "connect": "^3.6.5", - "debug": "^4.4.0", - "invariant": "^2.2.4", - "nullthrows": "^1.1.1", - "open": "^7.0.3", - "serve-static": "^1.16.2", - "ws": "^7.5.10" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, "node_modules/react-native/node_modules/@react-native/gradle-plugin": { "version": "0.85.3", "resolved": "https://registry.npmjs.org/@react-native/gradle-plugin/-/gradle-plugin-0.85.3.tgz", @@ -13953,27 +13567,6 @@ "license": "MIT", "peer": true }, - "node_modules/react-native/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "license": "MIT", - "peer": true, - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/react-native/node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "license": "MIT", - "peer": true - }, "node_modules/react-native/node_modules/commander": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", @@ -13984,395 +13577,6 @@ "node": ">=18" } }, - "node_modules/react-native/node_modules/hermes-estree": { - "version": "0.33.3", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.33.3.tgz", - "integrity": "sha512-6kzYZHCk8Fy1Uc+t3HGYyJn3OL4aeqKLTyina4UFtWl8I0kSL7OmKThaiX+Uh2f8nGw3mo4Ifxg0M5Zk3/Oeqg==", - "license": "MIT", - "peer": true - }, - "node_modules/react-native/node_modules/hermes-parser": { - "version": "0.33.3", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.33.3.tgz", - "integrity": "sha512-Yg3HgaG4CqgyowtYjX/FsnPAuZdHOqSMtnbpylbptsQ9nwwSKsy6uRWcGO5RK0EqiX12q8HvDWKgeAVajRO5DA==", - "license": "MIT", - "peer": true, - "dependencies": { - "hermes-estree": "0.33.3" - } - }, - "node_modules/react-native/node_modules/metro": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro/-/metro-0.84.5.tgz", - "integrity": "sha512-r1liLkyFZMVSEMNjU1CJU5pRzs3NdkxHqXS60O25c0rCIqAR+cGk7rPydw/g0WAIKVXojIBIF45yYBPagJGcgw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/code-frame": "^7.29.0", - "@babel/core": "^7.25.2", - "@babel/generator": "^7.29.1", - "@babel/parser": "^7.29.0", - "@babel/template": "^7.28.6", - "@babel/traverse": "^7.29.0", - "@babel/types": "^7.29.0", - "accepts": "^2.0.0", - "ci-info": "^2.0.0", - "connect": "^3.6.5", - "debug": "^4.4.0", - "error-stack-parser": "^2.0.6", - "flow-enums-runtime": "^0.0.6", - "graceful-fs": "^4.2.4", - "hermes-parser": "0.35.0", - "invariant": "^2.2.4", - "jest-worker": "^29.7.0", - "jsc-safe-url": "^0.2.2", - "lodash.throttle": "^4.1.1", - "metro-babel-transformer": "0.84.5", - "metro-cache": "0.84.5", - "metro-cache-key": "0.84.5", - "metro-config": "0.84.5", - "metro-core": "0.84.5", - "metro-file-map": "0.84.5", - "metro-resolver": "0.84.5", - "metro-runtime": "0.84.5", - "metro-source-map": "0.84.5", - "metro-symbolicate": "0.84.5", - "metro-transform-plugins": "0.84.5", - "metro-transform-worker": "0.84.5", - "mime-types": "^3.0.1", - "nullthrows": "^1.1.1", - "serialize-error": "^2.1.0", - "source-map": "^0.5.6", - "throat": "^5.0.0", - "ws": "^7.5.10", - "yargs": "^17.6.2" - }, - "bin": { - "metro": "src/cli.js" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-babel-transformer": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.84.5.tgz", - "integrity": "sha512-2WbHILKMiJUzfdjmGOQOqU1bWi9//gqiclc/tkk/AIsrrVw3efhZ1uhkOwMTxUEPOzqoo091H0olLmVZH5FHGQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/core": "^7.25.2", - "flow-enums-runtime": "^0.0.6", - "hermes-parser": "0.35.0", - "metro-cache-key": "0.84.5", - "nullthrows": "^1.1.1" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-babel-transformer/node_modules/hermes-estree": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.35.0.tgz", - "integrity": "sha512-xVx5Opwy8Oo1I5yGpVRhCvWL/iV3M+ylksSKVNlxxD90cpDpR/AR1jLYqK8HWihm065a6UI3HeyAmYzwS8NOOg==", - "license": "MIT", - "peer": true - }, - "node_modules/react-native/node_modules/metro-babel-transformer/node_modules/hermes-parser": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.35.0.tgz", - "integrity": "sha512-9JLjeHxBx8T4CAsydZR49PNZUaix+WpQJwu9p2010lu+7Kwl6D/7wYFFJxoz+aXkaaClp9Zfg6W6/zVlSJORaA==", - "license": "MIT", - "peer": true, - "dependencies": { - "hermes-estree": "0.35.0" - } - }, - "node_modules/react-native/node_modules/metro-cache": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-cache/-/metro-cache-0.84.5.tgz", - "integrity": "sha512-WHS0n2OxQqtwEjSeQFPePNrMvEFhmQcUQM9cRJMHByWoi/GMWFBEWOf7hVkAM/0KRutAXNbDlSu/cZB6CyxgQQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "exponential-backoff": "^3.1.1", - "flow-enums-runtime": "^0.0.6", - "https-proxy-agent": "^7.0.5", - "metro-core": "0.84.5" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-cache-key": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.84.5.tgz", - "integrity": "sha512-3dPB2TnvGjjf0/9O7AXVQURKXuQNauTZE7WpTGTlR017Gh/B5y0m/2wcqxfveUguHSpu89KhVxCAlr2k/H7uhQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-config": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.84.5.tgz", - "integrity": "sha512-zie+uN6oohscowi2S7ByU+wUw6CrT4ZxW9uAbONOObSxx86RGmnIAmjXHLkfmcdYoY7jzOPEbqcI6oeVmqyBQA==", - "license": "MIT", - "peer": true, - "dependencies": { - "connect": "^3.6.5", - "flow-enums-runtime": "^0.0.6", - "jest-validate": "^29.7.0", - "metro": "0.84.5", - "metro-cache": "0.84.5", - "metro-core": "0.84.5", - "metro-runtime": "0.84.5", - "yaml": "^2.6.1" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-core": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-core/-/metro-core-0.84.5.tgz", - "integrity": "sha512-xwm605hCi5Y6eJTTb8ZWo6pkUcoBEIyiQOfkZh5GwtDwUrP9SNhTQZhzJHrBCwwxlf3Ptl/pxWJgQ1rsNYMnrA==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6", - "lodash.throttle": "^4.1.1", - "metro-resolver": "0.84.5" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-file-map": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.84.5.tgz", - "integrity": "sha512-mlm/JL8toSbSc2akpKIGmzvrVRSCgZ5vkbycI34oMLoOnLGuLyC8WTyVJ6P0hZG/usDaGwZSl/s9BCRriqjGJA==", - "license": "MIT", - "peer": true, - "dependencies": { - "debug": "^4.4.0", - "fb-watchman": "^2.0.0", - "flow-enums-runtime": "^0.0.6", - "graceful-fs": "^4.2.4", - "invariant": "^2.2.4", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "nullthrows": "^1.1.1", - "walker": "^1.0.7" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-minify-terser": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-minify-terser/-/metro-minify-terser-0.84.5.tgz", - "integrity": "sha512-BJoFwCEDsYnagPqarayInv2+diCDNDdLlaof/p6s9w4gh+gc9HXYM+pDvsKGKKUumpZswNF3Z/ftTMqKl/5IBg==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6", - "terser": "^5.15.0" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-resolver": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.84.5.tgz", - "integrity": "sha512-VSSnepg1k6LyCwtb6eirWdAWlpKwBG8Rdtsr1mU38rMelFyWgh3/QuMSiZIZAIjwg/fsa8GhW5/FO54CAUPCEA==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-runtime": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.84.5.tgz", - "integrity": "sha512-U1m2+d1Pr+JO2/iVXBB2OfXXityz7tqwIorxfrT15IEgaHvpJBq/OHiqnOWPKJbUl3JcxjcdviZZOKk85oK4Qg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.25.0", - "flow-enums-runtime": "^0.0.6" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-source-map": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.84.5.tgz", - "integrity": "sha512-2BtV5L9uPc49F13Gn5wiP6bX/EncqzqTIk2VL/0F/96Vo0YEOjluT/qktQjFODfqGFsucwnh5mPEAl/2jVEfeg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/traverse": "^7.29.0", - "@babel/types": "^7.29.0", - "flow-enums-runtime": "^0.0.6", - "invariant": "^2.2.4", - "metro-symbolicate": "0.84.5", - "nullthrows": "^1.1.1", - "ob1": "0.84.5", - "source-map": "^0.5.6", - "vlq": "^1.0.0" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-symbolicate": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.84.5.tgz", - "integrity": "sha512-rQ40zYDAkaWBN9yvjUuAD0ZpzBMZSoKyGYXnb5JrfbKjun7fTvfoLHL3KXFYenBTYZkQtlp4cKSCv/1utxFyOw==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6", - "invariant": "^2.2.4", - "metro-source-map": "0.84.5", - "nullthrows": "^1.1.1", - "source-map": "^0.5.6", - "vlq": "^1.0.0" - }, - "bin": { - "metro-symbolicate": "src/index.js" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-transform-plugins": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.84.5.tgz", - "integrity": "sha512-+InaSVGaOyt0DyRo4Y/zIdPI6CZwnbNho5LAL23tgmuGwv7fyfkF7kKfPjZcfxXBcoYdTLLFnCfCH/dHSiCqNg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/core": "^7.25.2", - "@babel/generator": "^7.29.1", - "@babel/template": "^7.28.6", - "@babel/traverse": "^7.29.0", - "flow-enums-runtime": "^0.0.6", - "nullthrows": "^1.1.1" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro-transform-worker": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.84.5.tgz", - "integrity": "sha512-ui1Z8x4s5RL36gMmKLaMMO7O9NNDHNdthEZSCDQHAau3JcAsTaFOK6I+2q4I/kW5u8hSEjJk9L45TXSVJw6g1A==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/core": "^7.25.2", - "@babel/generator": "^7.29.1", - "@babel/parser": "^7.29.0", - "@babel/types": "^7.29.0", - "flow-enums-runtime": "^0.0.6", - "metro": "0.84.5", - "metro-babel-transformer": "0.84.5", - "metro-cache": "0.84.5", - "metro-cache-key": "0.84.5", - "metro-minify-terser": "0.84.5", - "metro-source-map": "0.84.5", - "metro-transform-plugins": "0.84.5", - "nullthrows": "^1.1.1" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/metro/node_modules/hermes-estree": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.35.0.tgz", - "integrity": "sha512-xVx5Opwy8Oo1I5yGpVRhCvWL/iV3M+ylksSKVNlxxD90cpDpR/AR1jLYqK8HWihm065a6UI3HeyAmYzwS8NOOg==", - "license": "MIT", - "peer": true - }, - "node_modules/react-native/node_modules/metro/node_modules/hermes-parser": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.35.0.tgz", - "integrity": "sha512-9JLjeHxBx8T4CAsydZR49PNZUaix+WpQJwu9p2010lu+7Kwl6D/7wYFFJxoz+aXkaaClp9Zfg6W6/zVlSJORaA==", - "license": "MIT", - "peer": true, - "dependencies": { - "hermes-estree": "0.35.0" - } - }, - "node_modules/react-native/node_modules/mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/react-native/node_modules/mime-types": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", - "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", - "license": "MIT", - "peer": true, - "dependencies": { - "mime-db": "^1.54.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/react-native/node_modules/ob1": { - "version": "0.84.5", - "resolved": "https://registry.npmjs.org/ob1/-/ob1-0.84.5.tgz", - "integrity": "sha512-aH9RkoZc7w/90HBamFxTw8ZLFr05wXS+iOnvmrgo53Ep8Pyrm5FieQSaPIVROkfFVQISeD/zo92fes26TOwe+A==", - "license": "MIT", - "peer": true, - "dependencies": { - "flow-enums-runtime": "^0.0.6" - }, - "engines": { - "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0" - } - }, - "node_modules/react-native/node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "license": "MIT", - "peer": true, - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/react-native/node_modules/react-refresh": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", @@ -14383,20 +13587,10 @@ "node": ">=0.10.0" } }, - "node_modules/react-native/node_modules/serialize-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-native/node_modules/ws": { - "version": "7.5.10", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "version": "7.5.14", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.14.tgz", + "integrity": "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==", "license": "MIT", "peer": true, "engines": { @@ -14415,32 +13609,6 @@ } } }, - "node_modules/react-native/node_modules/yaml": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", - "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", - "license": "ISC", - "peer": true, - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", @@ -14702,6 +13870,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "dev": true, "license": "MIT" }, "node_modules/resolve-from": { @@ -14717,6 +13886,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dev": true, "license": "MIT", "dependencies": { "lowercase-keys": "^2.0.0" @@ -14725,20 +13895,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -14781,6 +13937,7 @@ "version": "2.15.4", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, "license": "BSD-3-Clause", "optional": true, "dependencies": { @@ -14801,51 +13958,48 @@ "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", "license": "Unlicense" }, - "node_modules/rollup": { - "version": "4.60.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.1.tgz", - "integrity": "sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==", + "node_modules/rolldown": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz", + "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.8" + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" }, "bin": { - "rollup": "dist/bin/rollup" + "rolldown": "bin/cli.mjs" }, "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" + "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.60.1", - "@rollup/rollup-android-arm64": "4.60.1", - "@rollup/rollup-darwin-arm64": "4.60.1", - "@rollup/rollup-darwin-x64": "4.60.1", - "@rollup/rollup-freebsd-arm64": "4.60.1", - "@rollup/rollup-freebsd-x64": "4.60.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.1", - "@rollup/rollup-linux-arm-musleabihf": "4.60.1", - "@rollup/rollup-linux-arm64-gnu": "4.60.1", - "@rollup/rollup-linux-arm64-musl": "4.60.1", - "@rollup/rollup-linux-loong64-gnu": "4.60.1", - "@rollup/rollup-linux-loong64-musl": "4.60.1", - "@rollup/rollup-linux-ppc64-gnu": "4.60.1", - "@rollup/rollup-linux-ppc64-musl": "4.60.1", - "@rollup/rollup-linux-riscv64-gnu": "4.60.1", - "@rollup/rollup-linux-riscv64-musl": "4.60.1", - "@rollup/rollup-linux-s390x-gnu": "4.60.1", - "@rollup/rollup-linux-x64-gnu": "4.60.1", - "@rollup/rollup-linux-x64-musl": "4.60.1", - "@rollup/rollup-openbsd-x64": "4.60.1", - "@rollup/rollup-openharmony-arm64": "4.60.1", - "@rollup/rollup-win32-arm64-msvc": "4.60.1", - "@rollup/rollup-win32-ia32-msvc": "4.60.1", - "@rollup/rollup-win32-x64-gnu": "4.60.1", - "@rollup/rollup-win32-x64-msvc": "4.60.1", - "fsevents": "~2.3.2" + "@rolldown/binding-android-arm-eabi": "1.2.19", + "@rolldown/binding-android-arm64": "1.2.19", + "@rolldown/binding-darwin-arm64": "1.2.19", + "@rolldown/binding-darwin-x64": "1.2.19", + "@rolldown/binding-freebsd-x64": "1.2.19", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", + "@rolldown/binding-linux-arm64-gnu": "1.2.19", + "@rolldown/binding-linux-arm64-musl": "1.2.19", + "@rolldown/binding-linux-ppc64-gnu": "1.2.19", + "@rolldown/binding-linux-s390x-gnu": "1.2.19", + "@rolldown/binding-linux-x64-gnu": "1.2.19", + "@rolldown/binding-linux-x64-musl": "1.2.19", + "@rolldown/binding-openharmony-arm64": "1.2.19", + "@rolldown/binding-wasm32-wasi": "1.2.19", + "@rolldown/binding-win32-arm64-msvc": "1.2.19", + "@rolldown/binding-win32-x64-msvc": "1.2.19" } }, + "node_modules/rolldown/node_modules/@rolldown/pluginutils": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz", + "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==", + "dev": true, + "license": "MIT" + }, "node_modules/roughjs": { "version": "4.6.6", "resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", @@ -14901,9 +14055,9 @@ "license": "MIT" }, "node_modules/sanitize-filename": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz", - "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.5.tgz", + "integrity": "sha512-+dVApt46/oAFWRP0KBSnYNLRw1peY7o/b12tmpllPNFpjfwkPuZut1+DiKaD9zYx5r2SHwc+XMLSBaDiyUJw3g==", "dev": true, "license": "WTFPL OR ISC", "dependencies": { @@ -14941,13 +14095,111 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, "license": "MIT", "optional": true }, + "node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "peer": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "peer": true + }, + "node_modules/send/node_modules/encodeurl": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz", + "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "peer": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/send/node_modules/on-finished": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/send/node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/serialize-error": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -14964,6 +14216,7 @@ "version": "0.13.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, "license": "(MIT OR CC0-1.0)", "optional": true, "engines": { @@ -14989,46 +14242,12 @@ "node": ">= 0.8.0" } }, - "node_modules/serve-static/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "peer": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-static/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT", - "peer": true - }, "node_modules/serve-static/node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz", + "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==", "license": "MIT", "peer": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serve-static/node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, "engines": { "node": ">= 0.8" }, @@ -15037,67 +14256,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/serve-static/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "license": "MIT", - "peer": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/serve-static/node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "peer": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serve-static/node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "license": "MIT", - "peer": true, - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-static/node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -15112,9 +14270,9 @@ "peer": true }, "node_modules/sharp": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.3.tgz", - "integrity": "sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==", + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", "license": "Apache-2.0", "optional": true, "dependencies": { @@ -15129,31 +14287,31 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.3", - "@img/sharp-darwin-x64": "0.35.3", - "@img/sharp-freebsd-wasm32": "0.35.3", - "@img/sharp-libvips-darwin-arm64": "1.3.2", - "@img/sharp-libvips-darwin-x64": "1.3.2", - "@img/sharp-libvips-linux-arm": "1.3.2", - "@img/sharp-libvips-linux-arm64": "1.3.2", - "@img/sharp-libvips-linux-ppc64": "1.3.2", - "@img/sharp-libvips-linux-riscv64": "1.3.2", - "@img/sharp-libvips-linux-s390x": "1.3.2", - "@img/sharp-libvips-linux-x64": "1.3.2", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.2", - "@img/sharp-libvips-linuxmusl-x64": "1.3.2", - "@img/sharp-linux-arm": "0.35.3", - "@img/sharp-linux-arm64": "0.35.3", - "@img/sharp-linux-ppc64": "0.35.3", - "@img/sharp-linux-riscv64": "0.35.3", - "@img/sharp-linux-s390x": "0.35.3", - "@img/sharp-linux-x64": "0.35.3", - "@img/sharp-linuxmusl-arm64": "0.35.3", - "@img/sharp-linuxmusl-x64": "0.35.3", - "@img/sharp-webcontainers-wasm32": "0.35.3", - "@img/sharp-win32-arm64": "0.35.3", - "@img/sharp-win32-ia32": "0.35.3", - "@img/sharp-win32-x64": "0.35.3" + "@img/sharp-darwin-arm64": "0.35.5", + "@img/sharp-darwin-x64": "0.35.5", + "@img/sharp-freebsd-wasm32": "0.35.5", + "@img/sharp-libvips-darwin-arm64": "1.3.4", + "@img/sharp-libvips-darwin-x64": "1.3.4", + "@img/sharp-libvips-linux-arm": "1.3.4", + "@img/sharp-libvips-linux-arm64": "1.3.4", + "@img/sharp-libvips-linux-ppc64": "1.3.4", + "@img/sharp-libvips-linux-riscv64": "1.3.4", + "@img/sharp-libvips-linux-s390x": "1.3.4", + "@img/sharp-libvips-linux-x64": "1.3.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", + "@img/sharp-libvips-linuxmusl-x64": "1.3.4", + "@img/sharp-linux-arm": "0.35.5", + "@img/sharp-linux-arm64": "0.35.5", + "@img/sharp-linux-ppc64": "0.35.5", + "@img/sharp-linux-riscv64": "0.35.5", + "@img/sharp-linux-s390x": "0.35.5", + "@img/sharp-linux-x64": "0.35.5", + "@img/sharp-linuxmusl-arm64": "0.35.5", + "@img/sharp-linuxmusl-x64": "0.35.5", + "@img/sharp-webcontainers-wasm32": "0.35.5", + "@img/sharp-win32-arm64": "0.35.5", + "@img/sharp-win32-ia32": "0.35.5", + "@img/sharp-win32-x64": "0.35.5" }, "peerDependenciesMeta": { "@types/node": { @@ -15162,9 +14320,9 @@ } }, "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "license": "ISC", "optional": true, "bin": { @@ -15196,9 +14354,9 @@ } }, "node_modules/shell-quote": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.10.0.tgz", - "integrity": "sha512-w1aiOKwKuRgtwAReIIj89puqg+I7GvX4IbLrvmhXbzQsj1+Zwi4VO3+fa6ZF91TWSjIxoEkKnMeHcLEODK5ZXA==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz", + "integrity": "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==", "license": "MIT", "peer": true, "engines": { @@ -15208,64 +14366,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "license": "ISC" }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, "node_modules/simple-update-notifier": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", @@ -15279,63 +14385,6 @@ "node": ">=10" } }, - "node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", - "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ip-address": "^10.0.1", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", - "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -15346,9 +14395,9 @@ } }, "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -15387,29 +14436,10 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, "license": "BSD-3-Clause", "optional": true }, - "node_modules/ssri": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-12.0.0.tgz", - "integrity": "sha512-S7iGNosepx9RadX82oimUkvr0Ct7IjJbEbs4mJcTxst8um95J3sDYU1RBEOvdu6oL1Wek2ODI5i4MAw+dZ6cAQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, "node_modules/stackframe": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", @@ -15461,18 +14491,12 @@ } }, "node_modules/std-env": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", - "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", "dev": true, "license": "MIT" }, - "node_modules/strictdom": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strictdom/-/strictdom-1.0.1.tgz", - "integrity": "sha512-cEmp9QeXXRmjj/rVp9oyiqcvyocWab/HaoN4+bwFeZ7QzykJD6L3yD4v12K1x0tHpqRqVpJevN3gW7kyM39Bqg==", - "license": "MIT" - }, "node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -15496,22 +14520,6 @@ "node": ">=8" } }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/stringify-entities": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", @@ -15538,20 +14546,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", @@ -15690,9 +14684,9 @@ } }, "node_modules/tar": { - "version": "7.5.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.13.tgz", - "integrity": "sha512-tOG/7GyXpFevhXVh8jOPJrmtRpOTsYqUIkVdVooZYJS/z8WhfQUX8RJILmeuJNinGAMSu1veBr4asSHFt5/hng==", + "version": "7.5.23", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.23.tgz", + "integrity": "sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", @@ -15705,54 +14699,6 @@ "node": ">=18" } }, - "node_modules/tar-fs": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", - "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==", - "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-fs/node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/tar/node_modules/yallist": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", @@ -15804,9 +14750,9 @@ } }, "node_modules/temp-file/node_modules/jsonfile": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", - "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "license": "MIT", "dependencies": { @@ -15826,6 +14772,20 @@ "node": ">= 10.0.0" } }, + "node_modules/temp/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, "node_modules/temp/node_modules/rimraf": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", @@ -15898,9 +14858,9 @@ } }, "node_modules/tiny-async-pool/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.3.tgz", + "integrity": "sha512-kM18BPOqTi0+TB68703/GJRpAML5Me+IDQsR1J26YB3EFKKNEyHIVZuWDX7+WKQB3tHwDwgk24BfhdpWUbytvQ==", "dev": true, "license": "ISC", "bin": { @@ -15914,11 +14874,14 @@ "license": "MIT" }, "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.3.tgz", + "integrity": "sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } }, "node_modules/tinycolor2": { "version": "1.6.0", @@ -15927,16 +14890,18 @@ "license": "MIT" }, "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "license": "MIT", + "engines": { + "node": ">=18" + } }, "node_modules/tinyglobby": { - "version": "0.2.16", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", - "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "license": "MIT", "dependencies": { "fdir": "^6.5.0", @@ -15949,40 +14914,10 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/tinyrainbow": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", - "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", - "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/tmp": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", - "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", + "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", "dev": true, "license": "MIT", "engines": { @@ -16110,18 +15045,6 @@ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -16193,6 +15116,16 @@ "node": ">= 16" } }, + "node_modules/undici": { + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", @@ -16218,32 +15151,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/unique-filename": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-4.0.0.tgz", - "integrity": "sha512-XSnEewXmQ+veP7xX2dS5Q4yZAvO40cBN2MWkJ7D/6sW4Dg6wYBNwM1Vrnz1FhH5AdeLIlUXRI9e28z1YZi71NQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "unique-slug": "^5.0.0" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, - "node_modules/unique-slug": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-5.0.0.tgz", - "integrity": "sha512-9OdaqO5kwqR+1kVgHAhsp5vPNU0hnxRa26rBFNfNgM7M6pNtgzeBn3s/xbyCQL3dcjzOatcef6UUHpB/6MaETg==", - "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^18.17.0 || >=20.5.0" - } - }, "node_modules/unist-util-is": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", @@ -16316,6 +15223,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, "license": "MIT", "engines": { "node": ">= 4.0.0" @@ -16331,10 +15239,62 @@ "node": ">= 0.8" } }, + "node_modules/unzipper": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz", + "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "~3.7.2", + "duplexer2": "~0.1.4", + "fs-extra": "11.3.1", + "graceful-fs": "^4.2.2", + "node-int64": "^0.4.0" + } + }, + "node_modules/unzipper/node_modules/fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/unzipper/node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/unzipper/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/update-browserslist-db": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.1.tgz", - "integrity": "sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz", + "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==", "funding": [ { "type": "opencollective", @@ -16403,43 +15363,6 @@ "node": ">= 0.4.0" } }, - "node_modules/uuid": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", - "integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist-node/bin/uuid" - } - }, - "node_modules/verror": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", - "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/verror/node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", - "dev": true, - "license": "MIT", - "optional": true - }, "node_modules/vfile": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", @@ -16469,21 +15392,23 @@ } }, "node_modules/vite": { - "version": "5.4.21", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", - "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "version": "8.3.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz", + "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.32", + "rolldown": "~1.2.18", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -16492,23 +15417,33 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, - "less": { + "@vitejs/devtools": { "optional": true }, - "lightningcss": { + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { "optional": true }, "sass": { @@ -16525,85 +15460,130 @@ }, "terser": { "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true } } }, - "node_modules/vite-node": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", - "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", + "node_modules/vite/node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.7", - "es-module-lexer": "^1.5.4", - "pathe": "^1.1.2", - "vite": "^5.0.0" - }, "bin": { - "vite-node": "vite-node.mjs" + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/vite/node_modules/postcss": { + "version": "8.5.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": "^10 || ^12 || >=14" } }, "node_modules/vitest": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz", - "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.0.tgz", + "integrity": "sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "2.1.9", - "@vitest/mocker": "2.1.9", - "@vitest/pretty-format": "^2.1.9", - "@vitest/runner": "2.1.9", - "@vitest/snapshot": "2.1.9", - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "debug": "^4.3.7", - "expect-type": "^1.1.0", - "magic-string": "^0.30.12", - "pathe": "^1.1.2", - "std-env": "^3.8.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.1", - "tinypool": "^1.0.1", - "tinyrainbow": "^1.2.0", - "vite": "^5.0.0", - "vite-node": "2.1.9", - "why-is-node-running": "^2.3.0" + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.1.0", + "chai": "^6.3.0", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.4.3", + "obug": "^3.0.0", + "picomatch": "^4.0.7", + "std-env": "^4.3.0", + "tinybench": "^6.2.2", + "tinyexec": "^1.3.1", + "tinyglobby": "^0.2.17", + "why-is-node-running": "3.2.1" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.1.9", - "@vitest/ui": "2.1.9", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.1.0", + "@vitest/browser-preview": "5.1.0", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.1.0", + "@vitest/coverage-v8": "5.1.0", + "@vitest/ui": "5.1.0", "happy-dom": "*", - "jsdom": "*" + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { "optional": true }, + "@opentelemetry/api": { + "optional": true + }, "@types/node": { "optional": true }, - "@vitest/browser": { + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { "optional": true }, "@vitest/ui": { @@ -16614,6 +15594,9 @@ }, "jsdom": { "optional": true + }, + "vite": { + "optional": false } } }, @@ -16634,14 +15617,18 @@ "makeerror": "1.0.12" } }, - "node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "node_modules/webcrypto-core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz", + "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==", "dev": true, "license": "MIT", "dependencies": { - "defaults": "^1.0.3" + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" } }, "node_modules/webidl-conversions": { @@ -16688,20 +15675,16 @@ } }, "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz", + "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==", "dev": true, "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, "bin": { "why-is-node-running": "cli.js" }, "engines": { - "node": ">=8" + "node": ">=20.11" } }, "node_modules/word-wrap": { @@ -16731,25 +15714,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -16870,12 +15834,19 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz", - "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", "license": "ISC", + "peer": true, + "bin": { + "yaml": "bin.mjs" + }, "engines": { - "node": ">= 6" + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" } }, "node_modules/yargs": { @@ -16905,16 +15876,6 @@ "node": ">=12" } }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -16940,7 +15901,7 @@ }, "packages/api-client": { "name": "@d3ro/api-client", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "@supabase/supabase-js": "^2.45.0" @@ -16956,7 +15917,7 @@ }, "packages/core": { "name": "@d3ro/core", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "docx": "^9.6.1" @@ -16967,7 +15928,7 @@ }, "packages/i18n": { "name": "@d3ro/i18n", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "devDependencies": { "@types/react": "^19.0.0" @@ -16978,7 +15939,7 @@ }, "packages/ui": { "name": "@d3ro/ui", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "dependencies": { "@d3ro/core": "*" @@ -16998,7 +15959,7 @@ }, "packages/ui-native": { "name": "@d3ro/ui-native", - "version": "1.17.1", + "version": "1.18.4", "license": "MIT", "devDependencies": { "@types/react": "*" diff --git a/package.json b/package.json index fcb80d0e..6312b163 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,13 @@ { "name": "d3ro-voice-monorepo", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice — 멀티플랫폼 AI 음성 어시스턴트 (Monorepo)", "author": "D3RO", "license": "MIT", + "engines": { + "node": "24.x" + }, "workspaces": [ "apps/desktop", "apps/web", @@ -87,9 +90,11 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", + "electron": "43.8.10", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "prettier": "^3.3.0", - "typescript": "^5.7.0" + "typescript": "^5.7.0", + "vitest": "^5.1.0" } } diff --git a/packages/api-client/package.json b/packages/api-client/package.json index 35b0e112..00f0a07c 100644 --- a/packages/api-client/package.json +++ b/packages/api-client/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/api-client", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice API 클라이언트 — Supabase 래퍼 (web/desktop/mobile 공유)", "license": "MIT", diff --git a/packages/core/__tests__/screen-ocr.test.ts b/packages/core/__tests__/screen-ocr.test.ts new file mode 100644 index 00000000..fcaf5db6 --- /dev/null +++ b/packages/core/__tests__/screen-ocr.test.ts @@ -0,0 +1,279 @@ +import { describe, expect, it } from 'vitest' +import { + allWords, + buildSearchablePdfHtml, + chooseOcrScale, + clampRect, + detectLinks, + flowSelection, + lineSelection, + nearestWordIndex, + parseOcrEngineOutput, + pickTranslationTarget, + rectFromPoints, + selectionBounds, + selectionHighlightRects, + selectionText, + wordAtPoint, + wordsInRect, + wordsRelativeTo, + type OcrResult +} from '../src/screen-ocr' + +/** 한 줄에 단어를 폭 40, 간격 10 으로 늘어놓는다. */ +function line(y: number, texts: string[], startX = 10): { words: Array> } { + return { words: texts.map((t, i) => ({ t, x: startX + i * 50, y, w: 40, h: 20 })) } +} + +function sample(): OcrResult { + const result = parseOcrEngineOutput({ + lang: 'ko', + lines: [line(10, ['화면', 'OCR', '기능']), line(50, ['둘째', '줄']), line(90, ['Third', 'line', 'here'])] + }) + if (!result) throw new Error('sample did not parse') + return result +} + +describe('parseOcrEngineOutput', () => { + it('엔진출력해석_정상입력_읽는순서로단어번호와줄범위를매긴다', () => { + const result = sample() + expect(result.language).toBe('ko') + expect(result.words.map((w) => w.text)).toEqual(['화면', 'OCR', '기능', '둘째', '줄', 'Third', 'line', 'here']) + expect(result.words.map((w) => w.index)).toEqual([0, 1, 2, 3, 4, 5, 6, 7]) + expect(result.lines.map((l) => [l.start, l.count])).toEqual([ + [0, 3], + [3, 2], + [5, 3] + ]) + expect(result.lines[0]).toMatchObject({ x: 10, y: 10, width: 140, height: 20 }) + }) + + it('엔진출력해석_모양이틀린최상위_null을돌려줘빈결과로꾸미지않는다', () => { + expect(parseOcrEngineOutput(null)).toBeNull() + expect(parseOcrEngineOutput({ lang: 'ko' })).toBeNull() + expect(parseOcrEngineOutput({ lines: 'nope' })).toBeNull() + }) + + it('엔진출력해석_망가진단어와빈줄_버리고나머지번호는이어진다', () => { + const result = parseOcrEngineOutput({ + lang: 'en', + lines: [ + { words: [{ t: '', x: 0, y: 0, w: 10, h: 10 }, { t: 'ok', x: 'NaN', y: 0, w: 10, h: 10 }] }, + { words: [{ t: 'zero', x: 0, y: 0, w: 0, h: 10 }, { t: 'kept', x: 5, y: 5, w: 10, h: 10 }] }, + 'garbage' + ] + }) + expect(result?.words.map((w) => [w.text, w.index, w.line])).toEqual([['kept', 0, 0]]) + expect(result?.lines).toHaveLength(1) + }) +}) + +describe('사각형 선택', () => { + it('사각형선택_중심이든단어만_살짝스친옆줄은고르지않는다', () => { + const result = sample() + // 첫 줄 전체를 덮고 둘째 줄(y 50~70) 윗부분 4px 만 스친다. + expect(wordsInRect(result, { x: 0, y: 0, width: 200, height: 54 })).toEqual([0, 1, 2]) + }) + + it('사각형선택_절반넘게걸친단어만_절반이안되면고르지않는다', () => { + const result = sample() + // 첫 단어(x 10~50)의 왼쪽 45% 만 덮으면 고르지 않는다. 높이 20 중 12 만 덮어도 폭을 다 덮으면(60%) 고른다. + expect(wordsInRect(result, { x: 0, y: 0, width: 28, height: 40 })).toEqual([]) + expect(wordsInRect(result, { x: 0, y: 12, width: 60, height: 12 })).toEqual([0]) + }) + + it('rectFromPoints_거꾸로끌어도_양수크기사각형이된다', () => { + expect(rectFromPoints({ x: 100, y: 80 }, { x: 20, y: 30 })).toEqual({ x: 20, y: 30, width: 80, height: 50 }) + }) + + it('clampRect_그림밖으로나간영역_안쪽으로자르고완전히밖이면null', () => { + expect(clampRect({ x: -10, y: -5, width: 50.4, height: 30 }, { width: 100, height: 20 })).toEqual({ + x: 0, + y: 0, + width: 41, + height: 20 + }) + expect(clampRect({ x: 200, y: 0, width: 50, height: 10 }, { width: 100, height: 100 })).toBeNull() + expect(clampRect({ x: 10, y: 10, width: 0, height: 0 }, { width: 100, height: 100 })).toBeNull() + }) +}) + +describe('글 흐름 선택', () => { + it('wordAtPoint_단어위와빈곳_단어번호또는null', () => { + const result = sample() + expect(wordAtPoint(result, { x: 70, y: 20 })).toBe(1) + expect(wordAtPoint(result, { x: 300, y: 300 })).toBeNull() + }) + + it('nearestWordIndex_줄사이여백과줄오른쪽바깥_가까운줄의가까운단어를고른다', () => { + const result = sample() + // 둘째 줄(y 50~70) 오른쪽 바깥 → 둘째 줄의 마지막 단어 + expect(nearestWordIndex(result, { x: 400, y: 60 })).toBe(4) + // 셋째 줄 아래 여백 → 셋째 줄에서 가로로 가장 가까운 단어 + expect(nearestWordIndex(result, { x: 65, y: 400 })).toBe(6) + }) + + it('nearestWordIndex_단어가없는결과_null', () => { + const empty = parseOcrEngineOutput({ lang: 'ko', lines: [] }) + expect(empty && nearestWordIndex(empty, { x: 0, y: 0 })).toBeNull() + }) + + it('flowSelection_뒤에서앞으로끌어도_사이단어를전부고른다', () => { + expect(flowSelection(6, 2)).toEqual([2, 3, 4, 5, 6]) + expect(flowSelection(3, 3)).toEqual([3]) + }) + + it('lineSelection과allWords_줄전체와전체단어', () => { + const result = sample() + expect(lineSelection(result, 4)).toEqual([3, 4]) + expect(lineSelection(result, 99)).toEqual([]) + expect(allWords(result)).toHaveLength(8) + }) +}) + +describe('선택 → 텍스트', () => { + it('selectionText_여러줄선택_줄바꿈을유지하고단어는공백으로잇는다', () => { + const result = sample() + expect(selectionText(result, [1, 2, 3, 4, 5])).toBe('OCR 기능\n둘째 줄\nThird') + }) + + it('selectionText_한줄옵션_줄바꿈없이잇는다', () => { + const result = sample() + expect(selectionText(result, [2, 3, 4], { singleLine: true })).toBe('기능 둘째 줄') + }) + + it('selectionText_순서가뒤섞이고겹치고범위밖인번호_정리해서읽는순서로낸다', () => { + const result = sample() + expect(selectionText(result, [4, 0, 0, 99, -1, 3])).toBe('화면\n둘째 줄') + }) + + it('selectionText_일본어중국어처럼글자마다단어인줄_공백없이잇는다', () => { + const result = parseOcrEngineOutput({ + lang: 'ja', + lines: [line(0, ['日', '本', '語', 'OCR', 'テ', 'ス', 'ト']), line(40, ['次', 'の', '行'])] + }) + if (!result) throw new Error('no result') + expect(selectionText(result, allWords(result))).toBe('日本語 OCR テスト\n次の行') + expect(selectionText(result, allWords(result), { singleLine: true })).toBe('日本語 OCR テスト次の行') + }) + + it('selectionText_아무것도안고름_빈문자열', () => { + expect(selectionText(sample(), [])).toBe('') + }) +}) + +describe('강조 사각형과 경계', () => { + it('selectionHighlightRects_같은줄에서이어진단어_하나로잇고끊긴곳은나눈다', () => { + const result = sample() + const rects = selectionHighlightRects(result, [0, 1, 3, 5, 7]) + expect(rects).toEqual([ + { x: 10, y: 10, width: 90, height: 20 }, + { x: 10, y: 50, width: 40, height: 20 }, + { x: 10, y: 90, width: 40, height: 20 }, + { x: 110, y: 90, width: 40, height: 20 } + ]) + }) + + it('selectionBounds_고른단어를모두감싼다_없으면null', () => { + const result = sample() + expect(selectionBounds(result, [1, 4])).toEqual({ x: 60, y: 10, width: 40, height: 60 }) + expect(selectionBounds(result, [])).toBeNull() + }) + + it('wordsRelativeTo_잘라낸영역기준좌표로옮긴다', () => { + const result = sample() + const moved = wordsRelativeTo(result, { x: 50, y: 40, width: 200, height: 40 }) + expect(moved.map((w) => [w.text, w.x, w.y])).toEqual([['줄', 10, 10]]) + }) +}) + +describe('chooseOcrScale', () => { + it('인식배율_100퍼센트화면_2배로키운다', () => { + expect(chooseOcrScale(1920, 1080, 1, 10000)).toBe(2) + }) + + it('인식배율_고배율화면_이미큰글자는덜키운다', () => { + expect(chooseOcrScale(2880, 1800, 1.5, 10000)).toBe(1.33) + expect(chooseOcrScale(3840, 2160, 2, 10000)).toBe(1) + }) + + it('인식배율_엔진최대변길이를넘지않는다', () => { + const scale = chooseOcrScale(7680, 2160, 1, 10000) + expect(scale).toBe(1.3) + expect(7680 * scale).toBeLessThanOrEqual(10000) + }) + + it('인식배율_배율값이이상하면_1배율화면으로본다', () => { + expect(chooseOcrScale(1000, 1000, Number.NaN, 10000)).toBe(2) + expect(chooseOcrScale(0, 0, 1, 10000)).toBe(1) + }) +}) + +describe('detectLinks', () => { + it('링크찾기_주소와메일_열수있는URL로돌려준다', () => { + expect(detectLinks('보기: https://example.com/path?q=1, 그리고 www.d3ro.io. 문의 help@example.com')).toEqual([ + 'mailto:help@example.com', + 'https://example.com/path?q=1', + 'https://www.d3ro.io' + ]) + }) + + it('링크찾기_주소가없는글_빈목록', () => { + expect(detectLinks('그냥 문장입니다 3.14 e.g.')).toEqual([]) + }) + + it('링크찾기_같은주소가여러번_한번만', () => { + expect(detectLinks('https://a.io https://a.io')).toEqual(['https://a.io']) + }) +}) + +describe('pickTranslationTarget', () => { + it('번역대상_외국어글_사용자의앱언어로옮긴다', () => { + expect(pickTranslationTarget('The quick brown fox', 'ko', 'English')).toBe('Korean') + expect(pickTranslationTarget('안녕하세요 반갑습니다', 'en', 'Japanese')).toBe('English') + }) + + it('번역대상_이미사용자언어인글_설정의번역대상언어로옮긴다', () => { + expect(pickTranslationTarget('안녕하세요 반갑습니다', 'ko', 'English')).toBe('English') + expect(pickTranslationTarget('Hello there, friend', 'en', 'Japanese')).toBe('Japanese') + expect(pickTranslationTarget('こんにちは、世界', 'ja', 'English')).toBe('English') + }) + + it('번역대상_모르는앱언어_설정값을그대로쓴다', () => { + expect(pickTranslationTarget('hello', 'xx', 'German')).toBe('German') + }) +}) + +describe('buildSearchablePdfHtml', () => { + const html = buildSearchablePdfHtml({ + imageDataUrl: 'data:image/png;base64,AAAA', + width: 800, + height: 600, + language: 'ko', + words: [ + { text: '화면 &"', x: 10, y: 20, width: 100, height: 20 }, + { text: ' ', x: 0, y: 0, width: 10, height: 10 }, + { text: 'zero', x: 0, y: 0, width: 0, height: 10 } + ] + }) + + it('PDF문서_쪽크기가그림크기와같다', () => { + expect(html).toContain('@page{size:800px 600px;margin:0}') + expect(html).toContain('viewBox="0 0 800 600"') + }) + + it('PDF문서_글자층이그림아래에깔린다', () => { + expect(html.indexOf(' { + expect(html).toContain('textLength="100.0"') + expect(html).toContain('화면 <b>&"') + expect(html).not.toContain('') + }) + + it('PDF문서_빈글자와크기없는단어_글자층에넣지않는다', () => { + expect(html.match(/ { + return typeof value === 'object' && value !== null && !Array.isArray(value) +} + +function finiteNumber(value: unknown): number | null { + return typeof value === 'number' && Number.isFinite(value) ? value : null +} + +function unionRect(rects: readonly OcrRect[]): OcrRect { + let left = Infinity + let top = Infinity + let right = -Infinity + let bottom = -Infinity + for (const r of rects) { + left = Math.min(left, r.x) + top = Math.min(top, r.y) + right = Math.max(right, r.x + r.width) + bottom = Math.max(bottom, r.y + r.height) + } + return { x: left, y: top, width: right - left, height: bottom - top } +} + +/** + * 엔진이 준 `{ lang, lines: [{ words: [{ t, x, y, w, h }] }] }` 를 정본 표현으로 옮긴다. + * 모양이 어긋난 단어(글자 없음 · 좌표가 수가 아님 · 크기 0)는 버리고, 단어가 하나도 안 남은 줄도 버린다. + * 최상위 모양이 틀리면 null — 호출자는 인식 실패로 다룬다(빈 결과로 꾸미지 않는다). + */ +export function parseOcrEngineOutput(raw: unknown): OcrResult | null { + if (!isRecord(raw) || !Array.isArray(raw.lines)) return null + const language = typeof raw.lang === 'string' ? raw.lang : '' + const lines: OcrLine[] = [] + const words: OcrWord[] = [] + + for (const rawLine of raw.lines) { + if (!isRecord(rawLine) || !Array.isArray(rawLine.words)) continue + const start = words.length + for (const rawWord of rawLine.words) { + if (!isRecord(rawWord)) continue + const text = typeof rawWord.t === 'string' ? rawWord.t : '' + const x = finiteNumber(rawWord.x) + const y = finiteNumber(rawWord.y) + const width = finiteNumber(rawWord.w) + const height = finiteNumber(rawWord.h) + if (text.length === 0 || x === null || y === null || width === null || height === null) continue + if (width <= 0 || height <= 0) continue + words.push({ text, x, y, width, height, line: lines.length, index: words.length }) + } + const count = words.length - start + if (count === 0) continue + lines.push({ ...unionRect(words.slice(start)), start, count }) + } + + return { language, lines, words } +} + +// ============================================================ +// 기하 +// ============================================================ + +/** 두 점으로 사각형을 만든다 (끌기 방향과 무관하게 양수 크기). */ +export function rectFromPoints(a: OcrPoint, b: OcrPoint): OcrRect { + return { + x: Math.min(a.x, b.x), + y: Math.min(a.y, b.y), + width: Math.abs(a.x - b.x), + height: Math.abs(a.y - b.y) + } +} + +/** 사각형을 경계 안으로 자르고 정수 픽셀로 맞춘다. 남는 면적이 없으면 null. */ +export function clampRect(rect: OcrRect, bounds: { width: number; height: number }): OcrRect | null { + const left = Math.max(0, Math.floor(rect.x)) + const top = Math.max(0, Math.floor(rect.y)) + const right = Math.min(bounds.width, Math.ceil(rect.x + rect.width)) + const bottom = Math.min(bounds.height, Math.ceil(rect.y + rect.height)) + if (right - left < 1 || bottom - top < 1) return null + return { x: left, y: top, width: right - left, height: bottom - top } +} + +function containsPoint(rect: OcrRect, point: OcrPoint, pad = 0): boolean { + return ( + point.x >= rect.x - pad && + point.x <= rect.x + rect.width + pad && + point.y >= rect.y - pad && + point.y <= rect.y + rect.height + pad + ) +} + +// ============================================================ +// 선택 계산 +// ============================================================ + +/** + * 사각형 선택 — 중심이 사각형 안에 있거나 면적의 절반 이상이 걸친 단어. + * 살짝 스친 옆 줄까지 딸려 오지 않게 "닿기만 하면 선택"으로 하지 않는다. + */ +export function wordsInRect(result: OcrResult, rect: OcrRect): number[] { + const out: number[] = [] + const right = rect.x + rect.width + const bottom = rect.y + rect.height + for (const word of result.words) { + const cx = word.x + word.width / 2 + const cy = word.y + word.height / 2 + if (cx >= rect.x && cx <= right && cy >= rect.y && cy <= bottom) { + out.push(word.index) + continue + } + const overlapW = Math.min(right, word.x + word.width) - Math.max(rect.x, word.x) + const overlapH = Math.min(bottom, word.y + word.height) - Math.max(rect.y, word.y) + if (overlapW > 0 && overlapH > 0 && overlapW * overlapH >= word.width * word.height * 0.5) { + out.push(word.index) + } + } + return out +} + +/** 점 바로 아래(여유 pad 픽셀)의 단어 번호. 없으면 null. */ +export function wordAtPoint(result: OcrResult, point: OcrPoint, pad = 2): number | null { + for (const word of result.words) { + if (containsPoint(word, point, pad)) return word.index + } + return null +} + +/** + * 글 흐름 선택의 끝점 — 점에서 가장 가까운 줄을 고르고, 그 줄 안에서 가장 가까운 단어를 고른다. + * 줄 밖 여백으로 끌어도 선택이 이어지게 하려는 것이다(일반 글 선택과 같은 느낌). + */ +export function nearestWordIndex(result: OcrResult, point: OcrPoint): number | null { + if (result.words.length === 0) return null + let bestLine: OcrLine | null = null + let bestDistance = Infinity + for (const line of result.lines) { + const dy = point.y < line.y ? line.y - point.y : point.y > line.y + line.height ? point.y - (line.y + line.height) : 0 + const dx = point.x < line.x ? line.x - point.x : point.x > line.x + line.width ? point.x - (line.x + line.width) : 0 + // 세로 거리를 훨씬 무겁게 본다 — 같은 높이의 줄이 먼 옆 단(column)이라도 위아래 줄보다 우선이다. + const distance = dy * 4 + dx + if (distance < bestDistance) { + bestDistance = distance + bestLine = line + } + } + if (!bestLine) return null + + let best = bestLine.start + let bestDx = Infinity + for (let i = bestLine.start; i < bestLine.start + bestLine.count; i += 1) { + const word = result.words[i] + const dx = point.x < word.x ? word.x - point.x : point.x > word.x + word.width ? point.x - (word.x + word.width) : 0 + if (dx < bestDx) { + bestDx = dx + best = i + } + } + return best +} + +/** 글 흐름 선택 — 시작 단어부터 끝 단어까지 읽는 순서로 전부. */ +export function flowSelection(anchor: number, focus: number): number[] { + const from = Math.min(anchor, focus) + const to = Math.max(anchor, focus) + const out: number[] = [] + for (let i = from; i <= to; i += 1) out.push(i) + return out +} + +/** 단어가 속한 줄 전체. */ +export function lineSelection(result: OcrResult, wordIndex: number): number[] { + const word = result.words[wordIndex] + if (!word) return [] + const line = result.lines[word.line] + return flowSelection(line.start, line.start + line.count - 1) +} + +export function allWords(result: OcrResult): number[] { + return result.words.map((word) => word.index) +} + +// ============================================================ +// 선택 → 텍스트 +// ============================================================ + +/** 한자 · 히라가나 · 가타카나 — 띄어 쓰지 않는 글자. (한글은 띄어 쓴다) */ +function isUnspacedScript(char: string): boolean { + const code = char.codePointAt(0) ?? 0 + return ( + (code >= 0x3040 && code <= 0x30ff) || // 히라가나 · 가타카나 + (code >= 0x3400 && code <= 0x4dbf) || // 한자 확장 A + (code >= 0x4e00 && code <= 0x9fff) || // 한자 + (code >= 0x3000 && code <= 0x303f) || // CJK 문장부호 + (code >= 0xff00 && code <= 0xffef) // 전각 문자 + ) +} + +function lastChar(text: string): string { + const chars = Array.from(text) + return chars[chars.length - 1] ?? '' +} + +function firstChar(text: string): string { + return Array.from(text)[0] ?? '' +} + +/** 한 줄 안에서 이웃한 두 단어 사이에 공백을 넣을지. 일본어 · 중국어는 엔진이 글자마다 단어로 준다. */ +function joiner(previous: string, next: string): string { + return isUnspacedScript(lastChar(previous)) && isUnspacedScript(firstChar(next)) ? '' : ' ' +} + +export interface SelectionTextOptions { + /** true 면 줄바꿈 없이 한 줄로 잇는다 */ + singleLine?: boolean +} + +/** + * 선택한 단어들을 글로 만든다. 줄은 인식된 줄 순서를 따르고, 같은 줄의 단어는 왼쪽부터 잇는다. + * 번호가 범위를 벗어나거나 겹쳐도 무시한다. + */ +export function selectionText( + result: OcrResult, + selected: readonly number[], + options: SelectionTextOptions = {} +): string { + const picked = Array.from(new Set(selected)) + .filter((index) => Number.isInteger(index) && index >= 0 && index < result.words.length) + .sort((a, b) => a - b) + const lines: string[] = [] + let currentLine = -1 + let buffer = '' + for (const index of picked) { + const word = result.words[index] + if (word.line !== currentLine) { + if (currentLine !== -1) lines.push(buffer) + currentLine = word.line + buffer = word.text + } else { + buffer += joiner(buffer, word.text) + word.text + } + } + if (currentLine !== -1) lines.push(buffer) + + if (!options.singleLine) return lines.join('\n') + let joined = '' + for (const line of lines) { + joined = joined.length === 0 ? line : joined + joiner(joined, line) + line + } + return joined +} + +/** 선택한 단어를 모두 감싸는 사각형. 선택이 비면 null. */ +export function selectionBounds(result: OcrResult, selected: readonly number[]): OcrRect | null { + const rects = selected.map((index) => result.words[index]).filter((word): word is OcrWord => Boolean(word)) + return rects.length === 0 ? null : unionRect(rects) +} + +/** + * 강조 표시용 사각형 — 같은 줄에서 연달아 선택된 단어는 하나로 잇는다(단어 사이 틈이 비어 보이지 않게). + * 높이는 그 줄의 높이로 맞춰 글자마다 들쭉날쭉하지 않게 한다. + */ +export function selectionHighlightRects(result: OcrResult, selected: readonly number[]): OcrRect[] { + const picked = Array.from(new Set(selected)) + .filter((index) => Number.isInteger(index) && index >= 0 && index < result.words.length) + .sort((a, b) => a - b) + const out: OcrRect[] = [] + let runStart = -1 + let previous = -1 + const flush = (): void => { + if (runStart === -1) return + const first = result.words[runStart] + const last = result.words[previous] + const line = result.lines[first.line] + out.push({ x: first.x, y: line.y, width: last.x + last.width - first.x, height: line.height }) + } + for (const index of picked) { + const word = result.words[index] + const continues = previous !== -1 && index === previous + 1 && result.words[previous].line === word.line + if (!continues) { + flush() + runStart = index + } + previous = index + } + flush() + return out +} + +// ============================================================ +// 인식 배율 +// ============================================================ + +/** + * OCR 에 넣기 전 확대 배율. 화면 글자(100% 배율에서 9~10pt)는 그대로 넣으면 인식률이 뚝 떨어지고 + * 2배로 키우면 크게 좋아진다(2026-11-20 실측). 이미 고배율(HiDPI) 화면이면 덜 키운다. + * 엔진의 최대 변 길이를 넘지 않게 줄인다. + */ +export function chooseOcrScale( + width: number, + height: number, + displayScaleFactor: number, + maxDimension: number +): number { + const factor = Number.isFinite(displayScaleFactor) && displayScaleFactor > 0 ? displayScaleFactor : 1 + const wanted = Math.max(1, 2 / factor) + const longest = Math.max(width, height) + if (longest <= 0) return 1 + const allowed = maxDimension / longest + const scale = Math.min(wanted, allowed) + return Math.round(scale * 100) / 100 +} + +// ============================================================ +// 링크 · 번역 대상 +// ============================================================ + +const URL_PATTERN = /\b((?:https?:\/\/|www\.)[^\s<>"'`]+[^\s<>"'`.,;:!?)\]}])/giu +const EMAIL_PATTERN = /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/giu + +/** 글에서 열 수 있는 주소를 찾는다 (http/https, www. 로 시작하는 주소, 메일 주소). 중복은 뺀다. */ +export function detectLinks(text: string): string[] { + const out: string[] = [] + const add = (value: string): void => { + if (!out.includes(value)) out.push(value) + } + for (const match of text.matchAll(EMAIL_PATTERN)) add(`mailto:${match[0]}`) + for (const match of text.matchAll(URL_PATTERN)) { + const raw = match[1] + add(/^https?:\/\//iu.test(raw) ? raw : `https://${raw}`) + } + return out +} + +/** 앱 언어 코드 → 번역 프롬프트에 넣을 언어 이름. */ +const LOCALE_LANGUAGE_NAMES: Readonly> = { + ko: 'Korean', + en: 'English', + ja: 'Japanese', + zh: 'Chinese (Simplified)', + 'zh-TW': 'Chinese (Traditional)', + es: 'Spanish', + fr: 'French', + de: 'German', + pt: 'Portuguese', + ru: 'Russian', + th: 'Thai', + vi: 'Vietnamese' +} + +function scriptShare(text: string, test: (code: number) => boolean): number { + let letters = 0 + let hits = 0 + for (const char of text) { + if (!/\p{L}/u.test(char)) continue + letters += 1 + if (test(char.codePointAt(0) ?? 0)) hits += 1 + } + return letters === 0 ? 0 : hits / letters +} + +const isHangul = (code: number): boolean => (code >= 0xac00 && code <= 0xd7a3) || (code >= 0x1100 && code <= 0x11ff) +const isKana = (code: number): boolean => code >= 0x3040 && code <= 0x30ff +const isHan = (code: number): boolean => (code >= 0x4e00 && code <= 0x9fff) || (code >= 0x3400 && code <= 0x4dbf) +const isCyrillic = (code: number): boolean => code >= 0x0400 && code <= 0x04ff +const isThai = (code: number): boolean => code >= 0x0e00 && code <= 0x0e7f +const isLatin = (code: number): boolean => + (code >= 0x41 && code <= 0x5a) || (code >= 0x61 && code <= 0x7a) || (code >= 0xc0 && code <= 0x24f) + +/** 글이 이미 사용자의 언어로 보이는지 (문자 체계로만 어림한다). */ +function looksLikeLocale(text: string, locale: string): boolean { + switch (locale) { + case 'ko': + return scriptShare(text, isHangul) >= 0.3 + case 'ja': + return scriptShare(text, isKana) >= 0.15 + case 'zh': + case 'zh-TW': + return scriptShare(text, isHan) >= 0.5 && scriptShare(text, isKana) < 0.05 + case 'ru': + return scriptShare(text, isCyrillic) >= 0.5 + case 'th': + return scriptShare(text, isThai) >= 0.5 + default: + // 라틴 문자 언어끼리는 문자로 구분할 수 없다 — 라틴 글이면 "이미 사용자 언어"로 본다. + return scriptShare(text, isLatin) >= 0.7 + } +} + +/** + * 번역 대상 언어를 고른다 — 기본은 사용자의 앱 언어로 옮긴다. + * 글이 이미 그 언어로 보이면 설정의 번역 대상 언어(configuredTarget)로 옮긴다. + */ +export function pickTranslationTarget(text: string, appLocale: string, configuredTarget: string): string { + const own = LOCALE_LANGUAGE_NAMES[appLocale] + if (!own) return configuredTarget + return looksLikeLocale(text, appLocale) ? configuredTarget : own +} + +// ============================================================ +// 검색 가능한 PDF 문서 +// ============================================================ + +function escapeHtml(value: string): string { + return value + .replace(/&/gu, '&') + .replace(//gu, '>') + .replace(/"/gu, '"') +} + +export interface SearchablePdfInput { + /** 그림의 data URL (image/png) */ + imageDataUrl: string + /** 그림 크기 (물리 픽셀) — 쪽 크기가 된다 */ + width: number + height: number + /** 그림 좌표계의 단어 (잘라낸 영역이면 그 영역 기준으로 옮긴 좌표) */ + words: ReadonlyArray> + /** 문서 lang 속성 */ + language: string +} + +/** + * 그림 한 장 + 글자 층으로 된 한 쪽짜리 HTML — printToPDF 로 넘기면 검색·복사가 되는 PDF 가 된다. + * + * 글자를 투명하게 칠하지 않고 **그림 아래에** 깐다: 투명 글자는 PDF 백엔드가 그리지 않고 버릴 수 있지만, + * 가려진 글자는 내용 스트림에 그대로 남아 보기 프로그램이 찾고 고를 수 있다. + * 글자 폭은 SVG textLength 로 단어 상자에 정확히 맞춘다(측정용 스크립트가 필요 없다). + */ +export function buildSearchablePdfHtml(input: SearchablePdfInput): string { + const width = Math.max(1, Math.round(input.width)) + const height = Math.max(1, Math.round(input.height)) + const texts = input.words + .filter((word) => word.text.trim().length > 0 && word.width > 0 && word.height > 0) + .map((word) => { + const fontSize = Math.max(1, word.height * 0.9) + const baseline = word.y + word.height * 0.82 + return ( + `${escapeHtml(word.text)}` + ) + }) + .join('') + + return ( + `` + + `` + + `
` + + `${texts}` + + `` + + `
` + ) +} + +/** 사각형 안에 중심이 든 단어를 그 사각형 기준 좌표로 옮긴다 (영역만 PDF/그림으로 낼 때). */ +export function wordsRelativeTo(result: OcrResult, rect: OcrRect): OcrWord[] { + return wordsInRect(result, rect).map((index) => { + const word = result.words[index] + return { ...word, x: word.x - rect.x, y: word.y - rect.y } + }) +} diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index d73f8a74..c383cfad 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -443,6 +443,8 @@ export interface AppConfig { handsFreeEnabled: boolean /** 스크린 컨텍스트 캡처 활성화 (Phase 10.2) */ screenContextEnabled: boolean + /** 화면 OCR 인식 언어 태그 (예: 'ko', 'en-US'). 'auto' 면 Windows 사용자 언어를 따른다. */ + screenOcrLanguage: string /** Phase 15.5: HuggingFace 토큰 (화자 구분용) */ hfToken: string /** Phase 15.5: 화자 구분 활성화 */ diff --git a/packages/i18n/package.json b/packages/i18n/package.json index b767fbb1..81fb6391 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/i18n", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice 공유 i18n — 12개 locale, 타입 안전 키, Context, 포맷 유틸", "license": "MIT", diff --git a/packages/i18n/src/locales/de.json b/packages/i18n/src/locales/de.json index c884a8ed..596998b5 100644 --- a/packages/i18n/src/locales/de.json +++ b/packages/i18n/src/locales/de.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Markdown-Datei", + "mobile.hist.shareAudio": "Originalaudio teilen", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Benachrichtigungen sind auf dem Server nicht konfiguriert.", "web.push.blocked": "Benachrichtigungen sind blockiert. Erlaube sie in den Website-Einstellungen des Browsers.", "web.push.revoked": "Dieser Browser wurde aus dem Konto entfernt. Lösche die gespeicherten Websitedaten, bevor du ihn erneut hinzufügst.", - "web.push.error": "Benachrichtigungen konnten nicht geändert werden. Prüfe die Browserberechtigung und versuche es erneut." + "web.push.error": "Benachrichtigungen konnten nicht geändert werden. Prüfe die Browserberechtigung und versuche es erneut.", + "keybinding.action.screenOcr": "Bildschirmtext erfassen (OCR)", + "keybinding.action.screenOcr.desc": "Nimmt den Bildschirm auf, damit Sie den Text darauf durch Ziehen auswählen können.", + "screenOcr.dialog.savePdf": "Als PDF speichern", + "screenOcr.dialog.saveImage": "Als Bild speichern", + "screenOcr.errorCapture": "Der Bildschirm konnte nicht aufgenommen werden.", + "screenOcr.modeText": "Text", + "screenOcr.modeRect": "Bereich", + "screenOcr.copy": "Kopieren", + "screenOcr.copyLine": "Als eine Zeile kopieren", + "screenOcr.copyImage": "Bild kopieren", + "screenOcr.saveImage": "Bild speichern", + "screenOcr.savePdf": "PDF speichern", + "screenOcr.translate": "Übersetzen", + "screenOcr.summarize": "Zusammenfassen", + "screenOcr.speak": "Vorlesen", + "screenOcr.stopSpeak": "Vorlesen stoppen", + "screenOcr.openLink": "Link öffnen", + "screenOcr.search": "Im Web suchen", + "screenOcr.selectAll": "Alles auswählen", + "screenOcr.close": "Schließen", + "screenOcr.language": "Sprache", + "screenOcr.languageAuto": "Automatisch", + "screenOcr.statusRecognizing": "Text wird gelesen…", + "screenOcr.statusReady": "{{count}} Wörter · zum Auswählen ziehen", + "screenOcr.statusEmpty": "Kein Text gefunden", + "screenOcr.statusSelected": "{{count}} Zeichen ausgewählt", + "screenOcr.hint": "Ziehen zum Auswählen · Doppelklick auf ein Wort · Strg+A alles · Strg+C kopieren · Esc schließen", + "screenOcr.toastCopied": "Kopiert", + "screenOcr.toastImageCopied": "Bild kopiert", + "screenOcr.toastSaved": "Gespeichert", + "screenOcr.working": "Wird verarbeitet…", + "screenOcr.resultTranslate": "Übersetzung", + "screenOcr.resultSummary": "Zusammenfassung", + "screenOcr.errorRecognition": "Der Text konnte nicht gelesen werden", + "screenOcr.errorUnavailable": "Die Texterfassung ist auf diesem PC nicht verfügbar. Installieren Sie in den Windows-Einstellungen ein Sprachpaket mit optischer Zeichenerkennung.", + "screenOcr.errorExport": "Speichern oder Kopieren fehlgeschlagen", + "screenOcr.errorLlm": "Keine Antwort von der KI. Prüfen Sie die Modelleinstellungen.", + "screenOcr.errorTts": "Vorlesen fehlgeschlagen", + "screenOcr.errorLink": "Der Link konnte nicht geöffnet werden", + "screenOcr.errorInvalid": "Diese Aufnahme wurde bereits geschlossen. Nehmen Sie erneut auf.", + "screenOcr.errorEmpty": "Kein Text ausgewählt" } diff --git a/packages/i18n/src/locales/en.json b/packages/i18n/src/locales/en.json index f52fecb2..84f383a6 100644 --- a/packages/i18n/src/locales/en.json +++ b/packages/i18n/src/locales/en.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Markdown file", + "mobile.hist.shareAudio": "Share source audio", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Notifications are not configured on the server.", "web.push.blocked": "Notifications are blocked. Allow them in this site's browser settings.", "web.push.revoked": "This browser was removed from the account. Clear this site's stored data before adding it again.", - "web.push.error": "Notifications could not be changed. Check the browser permission and try again." + "web.push.error": "Notifications could not be changed. Check the browser permission and try again.", + "keybinding.action.screenOcr": "Screen text capture (OCR)", + "keybinding.action.screenOcr.desc": "Captures the screen so you can drag to select the text on it.", + "screenOcr.dialog.savePdf": "Save as PDF", + "screenOcr.dialog.saveImage": "Save as image", + "screenOcr.errorCapture": "Could not capture the screen.", + "screenOcr.modeText": "Text", + "screenOcr.modeRect": "Area", + "screenOcr.copy": "Copy", + "screenOcr.copyLine": "Copy as one line", + "screenOcr.copyImage": "Copy image", + "screenOcr.saveImage": "Save image", + "screenOcr.savePdf": "Save PDF", + "screenOcr.translate": "Translate", + "screenOcr.summarize": "Summarize", + "screenOcr.speak": "Read aloud", + "screenOcr.stopSpeak": "Stop reading", + "screenOcr.openLink": "Open link", + "screenOcr.search": "Search the web", + "screenOcr.selectAll": "Select all", + "screenOcr.close": "Close", + "screenOcr.language": "Language", + "screenOcr.languageAuto": "Auto", + "screenOcr.statusRecognizing": "Reading text…", + "screenOcr.statusReady": "{{count}} words · drag to select", + "screenOcr.statusEmpty": "No text found", + "screenOcr.statusSelected": "{{count}} characters selected", + "screenOcr.hint": "Drag to select · double-click a word · Ctrl+A all · Ctrl+C copy · Esc close", + "screenOcr.toastCopied": "Copied", + "screenOcr.toastImageCopied": "Image copied", + "screenOcr.toastSaved": "Saved", + "screenOcr.working": "Working…", + "screenOcr.resultTranslate": "Translation", + "screenOcr.resultSummary": "Summary", + "screenOcr.errorRecognition": "Could not read the text", + "screenOcr.errorUnavailable": "Screen text capture is not available on this PC. Install a language pack with optical character recognition in Windows Settings.", + "screenOcr.errorExport": "Could not save or copy", + "screenOcr.errorLlm": "No response from the AI. Check your model settings.", + "screenOcr.errorTts": "Could not read aloud", + "screenOcr.errorLink": "Could not open the link", + "screenOcr.errorInvalid": "This capture is already closed. Capture again.", + "screenOcr.errorEmpty": "No text selected" } diff --git a/packages/i18n/src/locales/es.json b/packages/i18n/src/locales/es.json index 94706841..acb347ea 100644 --- a/packages/i18n/src/locales/es.json +++ b/packages/i18n/src/locales/es.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Archivo Markdown", + "mobile.hist.shareAudio": "Compartir audio original", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Las notificaciones no están configuradas en el servidor.", "web.push.blocked": "Las notificaciones están bloqueadas. Permítelas en la configuración del sitio del navegador.", "web.push.revoked": "Este navegador se eliminó de la cuenta. Borra los datos guardados del sitio antes de volver a añadirlo.", - "web.push.error": "No se pudieron cambiar las notificaciones. Revisa el permiso del navegador e inténtalo de nuevo." + "web.push.error": "No se pudieron cambiar las notificaciones. Revisa el permiso del navegador e inténtalo de nuevo.", + "keybinding.action.screenOcr": "Capturar texto de pantalla (OCR)", + "keybinding.action.screenOcr.desc": "Captura la pantalla para seleccionar su texto arrastrando.", + "screenOcr.dialog.savePdf": "Guardar como PDF", + "screenOcr.dialog.saveImage": "Guardar como imagen", + "screenOcr.errorCapture": "No se pudo capturar la pantalla.", + "screenOcr.modeText": "Texto", + "screenOcr.modeRect": "Área", + "screenOcr.copy": "Copiar", + "screenOcr.copyLine": "Copiar en una línea", + "screenOcr.copyImage": "Copiar imagen", + "screenOcr.saveImage": "Guardar imagen", + "screenOcr.savePdf": "Guardar PDF", + "screenOcr.translate": "Traducir", + "screenOcr.summarize": "Resumir", + "screenOcr.speak": "Leer en voz alta", + "screenOcr.stopSpeak": "Detener lectura", + "screenOcr.openLink": "Abrir enlace", + "screenOcr.search": "Buscar en la web", + "screenOcr.selectAll": "Seleccionar todo", + "screenOcr.close": "Cerrar", + "screenOcr.language": "Idioma", + "screenOcr.languageAuto": "Automático", + "screenOcr.statusRecognizing": "Leyendo texto…", + "screenOcr.statusReady": "{{count}} palabras · arrastra para seleccionar", + "screenOcr.statusEmpty": "No se encontró texto", + "screenOcr.statusSelected": "{{count}} caracteres seleccionados", + "screenOcr.hint": "Arrastra para seleccionar · doble clic en una palabra · Ctrl+A todo · Ctrl+C copiar · Esc cerrar", + "screenOcr.toastCopied": "Copiado", + "screenOcr.toastImageCopied": "Imagen copiada", + "screenOcr.toastSaved": "Guardado", + "screenOcr.working": "Procesando…", + "screenOcr.resultTranslate": "Traducción", + "screenOcr.resultSummary": "Resumen", + "screenOcr.errorRecognition": "No se pudo leer el texto", + "screenOcr.errorUnavailable": "La captura de texto no está disponible en este PC. Instala un paquete de idioma con reconocimiento óptico de caracteres en Configuración de Windows.", + "screenOcr.errorExport": "No se pudo guardar ni copiar", + "screenOcr.errorLlm": "La IA no respondió. Revisa la configuración del modelo.", + "screenOcr.errorTts": "No se pudo leer en voz alta", + "screenOcr.errorLink": "No se pudo abrir el enlace", + "screenOcr.errorInvalid": "Esta captura ya se cerró. Vuelve a capturar.", + "screenOcr.errorEmpty": "No hay texto seleccionado" } diff --git a/packages/i18n/src/locales/fr.json b/packages/i18n/src/locales/fr.json index e311529a..4a696668 100644 --- a/packages/i18n/src/locales/fr.json +++ b/packages/i18n/src/locales/fr.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Fichier Markdown", + "mobile.hist.shareAudio": "Partager l’audio d’origine", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Les notifications ne sont pas configurées sur le serveur.", "web.push.blocked": "Les notifications sont bloquées. Autorisez-les dans les paramètres du site du navigateur.", "web.push.revoked": "Ce navigateur a été retiré du compte. Effacez les données enregistrées du site avant de l’ajouter à nouveau.", - "web.push.error": "Impossible de modifier les notifications. Vérifiez l’autorisation du navigateur et réessayez." + "web.push.error": "Impossible de modifier les notifications. Vérifiez l’autorisation du navigateur et réessayez.", + "keybinding.action.screenOcr": "Capture de texte à l’écran (OCR)", + "keybinding.action.screenOcr.desc": "Capture l’écran pour sélectionner son texte en faisant glisser.", + "screenOcr.dialog.savePdf": "Enregistrer en PDF", + "screenOcr.dialog.saveImage": "Enregistrer comme image", + "screenOcr.errorCapture": "Impossible de capturer l’écran.", + "screenOcr.modeText": "Texte", + "screenOcr.modeRect": "Zone", + "screenOcr.copy": "Copier", + "screenOcr.copyLine": "Copier sur une ligne", + "screenOcr.copyImage": "Copier l’image", + "screenOcr.saveImage": "Enregistrer l’image", + "screenOcr.savePdf": "Enregistrer en PDF", + "screenOcr.translate": "Traduire", + "screenOcr.summarize": "Résumer", + "screenOcr.speak": "Lire à voix haute", + "screenOcr.stopSpeak": "Arrêter la lecture", + "screenOcr.openLink": "Ouvrir le lien", + "screenOcr.search": "Rechercher sur le Web", + "screenOcr.selectAll": "Tout sélectionner", + "screenOcr.close": "Fermer", + "screenOcr.language": "Langue", + "screenOcr.languageAuto": "Auto", + "screenOcr.statusRecognizing": "Lecture du texte…", + "screenOcr.statusReady": "{{count}} mots · faites glisser pour sélectionner", + "screenOcr.statusEmpty": "Aucun texte trouvé", + "screenOcr.statusSelected": "{{count}} caractères sélectionnés", + "screenOcr.hint": "Glisser pour sélectionner · double-clic sur un mot · Ctrl+A tout · Ctrl+C copier · Échap fermer", + "screenOcr.toastCopied": "Copié", + "screenOcr.toastImageCopied": "Image copiée", + "screenOcr.toastSaved": "Enregistré", + "screenOcr.working": "Traitement…", + "screenOcr.resultTranslate": "Traduction", + "screenOcr.resultSummary": "Résumé", + "screenOcr.errorRecognition": "Impossible de lire le texte", + "screenOcr.errorUnavailable": "La capture de texte n’est pas disponible sur ce PC. Installez un module linguistique avec reconnaissance optique de caractères dans les Paramètres Windows.", + "screenOcr.errorExport": "Impossible d’enregistrer ou de copier", + "screenOcr.errorLlm": "Aucune réponse de l’IA. Vérifiez les réglages du modèle.", + "screenOcr.errorTts": "Impossible de lire à voix haute", + "screenOcr.errorLink": "Impossible d’ouvrir le lien", + "screenOcr.errorInvalid": "Cette capture est déjà fermée. Recommencez la capture.", + "screenOcr.errorEmpty": "Aucun texte sélectionné" } diff --git a/packages/i18n/src/locales/ja.json b/packages/i18n/src/locales/ja.json index 461e7130..9395d6bd 100644 --- a/packages/i18n/src/locales/ja.json +++ b/packages/i18n/src/locales/ja.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Markdownファイル", + "mobile.hist.shareAudio": "元の音声を共有", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "サーバーに通知機能が設定されていません。", "web.push.blocked": "通知がブロックされています。ブラウザのサイト設定で許可してください。", "web.push.revoked": "このブラウザはアカウントから削除されました。再度追加する前に、このサイトの保存データを消去してください。", - "web.push.error": "通知設定を変更できませんでした。ブラウザの権限を確認して、もう一度お試しください。" + "web.push.error": "通知設定を変更できませんでした。ブラウザの権限を確認して、もう一度お試しください。", + "keybinding.action.screenOcr": "画面の文字を読み取る (OCR)", + "keybinding.action.screenOcr.desc": "画面をキャプチャし、その上の文字をドラッグして選択します。", + "screenOcr.dialog.savePdf": "PDF として保存", + "screenOcr.dialog.saveImage": "画像として保存", + "screenOcr.errorCapture": "画面をキャプチャできませんでした。", + "screenOcr.modeText": "テキスト選択", + "screenOcr.modeRect": "範囲選択", + "screenOcr.copy": "コピー", + "screenOcr.copyLine": "1 行でコピー", + "screenOcr.copyImage": "画像をコピー", + "screenOcr.saveImage": "画像を保存", + "screenOcr.savePdf": "PDF を保存", + "screenOcr.translate": "翻訳", + "screenOcr.summarize": "要約", + "screenOcr.speak": "読み上げ", + "screenOcr.stopSpeak": "読み上げを停止", + "screenOcr.openLink": "リンクを開く", + "screenOcr.search": "ウェブ検索", + "screenOcr.selectAll": "すべて選択", + "screenOcr.close": "閉じる", + "screenOcr.language": "認識言語", + "screenOcr.languageAuto": "自動", + "screenOcr.statusRecognizing": "文字を読み取り中…", + "screenOcr.statusReady": "{{count}} 語 · ドラッグして選択", + "screenOcr.statusEmpty": "文字が見つかりませんでした", + "screenOcr.statusSelected": "{{count}} 文字を選択", + "screenOcr.hint": "ドラッグで選択 · ダブルクリックで単語 · Ctrl+A すべて · Ctrl+C コピー · Esc 閉じる", + "screenOcr.toastCopied": "コピーしました", + "screenOcr.toastImageCopied": "画像をコピーしました", + "screenOcr.toastSaved": "保存しました", + "screenOcr.working": "処理中…", + "screenOcr.resultTranslate": "翻訳結果", + "screenOcr.resultSummary": "要約結果", + "screenOcr.errorRecognition": "文字を読み取れませんでした", + "screenOcr.errorUnavailable": "この PC では画面の文字読み取りを使用できません。Windows の設定で言語パック(光学式文字認識)をインストールしてください。", + "screenOcr.errorExport": "保存またはコピーできませんでした", + "screenOcr.errorLlm": "AI から応答がありませんでした。モデル設定を確認してください。", + "screenOcr.errorTts": "読み上げできませんでした", + "screenOcr.errorLink": "リンクを開けませんでした", + "screenOcr.errorInvalid": "このキャプチャはすでに閉じられています。もう一度キャプチャしてください。", + "screenOcr.errorEmpty": "テキストが選択されていません" } diff --git a/packages/i18n/src/locales/ko.json b/packages/i18n/src/locales/ko.json index b7bd47aa..3ebcc69c 100644 --- a/packages/i18n/src/locales/ko.json +++ b/packages/i18n/src/locales/ko.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "완료", "mobile.hist.jobStatus.failed": "실패", "mobile.hist.jobStatus.cancelled": "취소됨", + "mobile.hist.shareMarkdown": "Markdown 파일", + "mobile.hist.shareAudio": "원본 오디오 공유", "mobile.hist.share": "공유", "mobile.hist.shareFailed": "공유 시트를 열지 못했습니다.", "mobile.hist.editFailed": "서버에서 편집을 확정하지 못했습니다.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "서버에 알림 기능이 설정되지 않았습니다.", "web.push.blocked": "브라우저에서 알림이 차단되었습니다. 사이트 설정에서 알림을 허용해 주세요.", "web.push.revoked": "이 브라우저가 계정에서 해제되었습니다. 다시 추가하려면 이 사이트의 저장 데이터를 삭제해 주세요.", - "web.push.error": "알림 설정을 바꾸지 못했습니다. 브라우저 권한을 확인한 뒤 다시 시도해 주세요." + "web.push.error": "알림 설정을 바꾸지 못했습니다. 브라우저 권한을 확인한 뒤 다시 시도해 주세요.", + "keybinding.action.screenOcr": "화면 글자 읽기 (OCR)", + "keybinding.action.screenOcr.desc": "화면을 캡처해 그 위의 글자를 끌어서 고릅니다.", + "screenOcr.dialog.savePdf": "PDF로 저장", + "screenOcr.dialog.saveImage": "이미지로 저장", + "screenOcr.errorCapture": "화면을 캡처하지 못했습니다.", + "screenOcr.modeText": "글자 선택", + "screenOcr.modeRect": "영역 선택", + "screenOcr.copy": "복사", + "screenOcr.copyLine": "한 줄로 복사", + "screenOcr.copyImage": "이미지 복사", + "screenOcr.saveImage": "이미지 저장", + "screenOcr.savePdf": "PDF 저장", + "screenOcr.translate": "번역", + "screenOcr.summarize": "요약", + "screenOcr.speak": "읽어 주기", + "screenOcr.stopSpeak": "읽기 중지", + "screenOcr.openLink": "링크 열기", + "screenOcr.search": "웹 검색", + "screenOcr.selectAll": "전체 선택", + "screenOcr.close": "닫기", + "screenOcr.language": "인식 언어", + "screenOcr.languageAuto": "자동", + "screenOcr.statusRecognizing": "글자를 읽는 중…", + "screenOcr.statusReady": "단어 {{count}}개 · 끌어서 고르세요", + "screenOcr.statusEmpty": "글자를 찾지 못했습니다", + "screenOcr.statusSelected": "{{count}}자 선택함", + "screenOcr.hint": "끌어서 선택 · 더블클릭 단어 · Ctrl+A 전체 · Ctrl+C 복사 · Esc 닫기", + "screenOcr.toastCopied": "복사함", + "screenOcr.toastImageCopied": "이미지를 복사함", + "screenOcr.toastSaved": "저장함", + "screenOcr.working": "처리 중…", + "screenOcr.resultTranslate": "번역 결과", + "screenOcr.resultSummary": "요약 결과", + "screenOcr.errorRecognition": "글자를 읽지 못했습니다", + "screenOcr.errorUnavailable": "이 PC에서는 화면 글자 읽기를 쓸 수 없습니다. Windows 설정에서 언어 팩(광학 문자 인식)을 설치해 주세요.", + "screenOcr.errorExport": "저장하거나 복사하지 못했습니다", + "screenOcr.errorLlm": "AI 응답을 받지 못했습니다. 모델 설정을 확인해 주세요.", + "screenOcr.errorTts": "읽어 주지 못했습니다", + "screenOcr.errorLink": "링크를 열지 못했습니다", + "screenOcr.errorInvalid": "이 캡처는 이미 닫혔습니다. 다시 캡처해 주세요.", + "screenOcr.errorEmpty": "선택한 글자가 없습니다" } diff --git a/packages/i18n/src/locales/pt.json b/packages/i18n/src/locales/pt.json index 35cfc140..578c5bc6 100644 --- a/packages/i18n/src/locales/pt.json +++ b/packages/i18n/src/locales/pt.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Arquivo Markdown", + "mobile.hist.shareAudio": "Compartilhar áudio original", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "As notificações não estão configuradas no servidor.", "web.push.blocked": "As notificações estão bloqueadas. Permita-as nas configurações do site no navegador.", "web.push.revoked": "Este navegador foi removido da conta. Limpe os dados salvos deste site antes de adicioná-lo novamente.", - "web.push.error": "Não foi possível alterar as notificações. Verifique a permissão do navegador e tente novamente." + "web.push.error": "Não foi possível alterar as notificações. Verifique a permissão do navegador e tente novamente.", + "keybinding.action.screenOcr": "Capturar texto da tela (OCR)", + "keybinding.action.screenOcr.desc": "Captura a tela para você selecionar o texto arrastando.", + "screenOcr.dialog.savePdf": "Salvar como PDF", + "screenOcr.dialog.saveImage": "Salvar como imagem", + "screenOcr.errorCapture": "Não foi possível capturar a tela.", + "screenOcr.modeText": "Texto", + "screenOcr.modeRect": "Área", + "screenOcr.copy": "Copiar", + "screenOcr.copyLine": "Copiar em uma linha", + "screenOcr.copyImage": "Copiar imagem", + "screenOcr.saveImage": "Salvar imagem", + "screenOcr.savePdf": "Salvar PDF", + "screenOcr.translate": "Traduzir", + "screenOcr.summarize": "Resumir", + "screenOcr.speak": "Ler em voz alta", + "screenOcr.stopSpeak": "Parar leitura", + "screenOcr.openLink": "Abrir link", + "screenOcr.search": "Pesquisar na web", + "screenOcr.selectAll": "Selecionar tudo", + "screenOcr.close": "Fechar", + "screenOcr.language": "Idioma", + "screenOcr.languageAuto": "Automático", + "screenOcr.statusRecognizing": "Lendo o texto…", + "screenOcr.statusReady": "{{count}} palavras · arraste para selecionar", + "screenOcr.statusEmpty": "Nenhum texto encontrado", + "screenOcr.statusSelected": "{{count}} caracteres selecionados", + "screenOcr.hint": "Arraste para selecionar · clique duplo em uma palavra · Ctrl+A tudo · Ctrl+C copiar · Esc fechar", + "screenOcr.toastCopied": "Copiado", + "screenOcr.toastImageCopied": "Imagem copiada", + "screenOcr.toastSaved": "Salvo", + "screenOcr.working": "Processando…", + "screenOcr.resultTranslate": "Tradução", + "screenOcr.resultSummary": "Resumo", + "screenOcr.errorRecognition": "Não foi possível ler o texto", + "screenOcr.errorUnavailable": "A captura de texto não está disponível neste PC. Instale um pacote de idioma com reconhecimento óptico de caracteres nas Configurações do Windows.", + "screenOcr.errorExport": "Não foi possível salvar ou copiar", + "screenOcr.errorLlm": "A IA não respondeu. Verifique as configurações do modelo.", + "screenOcr.errorTts": "Não foi possível ler em voz alta", + "screenOcr.errorLink": "Não foi possível abrir o link", + "screenOcr.errorInvalid": "Esta captura já foi fechada. Capture novamente.", + "screenOcr.errorEmpty": "Nenhum texto selecionado" } diff --git a/packages/i18n/src/locales/ru.json b/packages/i18n/src/locales/ru.json index 49551c67..763a385f 100644 --- a/packages/i18n/src/locales/ru.json +++ b/packages/i18n/src/locales/ru.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Файл Markdown", + "mobile.hist.shareAudio": "Поделиться исходным аудио", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Уведомления не настроены на сервере.", "web.push.blocked": "Уведомления заблокированы. Разрешите их в настройках сайта в браузере.", "web.push.revoked": "Этот браузер удалён из аккаунта. Перед повторным добавлением очистите сохранённые данные сайта.", - "web.push.error": "Не удалось изменить уведомления. Проверьте разрешение браузера и повторите попытку." + "web.push.error": "Не удалось изменить уведомления. Проверьте разрешение браузера и повторите попытку.", + "keybinding.action.screenOcr": "Распознавание текста на экране (OCR)", + "keybinding.action.screenOcr.desc": "Делает снимок экрана, чтобы выделять текст на нём перетаскиванием.", + "screenOcr.dialog.savePdf": "Сохранить как PDF", + "screenOcr.dialog.saveImage": "Сохранить как изображение", + "screenOcr.errorCapture": "Не удалось сделать снимок экрана.", + "screenOcr.modeText": "Текст", + "screenOcr.modeRect": "Область", + "screenOcr.copy": "Копировать", + "screenOcr.copyLine": "Копировать одной строкой", + "screenOcr.copyImage": "Копировать изображение", + "screenOcr.saveImage": "Сохранить изображение", + "screenOcr.savePdf": "Сохранить PDF", + "screenOcr.translate": "Перевести", + "screenOcr.summarize": "Кратко", + "screenOcr.speak": "Прочитать вслух", + "screenOcr.stopSpeak": "Остановить чтение", + "screenOcr.openLink": "Открыть ссылку", + "screenOcr.search": "Искать в интернете", + "screenOcr.selectAll": "Выделить всё", + "screenOcr.close": "Закрыть", + "screenOcr.language": "Язык", + "screenOcr.languageAuto": "Авто", + "screenOcr.statusRecognizing": "Распознаём текст…", + "screenOcr.statusReady": "Слов: {{count}} · выделяйте перетаскиванием", + "screenOcr.statusEmpty": "Текст не найден", + "screenOcr.statusSelected": "Выделено символов: {{count}}", + "screenOcr.hint": "Перетащите для выделения · двойной щелчок — слово · Ctrl+A всё · Ctrl+C копировать · Esc закрыть", + "screenOcr.toastCopied": "Скопировано", + "screenOcr.toastImageCopied": "Изображение скопировано", + "screenOcr.toastSaved": "Сохранено", + "screenOcr.working": "Обработка…", + "screenOcr.resultTranslate": "Перевод", + "screenOcr.resultSummary": "Краткое содержание", + "screenOcr.errorRecognition": "Не удалось распознать текст", + "screenOcr.errorUnavailable": "Распознавание текста на этом ПК недоступно. Установите в параметрах Windows языковой пакет с оптическим распознаванием символов.", + "screenOcr.errorExport": "Не удалось сохранить или скопировать", + "screenOcr.errorLlm": "ИИ не ответил. Проверьте настройки модели.", + "screenOcr.errorTts": "Не удалось прочитать вслух", + "screenOcr.errorLink": "Не удалось открыть ссылку", + "screenOcr.errorInvalid": "Этот снимок уже закрыт. Сделайте новый.", + "screenOcr.errorEmpty": "Текст не выделен" } diff --git a/packages/i18n/src/locales/th.json b/packages/i18n/src/locales/th.json index 06a0c925..83cce1c0 100644 --- a/packages/i18n/src/locales/th.json +++ b/packages/i18n/src/locales/th.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "ไฟล์ Markdown", + "mobile.hist.shareAudio": "แชร์เสียงต้นฉบับ", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "ยังไม่ได้ตั้งค่าการแจ้งเตือนบนเซิร์ฟเวอร์", "web.push.blocked": "การแจ้งเตือนถูกบล็อก โปรดอนุญาตในการตั้งค่าเว็บไซต์ของเบราว์เซอร์", "web.push.revoked": "เบราว์เซอร์นี้ถูกนำออกจากบัญชีแล้ว โปรดล้างข้อมูลที่เว็บไซต์นี้บันทึกไว้ก่อนเพิ่มอีกครั้ง", - "web.push.error": "เปลี่ยนการตั้งค่าการแจ้งเตือนไม่สำเร็จ โปรดตรวจสอบสิทธิ์ของเบราว์เซอร์แล้วลองอีกครั้ง" + "web.push.error": "เปลี่ยนการตั้งค่าการแจ้งเตือนไม่สำเร็จ โปรดตรวจสอบสิทธิ์ของเบราว์เซอร์แล้วลองอีกครั้ง", + "keybinding.action.screenOcr": "จับข้อความบนหน้าจอ (OCR)", + "keybinding.action.screenOcr.desc": "จับภาพหน้าจอเพื่อลากเลือกข้อความบนนั้น", + "screenOcr.dialog.savePdf": "บันทึกเป็น PDF", + "screenOcr.dialog.saveImage": "บันทึกเป็นรูปภาพ", + "screenOcr.errorCapture": "จับภาพหน้าจอไม่ได้", + "screenOcr.modeText": "เลือกข้อความ", + "screenOcr.modeRect": "เลือกพื้นที่", + "screenOcr.copy": "คัดลอก", + "screenOcr.copyLine": "คัดลอกเป็นบรรทัดเดียว", + "screenOcr.copyImage": "คัดลอกรูปภาพ", + "screenOcr.saveImage": "บันทึกรูปภาพ", + "screenOcr.savePdf": "บันทึก PDF", + "screenOcr.translate": "แปล", + "screenOcr.summarize": "สรุป", + "screenOcr.speak": "อ่านออกเสียง", + "screenOcr.stopSpeak": "หยุดอ่าน", + "screenOcr.openLink": "เปิดลิงก์", + "screenOcr.search": "ค้นหาบนเว็บ", + "screenOcr.selectAll": "เลือกทั้งหมด", + "screenOcr.close": "ปิด", + "screenOcr.language": "ภาษา", + "screenOcr.languageAuto": "อัตโนมัติ", + "screenOcr.statusRecognizing": "กำลังอ่านข้อความ…", + "screenOcr.statusReady": "{{count}} คำ · ลากเพื่อเลือก", + "screenOcr.statusEmpty": "ไม่พบข้อความ", + "screenOcr.statusSelected": "เลือก {{count}} อักขระ", + "screenOcr.hint": "ลากเพื่อเลือก · ดับเบิลคลิกเลือกคำ · Ctrl+A ทั้งหมด · Ctrl+C คัดลอก · Esc ปิด", + "screenOcr.toastCopied": "คัดลอกแล้ว", + "screenOcr.toastImageCopied": "คัดลอกรูปภาพแล้ว", + "screenOcr.toastSaved": "บันทึกแล้ว", + "screenOcr.working": "กำลังประมวลผล…", + "screenOcr.resultTranslate": "ผลการแปล", + "screenOcr.resultSummary": "ผลสรุป", + "screenOcr.errorRecognition": "อ่านข้อความไม่ได้", + "screenOcr.errorUnavailable": "พีซีนี้ใช้การจับข้อความบนหน้าจอไม่ได้ โปรดติดตั้งชุดภาษาที่มีการรู้จำอักขระด้วยแสงในการตั้งค่า Windows", + "screenOcr.errorExport": "บันทึกหรือคัดลอกไม่ได้", + "screenOcr.errorLlm": "AI ไม่ตอบกลับ โปรดตรวจสอบการตั้งค่าโมเดล", + "screenOcr.errorTts": "อ่านออกเสียงไม่ได้", + "screenOcr.errorLink": "เปิดลิงก์ไม่ได้", + "screenOcr.errorInvalid": "การจับภาพนี้ปิดไปแล้ว โปรดจับภาพใหม่", + "screenOcr.errorEmpty": "ยังไม่ได้เลือกข้อความ" } diff --git a/packages/i18n/src/locales/vi.json b/packages/i18n/src/locales/vi.json index 88f511e0..0ce7e95c 100644 --- a/packages/i18n/src/locales/vi.json +++ b/packages/i18n/src/locales/vi.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Tệp Markdown", + "mobile.hist.shareAudio": "Chia sẻ âm thanh gốc", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "Thông báo chưa được cấu hình trên máy chủ.", "web.push.blocked": "Thông báo đang bị chặn. Hãy cho phép trong phần cài đặt trang web của trình duyệt.", "web.push.revoked": "Trình duyệt này đã bị xóa khỏi tài khoản. Hãy xóa dữ liệu đã lưu của trang web trước khi thêm lại.", - "web.push.error": "Không thể thay đổi thông báo. Hãy kiểm tra quyền của trình duyệt rồi thử lại." + "web.push.error": "Không thể thay đổi thông báo. Hãy kiểm tra quyền của trình duyệt rồi thử lại.", + "keybinding.action.screenOcr": "Nhận dạng chữ trên màn hình (OCR)", + "keybinding.action.screenOcr.desc": "Chụp màn hình để bạn kéo chọn chữ trên đó.", + "screenOcr.dialog.savePdf": "Lưu thành PDF", + "screenOcr.dialog.saveImage": "Lưu thành ảnh", + "screenOcr.errorCapture": "Không chụp được màn hình.", + "screenOcr.modeText": "Chọn chữ", + "screenOcr.modeRect": "Chọn vùng", + "screenOcr.copy": "Sao chép", + "screenOcr.copyLine": "Sao chép thành một dòng", + "screenOcr.copyImage": "Sao chép ảnh", + "screenOcr.saveImage": "Lưu ảnh", + "screenOcr.savePdf": "Lưu PDF", + "screenOcr.translate": "Dịch", + "screenOcr.summarize": "Tóm tắt", + "screenOcr.speak": "Đọc to", + "screenOcr.stopSpeak": "Dừng đọc", + "screenOcr.openLink": "Mở liên kết", + "screenOcr.search": "Tìm trên web", + "screenOcr.selectAll": "Chọn tất cả", + "screenOcr.close": "Đóng", + "screenOcr.language": "Ngôn ngữ", + "screenOcr.languageAuto": "Tự động", + "screenOcr.statusRecognizing": "Đang đọc chữ…", + "screenOcr.statusReady": "{{count}} từ · kéo để chọn", + "screenOcr.statusEmpty": "Không tìm thấy chữ", + "screenOcr.statusSelected": "Đã chọn {{count}} ký tự", + "screenOcr.hint": "Kéo để chọn · nhấp đúp chọn từ · Ctrl+A tất cả · Ctrl+C sao chép · Esc đóng", + "screenOcr.toastCopied": "Đã sao chép", + "screenOcr.toastImageCopied": "Đã sao chép ảnh", + "screenOcr.toastSaved": "Đã lưu", + "screenOcr.working": "Đang xử lý…", + "screenOcr.resultTranslate": "Bản dịch", + "screenOcr.resultSummary": "Bản tóm tắt", + "screenOcr.errorRecognition": "Không đọc được chữ", + "screenOcr.errorUnavailable": "Máy tính này không dùng được tính năng nhận dạng chữ. Hãy cài gói ngôn ngữ có nhận dạng ký tự quang học trong Cài đặt Windows.", + "screenOcr.errorExport": "Không lưu hoặc sao chép được", + "screenOcr.errorLlm": "AI không phản hồi. Hãy kiểm tra cài đặt mô hình.", + "screenOcr.errorTts": "Không đọc to được", + "screenOcr.errorLink": "Không mở được liên kết", + "screenOcr.errorInvalid": "Ảnh chụp này đã đóng. Hãy chụp lại.", + "screenOcr.errorEmpty": "Chưa chọn chữ" } diff --git a/packages/i18n/src/locales/zh-TW.json b/packages/i18n/src/locales/zh-TW.json index 09b169ff..e54de3b9 100644 --- a/packages/i18n/src/locales/zh-TW.json +++ b/packages/i18n/src/locales/zh-TW.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Markdown 檔案", + "mobile.hist.shareAudio": "分享原始音訊", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "伺服器尚未設定通知功能。", "web.push.blocked": "通知已遭封鎖。請在瀏覽器的網站設定中允許通知。", "web.push.revoked": "此瀏覽器已從帳號移除。再次加入前,請清除此網站儲存的資料。", - "web.push.error": "無法變更通知設定。請檢查瀏覽器權限後再試一次。" + "web.push.error": "無法變更通知設定。請檢查瀏覽器權限後再試一次。", + "keybinding.action.screenOcr": "螢幕文字辨識 (OCR)", + "keybinding.action.screenOcr.desc": "擷取螢幕,並拖曳選取其中的文字。", + "screenOcr.dialog.savePdf": "另存為 PDF", + "screenOcr.dialog.saveImage": "另存為圖片", + "screenOcr.errorCapture": "無法擷取螢幕。", + "screenOcr.modeText": "選取文字", + "screenOcr.modeRect": "選取區域", + "screenOcr.copy": "複製", + "screenOcr.copyLine": "複製為一行", + "screenOcr.copyImage": "複製圖片", + "screenOcr.saveImage": "儲存圖片", + "screenOcr.savePdf": "儲存 PDF", + "screenOcr.translate": "翻譯", + "screenOcr.summarize": "摘要", + "screenOcr.speak": "朗讀", + "screenOcr.stopSpeak": "停止朗讀", + "screenOcr.openLink": "開啟連結", + "screenOcr.search": "網頁搜尋", + "screenOcr.selectAll": "全選", + "screenOcr.close": "關閉", + "screenOcr.language": "辨識語言", + "screenOcr.languageAuto": "自動", + "screenOcr.statusRecognizing": "正在辨識文字…", + "screenOcr.statusReady": "{{count}} 個詞 · 拖曳選取", + "screenOcr.statusEmpty": "找不到文字", + "screenOcr.statusSelected": "已選取 {{count}} 個字元", + "screenOcr.hint": "拖曳選取 · 按兩下選詞 · Ctrl+A 全選 · Ctrl+C 複製 · Esc 關閉", + "screenOcr.toastCopied": "已複製", + "screenOcr.toastImageCopied": "已複製圖片", + "screenOcr.toastSaved": "已儲存", + "screenOcr.working": "處理中…", + "screenOcr.resultTranslate": "翻譯結果", + "screenOcr.resultSummary": "摘要結果", + "screenOcr.errorRecognition": "無法辨識文字", + "screenOcr.errorUnavailable": "此電腦無法使用螢幕文字辨識。請在 Windows 設定中安裝含光學字元辨識的語言套件。", + "screenOcr.errorExport": "無法儲存或複製", + "screenOcr.errorLlm": "未收到 AI 回應。請檢查模型設定。", + "screenOcr.errorTts": "無法朗讀", + "screenOcr.errorLink": "無法開啟連結", + "screenOcr.errorInvalid": "此擷取已關閉。請重新擷取。", + "screenOcr.errorEmpty": "未選取文字" } diff --git a/packages/i18n/src/locales/zh.json b/packages/i18n/src/locales/zh.json index b8392b72..22cd64d7 100644 --- a/packages/i18n/src/locales/zh.json +++ b/packages/i18n/src/locales/zh.json @@ -389,6 +389,8 @@ "mobile.hist.jobStatus.succeeded": "Completed", "mobile.hist.jobStatus.failed": "Failed", "mobile.hist.jobStatus.cancelled": "Cancelled", + "mobile.hist.shareMarkdown": "Markdown 文件", + "mobile.hist.shareAudio": "分享原始音频", "mobile.hist.share": "Share", "mobile.hist.shareFailed": "The share sheet could not be opened.", "mobile.hist.editFailed": "The server did not confirm the edit.", @@ -2498,5 +2500,46 @@ "web.push.unconfigured": "服务器尚未配置通知功能。", "web.push.blocked": "通知已被阻止。请在浏览器的网站设置中允许通知。", "web.push.revoked": "此浏览器已从账户中移除。再次添加前,请清除此网站存储的数据。", - "web.push.error": "无法更改通知设置。请检查浏览器权限后重试。" + "web.push.error": "无法更改通知设置。请检查浏览器权限后重试。", + "keybinding.action.screenOcr": "屏幕文字识别 (OCR)", + "keybinding.action.screenOcr.desc": "截取屏幕,并拖动选择其中的文字。", + "screenOcr.dialog.savePdf": "另存为 PDF", + "screenOcr.dialog.saveImage": "另存为图片", + "screenOcr.errorCapture": "无法截取屏幕。", + "screenOcr.modeText": "选择文字", + "screenOcr.modeRect": "选择区域", + "screenOcr.copy": "复制", + "screenOcr.copyLine": "复制为一行", + "screenOcr.copyImage": "复制图片", + "screenOcr.saveImage": "保存图片", + "screenOcr.savePdf": "保存 PDF", + "screenOcr.translate": "翻译", + "screenOcr.summarize": "摘要", + "screenOcr.speak": "朗读", + "screenOcr.stopSpeak": "停止朗读", + "screenOcr.openLink": "打开链接", + "screenOcr.search": "网页搜索", + "screenOcr.selectAll": "全选", + "screenOcr.close": "关闭", + "screenOcr.language": "识别语言", + "screenOcr.languageAuto": "自动", + "screenOcr.statusRecognizing": "正在识别文字…", + "screenOcr.statusReady": "{{count}} 个词 · 拖动选择", + "screenOcr.statusEmpty": "未找到文字", + "screenOcr.statusSelected": "已选择 {{count}} 个字符", + "screenOcr.hint": "拖动选择 · 双击选词 · Ctrl+A 全选 · Ctrl+C 复制 · Esc 关闭", + "screenOcr.toastCopied": "已复制", + "screenOcr.toastImageCopied": "已复制图片", + "screenOcr.toastSaved": "已保存", + "screenOcr.working": "处理中…", + "screenOcr.resultTranslate": "翻译结果", + "screenOcr.resultSummary": "摘要结果", + "screenOcr.errorRecognition": "无法识别文字", + "screenOcr.errorUnavailable": "此电脑无法使用屏幕文字识别。请在 Windows 设置中安装带光学字符识别的语言包。", + "screenOcr.errorExport": "无法保存或复制", + "screenOcr.errorLlm": "未收到 AI 响应。请检查模型设置。", + "screenOcr.errorTts": "无法朗读", + "screenOcr.errorLink": "无法打开链接", + "screenOcr.errorInvalid": "此截图已关闭。请重新截取。", + "screenOcr.errorEmpty": "未选择文字" } diff --git a/packages/ui-native/package.json b/packages/ui-native/package.json index 765e2301..96ef8796 100644 --- a/packages/ui-native/package.json +++ b/packages/ui-native/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/ui-native", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice React Native DS — MetalCard/PhosphorText/Led/WaveBars etc.", "license": "MIT", diff --git a/packages/ui/package.json b/packages/ui/package.json index a96ff7ce..67ed4c5b 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@d3ro/ui", - "version": "1.17.1", + "version": "1.18.4", "private": true, "description": "D3RO Voice 공유 UI — 디자인 시스템 컴포넌트 + 테마 토큰 + CSS 변수 맵", "license": "MIT", diff --git a/release/product-version.json b/release/product-version.json index c8a7117e..157c0f7f 100644 --- a/release/product-version.json +++ b/release/product-version.json @@ -1,8 +1,8 @@ { "schemaVersion": 1, - "version": "1.17.1", - "androidVersionCode": 1170100, - "iosBuildNumber": 1170100, - "releaseDate": "2026-11-14", + "version": "1.18.4", + "androidVersionCode": 1180400, + "iosBuildNumber": 1180400, + "releaseDate": "2026-11-20", "desktopLicensePublicKeyId": "5c52b765135ee2531c681b53cd4dc0e96fff8737f496c0b04ba8334fc81a887f" } diff --git a/release/update-policy.json b/release/update-policy.json index 85acbe3d..21b86c75 100644 --- a/release/update-policy.json +++ b/release/update-policy.json @@ -9,7 +9,7 @@ "minimumSupportedVersion": "1.0.0", "forceInstallBelow": "1.11.0", "fullInstallOnMajorChange": true, - "fullInstallVersionGap": 3, + "fullInstallVersionGap": 0, "stagingPercentage": 100, "killSwitch": false } diff --git a/release/webpush-vapid-public.key b/release/webpush-vapid-public.key new file mode 100644 index 00000000..7adef382 --- /dev/null +++ b/release/webpush-vapid-public.key @@ -0,0 +1 @@ +BAQA7onAItf1Exdf_UwpYAi_T98ITy-MThrcxsNVrrsj011zOiZH-zujdVk39DstwlUZ566JWM1mVjzOdc6ymfY diff --git a/scripts/ci/build-desktop-installer.mjs b/scripts/ci/build-desktop-installer.mjs index 856ad4f8..50431240 100644 --- a/scripts/ci/build-desktop-installer.mjs +++ b/scripts/ci/build-desktop-installer.mjs @@ -15,6 +15,7 @@ import { spawnSync } from 'node:child_process' import { existsSync, readFileSync, readdirSync, rmSync, statSync } from 'node:fs' import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' +import { supportsWindowsDifferentialDownload } from './lib/desktop-installer-mode.mjs' const root = join(dirname(fileURLToPath(import.meta.url)), '..', '..') const desktopDir = join(root, 'apps', 'desktop') @@ -24,6 +25,9 @@ const MAX_UPLOAD_BYTES = 100 * 1024 * 1024 const version = JSON.parse(readFileSync(join(root, 'release', 'product-version.json'), 'utf8')).version const releaseDir = join(desktopDir, 'release', version) const appDir = join(releaseDir, 'win-unpacked') +const differentialDownload = supportsWindowsDifferentialDownload( + readFileSync(join(desktopDir, 'electron-builder.yml'), 'utf8'), +) const builderFlags = ['--config', 'electron-builder.yml', '--publish', 'never', '-c.win.forceCodeSigning=false', '-c.npmRebuild=false'] // 같은 버전을 다시 빌드할 때 이전 산출물(휴대용 zip 등)이 섞여 게시되지 않게 비운다. @@ -39,9 +43,10 @@ run('npx', ['electron-builder', '--prepackaged', appDir, '--win', 'nsis', '--x64 const installer = readdirSync(releaseDir).find((name) => /-Setup-.*\.exe$/.test(name)) if (!installer) fail(`설치본이 없습니다: ${releaseDir}`) -for (const required of [`${installer}.blockmap`, 'latest.yml']) { - if (!existsSync(join(releaseDir, required))) fail(`${required} 가 없습니다: ${releaseDir}`) -} +const blockmap = `${installer}.blockmap` +if (differentialDownload && !existsSync(join(releaseDir, blockmap))) fail(`${blockmap} 가 없습니다: ${releaseDir}`) +if (!differentialDownload && existsSync(join(releaseDir, blockmap))) fail(`full-only 패키지에 ${blockmap} 가 있습니다.`) +if (!existsSync(join(releaseDir, 'latest.yml'))) fail(`latest.yml 가 없습니다: ${releaseDir}`) if (!existsSync(join(appDir, 'resources', 'app-update.yml'))) fail('app-update.yml 누락') if (!readFileSync(join(releaseDir, 'latest.yml'), 'utf8').includes(`version: ${version}`)) { fail('latest.yml 의 버전이 product-version.json 과 다릅니다.') diff --git a/scripts/ci/build-mobile-local-e2e.ps1 b/scripts/ci/build-mobile-local-e2e.ps1 index 461057d5..f0a872c4 100644 --- a/scripts/ci/build-mobile-local-e2e.ps1 +++ b/scripts/ci/build-mobile-local-e2e.ps1 @@ -9,9 +9,22 @@ param( ) $ErrorActionPreference = 'Stop' +if ($PSVersionTable.PSEdition -eq 'Desktop') { + Import-Module (Join-Path $env:SystemRoot 'system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1') -Force +} $root = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path $androidRoot = Join-Path $root 'apps\mobile-rn\android' -$status = & supabase status --workdir (Join-Path $root 'server') -o env 2>$null +$previousErrorActionPreference = $ErrorActionPreference +try { + $ErrorActionPreference = 'Continue' + $status = & npx --yes supabase@3.2.0 status --workdir (Join-Path $root 'server') -o env 2>$null + $statusExitCode = $LASTEXITCODE +} finally { + $ErrorActionPreference = $previousErrorActionPreference +} +if ($statusExitCode -ne 0) { + throw "Supabase status failed with exit code $statusExitCode" +} $configuration = @{} foreach ($line in $status) { if ($line -match '^([A-Z_]+)="(.*)"$') { $configuration[$matches[1]] = $matches[2] } diff --git a/scripts/ci/fix-native-abi.mjs b/scripts/ci/fix-native-abi.mjs index aa0795e0..56d6cb13 100644 --- a/scripts/ci/fix-native-abi.mjs +++ b/scripts/ci/fix-native-abi.mjs @@ -37,7 +37,7 @@ const sourcePackageJson = JSON.parse( readFileSync(join(root, 'apps', 'desktop', 'package.json'), 'utf8'), ) const electronVersion = - sourcePackageJson.devDependencies?.electron?.replace(/[^0-9.]/g, '') ?? '33.4.11' + sourcePackageJson.devDependencies?.electron?.replace(/[^0-9.]/g, '') ?? '43.8.10' const arch = process.arch === 'arm64' ? 'arm64' : 'x64' const relativeBinary = join( @@ -51,6 +51,18 @@ const targetBinary = inPlace ? join(root, relativeBinary) : join(packagedDir, 'resources', 'app.asar.unpacked', relativeBinary) +// better-sqlite3 13 부터는 Node-API 프리빌드(prebuilds/-.node)가 패키지에 들어 있다. +// Node-API 바이너리는 런타임 ABI(NODE_MODULE_VERSION)에 묶이지 않아 Node 와 Electron 이 같은 파일을 쓴다 — +// 교체할 것이 없다. (12 이하는 Electron 43(ABI 148)용 프리빌드가 없고 소스 빌드도 V8 API 변경으로 실패한다.) +const moduleRoot = inPlace + ? join(root, 'node_modules', 'better-sqlite3') + : join(packagedDir, 'resources', 'app.asar.unpacked', 'node_modules', 'better-sqlite3') +const napiPrebuild = join(moduleRoot, 'prebuilds', `${process.platform}-${arch}.node`) +if (!existsSync(targetBinary) && existsSync(napiPrebuild)) { + console.log(`[native-abi] better-sqlite3 는 Node-API 프리빌드입니다 — ABI 교체 불필요 (${napiPrebuild})`) + process.exit(0) +} + if (!existsSync(targetBinary)) { console.error(`[native-abi] 패키징 트리에 better-sqlite3 바이너리가 없습니다: ${targetBinary}`) process.exit(1) diff --git a/scripts/ci/lib/desktop-installer-mode.mjs b/scripts/ci/lib/desktop-installer-mode.mjs new file mode 100644 index 00000000..5130bbb2 --- /dev/null +++ b/scripts/ci/lib/desktop-installer-mode.mjs @@ -0,0 +1,4 @@ +export function supportsWindowsDifferentialDownload(builderSource) { + const nsisBlock = /^nsis:\r?\n((?:[ \t]+[^\r\n]*(?:\r?\n|$))*)/m.exec(builderSource)?.[1] ?? '' + return !/^[ \t]+differentialPackage:[ \t]*false[ \t]*(?:#.*)?$/m.test(nsisBlock) +} diff --git a/scripts/ci/lib/release-artifacts.mjs b/scripts/ci/lib/release-artifacts.mjs index 108471e0..696ed77b 100644 --- a/scripts/ci/lib/release-artifacts.mjs +++ b/scripts/ci/lib/release-artifacts.mjs @@ -23,11 +23,12 @@ async function fingerprint(directory, name) { return { name, size: info.size, sha256: hash.digest('hex') } } -export async function saveReleaseArtifacts(directory, { version, tagCommit, withRuntime }) { +export async function saveReleaseArtifacts(directory, { version, tagCommit, withRuntime, differentialDownload = true }) { const names = await readdir(directory) const installers = names.filter((name) => /-Setup-.*\.exe$/.test(name)) if (installers.length !== 1) throw new Error('Expected exactly one release installer') - const files = [installers[0], `${installers[0]}.blockmap`, 'latest.yml'] + const files = [installers[0], 'latest.yml'] + if (differentialDownload) files.splice(1, 0, `${installers[0]}.blockmap`) if (withRuntime) { const portable = JSON.parse(await readFile(join(directory, 'portable.json'), 'utf8')) const runtime = JSON.parse(await readFile(join(directory, 'runtime', 'runtime.json'), 'utf8')) @@ -40,7 +41,7 @@ export async function saveReleaseArtifacts(directory, { version, tagCommit, with } const artifacts = [] for (const name of new Set(files)) artifacts.push(await fingerprint(directory, name)) - const checkpoint = { version, tagCommit, withRuntime, artifacts } + const checkpoint = { version, tagCommit, withRuntime, differentialDownload, artifacts } const path = join(directory, CHECKPOINT) await writeFile(`${path}.tmp`, `${JSON.stringify(checkpoint, null, 2)}\n`) await rename(`${path}.tmp`, path) @@ -51,7 +52,11 @@ export async function verifyReleaseArtifacts(directory, expected) { for (const field of ['version', 'tagCommit', 'withRuntime']) { if (checkpoint[field] !== expected[field]) throw new Error(`Release checkpoint ${field} mismatch`) } - if (!Array.isArray(checkpoint.artifacts) || checkpoint.artifacts.length < 3) { + if (expected.differentialDownload !== undefined && checkpoint.differentialDownload !== expected.differentialDownload) { + throw new Error('Release checkpoint differentialDownload mismatch') + } + const minimumArtifacts = checkpoint.differentialDownload === false ? 2 : 3 + if (!Array.isArray(checkpoint.artifacts) || checkpoint.artifacts.length < minimumArtifacts) { throw new Error('Release checkpoint has no complete artifact set') } for (const entry of checkpoint.artifacts) { diff --git a/scripts/ci/release-desktop.mjs b/scripts/ci/release-desktop.mjs index e9d5815f..4ff22fa3 100644 --- a/scripts/ci/release-desktop.mjs +++ b/scripts/ci/release-desktop.mjs @@ -26,6 +26,7 @@ import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' import { loadSigningKey, publicPemOf } from './lib/update-manifest-signature.mjs' import { saveReleaseArtifacts, verifyReleaseArtifacts } from './lib/release-artifacts.mjs' +import { supportsWindowsDifferentialDownload } from './lib/desktop-installer-mode.mjs' const root = join(dirname(fileURLToPath(import.meta.url)), '..', '..') const args = process.argv.slice(2) @@ -122,7 +123,14 @@ if (resume) { const tag = `v${version}` const tagCommit = git(['rev-parse', `${tag}^{commit}`]) const releaseDir = join(root, 'apps', 'desktop', 'release', version) -const artifactIdentity = { version, tagCommit, withRuntime } +const artifactIdentity = { + version, + tagCommit, + withRuntime, + differentialDownload: supportsWindowsDifferentialDownload( + readFileSync(join(root, 'apps', 'desktop', 'electron-builder.yml'), 'utf8'), + ), +} const hasCheckpoint = existsSync(join(releaseDir, 'release-artifacts.json')) // 태그가 생긴 뒤의 실패는 --resume 으로 이어 간다. diff --git a/scripts/ci/run-mobile-emulator-gate.sh b/scripts/ci/run-mobile-emulator-gate.sh index 9eeaefd9..7879014b 100644 --- a/scripts/ci/run-mobile-emulator-gate.sh +++ b/scripts/ci/run-mobile-emulator-gate.sh @@ -28,6 +28,8 @@ if [[ "$connected_devices" -ne 1 && -z "${ANDROID_SERIAL:-}" ]]; then exit 2 fi adb get-state | grep -Fx 'device' >/dev/null +target_serial="${ANDROID_SERIAL:-$(adb get-serialno)}" +maestro_device_args=(--udid "$target_serial") collect_evidence() { local gate_status="$1" @@ -72,7 +74,7 @@ adb shell pm path "$PACKAGE_NAME" | grep -F "package:" >/dev/null run_flow() { local flow_name="$1" local flow_path="$2" - "$MAESTRO_BIN" test "$flow_path" \ + "$MAESTRO_BIN" test "${maestro_device_args[@]}" "$flow_path" \ --format JUNIT \ --output "apps/mobile-rn/.maestro/${flow_name}.junit.xml" \ --test-output-dir "$OUTPUT_ROOT/$flow_name" @@ -89,7 +91,7 @@ adb shell wm size reset >/dev/null display_override_active='false' if [[ -n "${MOBILE_E2E_EMAIL:-}" && -n "${MOBILE_E2E_PASSWORD:-}" ]]; then - "$MAESTRO_BIN" test 'apps/mobile-rn/.maestro/authenticated-parity.yaml' \ + "$MAESTRO_BIN" test "${maestro_device_args[@]}" 'apps/mobile-rn/.maestro/authenticated-parity.yaml' \ -e MOBILE_E2E_EMAIL="$MOBILE_E2E_EMAIL" \ -e MOBILE_E2E_PASSWORD="$MOBILE_E2E_PASSWORD" \ --format JUNIT \ diff --git a/scripts/ci/sync-version.mjs b/scripts/ci/sync-version.mjs index 095092ce..44d98269 100644 --- a/scripts/ci/sync-version.mjs +++ b/scripts/ci/sync-version.mjs @@ -90,7 +90,7 @@ for (const path of packageManifestPaths) { updateJson(path, (document) => { document.version = metadata.version if (path === 'apps/desktop/package.json') { - document.devDependencies.electron = '33.4.11' + document.devDependencies.electron = '43.8.10' } }) } @@ -103,7 +103,7 @@ updateJson('package-lock.json', (document) => { if (document.packages[key]) document.packages[key].version = metadata.version } if (document.packages['apps/desktop']?.devDependencies) { - document.packages['apps/desktop'].devDependencies.electron = '33.4.11' + document.packages['apps/desktop'].devDependencies.electron = '43.8.10' } }) diff --git a/scripts/ci/verify-android-artifact.mjs b/scripts/ci/verify-android-artifact.mjs index 387c7e1c..a64fffe5 100644 --- a/scripts/ci/verify-android-artifact.mjs +++ b/scripts/ci/verify-android-artifact.mjs @@ -86,6 +86,7 @@ function sameFileSnapshot(left, right) { function parseArguments(argv) { const allowed = new Set([ 'aab', + 'allow-local-cleartext', 'apk', 'bundletool', 'expected-admob-app-id', @@ -706,7 +707,7 @@ function verifyDeepLinkManifest(manifest) { if (!verifiedAppLink) fail('missing_verified_app_link_accept_invite') } -function verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId) { +function verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId, allowLocalCleartext = false) { const packageInfo = badging.match(/package: name='([^']+)' versionCode='([0-9]+)' versionName='([^']+)'/) if (!packageInfo || packageInfo[1] !== EXPECTED_PACKAGE) fail('package_name_mismatch') const versionCode = Number(packageInfo[2]) @@ -719,7 +720,8 @@ function verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId) { if (mode !== 'debug' && debuggable) fail(`${mode}_must_not_be_debuggable`) if (mode === 'debug' && !debuggable) fail('debug_must_be_debuggable') - if (!/android:usesCleartextTraffic[^\n]*0x0\b/.test(manifest) && mode !== 'debug') { + const cleartextAllowed = mode === 'debug' || (mode === 'e2e' && allowLocalCleartext) + if (!/android:usesCleartextTraffic[^\n]*0x0\b/.test(manifest) && !cleartextAllowed) { fail(`${mode}_cleartext_must_be_false`) } const requiredPermissions = [ @@ -747,11 +749,11 @@ function verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId) { return { debuggable, adMobAppId, versionName, versionCode, minSdk, targetSdk } } -function verifyManifest(aapt, archive, mode, expectedAdMobAppId) { +function verifyManifest(aapt, archive, mode, expectedAdMobAppId, allowLocalCleartext = false) { const apkPath = archive.absolute const badging = runArtifact(aapt, ['dump', 'badging', apkPath], 'aapt_badging', archive) const manifest = runArtifact(aapt, ['dump', 'xmltree', apkPath, 'AndroidManifest.xml'], 'aapt_manifest', archive) - return verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId) + return verifyManifestContracts(badging, manifest, mode, expectedAdMobAppId, allowLocalCleartext) } function verifyArchive(archive, mode) { @@ -1114,6 +1116,35 @@ function runSigningPolicySelfTest() { if (!legacyArgumentRejected) fail('self_test_legacy_certificate_argument_not_rejected') const manifestFixture = createManifestContractSelfTestFixture() + const localOptions = parseArguments([ + '--mode', 'e2e', + '--apk', 'local.apk', + '--allow-local-cleartext', 'true', + ]) + if (localOptions['allow-local-cleartext'] !== 'true') fail('self_test_local_cleartext_option') + const localE2eManifest = manifestFixture.manifest + .replace('android:usesCleartextTraffic=(type 0x12)0x0', 'android:usesCleartextTraffic=(type 0x12)0xffffffff') + .replaceAll('ca-app-pub-1234567890123456~1234567890', TEST_ADMOB_APP_ID) + expectSelfTestFailure( + 'manifest_local_e2e_cleartext_default', + () => verifyManifestContracts(manifestFixture.badging, localE2eManifest, 'e2e', null), + 'e2e_cleartext_must_be_false', + ) + verifyManifestContracts(manifestFixture.badging, localE2eManifest, 'e2e', null, true) + expectSelfTestFailure( + 'manifest_release_cleartext_override', + () => verifyManifestContracts( + manifestFixture.badging, + manifestFixture.manifest.replace( + 'android:usesCleartextTraffic=(type 0x12)0x0', + 'android:usesCleartextTraffic=(type 0x12)0xffffffff', + ), + 'release', + 'ca-app-pub-1234567890123456~1234567890', + true, + ), + 'release_cleartext_must_be_false', + ) const manifestEvidence = verifyManifestContracts( manifestFixture.badging, manifestFixture.manifest, @@ -1434,6 +1465,11 @@ if (cliArguments.length === 1 && cliArguments[0] === '--self-test') { const options = parseArguments(cliArguments) const mode = options.mode if (!VALID_MODES.has(mode)) fail(`unknown_mode_${mode}`) +const localCleartextOption = options['allow-local-cleartext'] +if (localCleartextOption !== undefined && (localCleartextOption !== 'true' || mode !== 'e2e')) { + fail('allow_local_cleartext_only_valid_for_local_e2e') +} +const allowLocalCleartext = localCleartextOption === 'true' if (!options.apk) fail('apk_path_required') const apkPath = resolve(options.apk) if (!existsSync(apkPath)) fail(`apk_missing_${apkPath}`) @@ -1462,6 +1498,7 @@ try { archive, mode, options['expected-admob-app-id'], + allowLocalCleartext, ) if (mode !== 'debug') { const expectedVersionName = options['expected-version-name'] diff --git a/scripts/ci/verify-desktop-installer-smoke.mjs b/scripts/ci/verify-desktop-installer-smoke.mjs index 3d7651c3..ae56b786 100644 --- a/scripts/ci/verify-desktop-installer-smoke.mjs +++ b/scripts/ci/verify-desktop-installer-smoke.mjs @@ -7,10 +7,10 @@ // // 검증 항목: // 1. *-Setup-*.exe 존재, 크기(4KiB ~ 100MiB), DOS MZ + PE\0\0 헤더 정합성 -// 2. *.exe.blockmap 존재 및 gzip 매직 바이트(0x1f 0x8b) +// 2. 차분 모드는 *.exe.blockmap 존재·gzip 매직(0x1f 0x8b), full-only 모드는 부재 확인 // 3. latest.yml 버전 일치, 설치본 파일명 참조 일치, 실제 설치본 SHA-512 재계산 일치 // 4. win-unpacked/*.exe x86_64 PE64(0x8664) 헤더, resources/app-update.yml 정본 피드 URL, -// resources/app.asar Chromium Pickle JSON("files") 헤더 정합성 +// resources/app.asar Chromium Pickle JSON("files") 헤더 정합성·허용된 최상위 항목만 포함 // 5. (--verify-signature 또는 latest.yml.sig 존재 시) Ed25519 공개키 서명 검증 import { createHash, createPublicKey, generateKeyPairSync, sign, verify } from 'node:crypto' @@ -31,6 +31,7 @@ import { tmpdir } from 'node:os' import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' import { gzipSync } from 'node:zlib' +import { supportsWindowsDifferentialDownload } from './lib/desktop-installer-mode.mjs' const root = join(dirname(fileURLToPath(import.meta.url)), '..', '..') const CANONICAL_UPDATE_FEED = @@ -83,7 +84,13 @@ function hasValidAsarFileHeader(asarPath) { if (!readExact(fd, headerBuf, jsonByteLength, 16)) return false const headerText = headerBuf.toString('utf8').replace(/\0+$/g, '') const parsed = JSON.parse(headerText) - return Boolean(parsed && typeof parsed === 'object' && parsed.files && typeof parsed.files === 'object') + return Boolean( + parsed && + typeof parsed === 'object' && + parsed.files && + typeof parsed.files === 'object' && + Object.keys(parsed.files).every((name) => ['out', 'node_modules', 'package.json'].includes(name)) + ) } catch { return false } finally { @@ -99,7 +106,8 @@ export function verifyInstallerReleaseDir({ releaseDir, expectedVersion, publicKeyPem, - requireSignature = false + requireSignature = false, + expectBlockmap = true }) { const errors = [] const fail = (cond, code) => { @@ -127,8 +135,9 @@ export function verifyInstallerReleaseDir({ const blockmapPath = join(releaseDir, `${installerName}.blockmap`) if (!existsSync(blockmapPath)) { - errors.push('blockmap_missing') + if (expectBlockmap) errors.push('blockmap_missing') } else { + fail(expectBlockmap, 'unexpected_blockmap_for_full_only') const blockmapBytes = readFileSync(blockmapPath) fail( blockmapBytes.length >= 10 && blockmapBytes[0] === 0x1f && blockmapBytes[1] === 0x8b, @@ -275,6 +284,17 @@ function runSelfTest() { return dir } + const fullOnlyDir = createValidFixture('full-only') + rmSync(join(fullOnlyDir, `${installerName}.blockmap`)) + const fullOnlyResult = verifyInstallerReleaseDir({ + releaseDir: fullOnlyDir, + expectedVersion: version, + publicKeyPem, + requireSignature: true, + expectBlockmap: false + }) + if (!fullOnlyResult.ok) throw new Error('self_test_full_only_case_failed') + const validDir = createValidFixture('valid') const okResult = verifyInstallerReleaseDir({ releaseDir: validDir, @@ -288,11 +308,11 @@ function runSelfTest() { const largeHeaderDir = createValidFixture('valid-large-asar') const manyFiles = {} for (let i = 0; i < 3000; i += 1) { - manyFiles[`node_modules/pkg-${i}/dist/index.js`] = { size: 128, offset: String(i * 128) } + manyFiles[`pkg-${i}`] = { files: { dist: { files: { 'index.js': { size: 128, offset: String(i * 128) } } } } } } writeFileSync( join(largeHeaderDir, 'win-unpacked', 'resources', 'app.asar'), - buildSyntheticAsar({ files: manyFiles }) + buildSyntheticAsar({ files: { node_modules: { files: manyFiles } } }) ) const largeResult = verifyInstallerReleaseDir({ releaseDir: largeHeaderDir, @@ -357,6 +377,34 @@ function runSelfTest() { ), 'app_update_yml_feed_drift' ) + expectCaseError( + 'nested-release-artifacts', + (dir) => + writeFileSync( + join(dir, 'win-unpacked', 'resources', 'app.asar'), + buildSyntheticAsar({ + files: { + 'package.json': { size: 42, offset: '0' }, + release: { files: { 'old.exe': { size: 1024, offset: '42' } } } + } + }) + ), + 'app_asar_header_invalid' + ) + expectCaseError( + 'unexpected-source-tree', + (dir) => + writeFileSync( + join(dir, 'win-unpacked', 'resources', 'app.asar'), + buildSyntheticAsar({ + files: { + 'package.json': { size: 42, offset: '0' }, + src: { files: { 'index.ts': { size: 128, offset: '42' } } } + } + }) + ), + 'app_asar_header_invalid' + ) expectCaseError( 'bad-asar', (dir) => writeFileSync(join(dir, 'win-unpacked', 'resources', 'app.asar'), Buffer.alloc(128, 0x7f)), @@ -373,7 +421,7 @@ function runSelfTest() { 'manifest_signature_invalid' ) - process.stdout.write('[release:installer:smoke] self-test GREEN (2 valid + 8 negative cases)\n') + process.stdout.write('[release:installer:smoke] self-test GREEN (3 valid + 10 negative cases)\n') } finally { rmSync(sandbox, { recursive: true, force: true }) } @@ -397,6 +445,9 @@ const summary = verifyInstallerReleaseDir({ releaseDir: targetDir, expectedVersion: productVersion, publicKeyPem, - requireSignature: args.includes('--verify-signature') + requireSignature: args.includes('--verify-signature'), + expectBlockmap: supportsWindowsDifferentialDownload( + readFileSync(join(root, 'apps', 'desktop', 'electron-builder.yml'), 'utf8') + ) }) process.stdout.write(`${JSON.stringify(summary, null, 2)}\n`) diff --git a/scripts/ci/verify-mobile-build-config.mjs b/scripts/ci/verify-mobile-build-config.mjs index 91e19602..1e7be9a4 100644 --- a/scripts/ci/verify-mobile-build-config.mjs +++ b/scripts/ci/verify-mobile-build-config.mjs @@ -4,6 +4,10 @@ import { resolve } from 'node:path' const ROOT = resolve(import.meta.dirname, '../..') const BUILD_GRADLE = resolve(ROOT, 'apps/mobile-rn/android/app/build.gradle') const ROOT_BUILD_GRADLE = resolve(ROOT, 'apps/mobile-rn/android/build.gradle') +const ANDROID_MANIFEST = resolve(ROOT, 'apps/mobile-rn/android/app/src/main/AndroidManifest.xml') +const IOS_PROJECT = resolve(ROOT, 'apps/mobile-rn/ios/D3ROVoice.xcodeproj/project.pbxproj') +const IOS_PLIST = resolve(ROOT, 'apps/mobile-rn/ios/D3ROVoice/Info.plist') +const AUTH_REDIRECT = resolve(ROOT, 'apps/mobile-rn/src/lib/auth-redirect.ts') const PRODUCT_VERSION = resolve(ROOT, 'release/product-version.json') const CONFIG_MODULE = resolve( ROOT, @@ -60,16 +64,48 @@ function parseIntegerConstant(source, name) { } async function readSourceContractFiles() { - const [gradle, rootGradle, configModule, productVersionSource] = await Promise.all([ + const [ + gradle, + rootGradle, + configModule, + productVersionSource, + androidManifest, + iosProject, + iosPlist, + authRedirect, + ] = await Promise.all([ readFile(BUILD_GRADLE, 'utf8'), readFile(ROOT_BUILD_GRADLE, 'utf8'), readFile(CONFIG_MODULE, 'utf8'), readFile(PRODUCT_VERSION, 'utf8'), + readFile(ANDROID_MANIFEST, 'utf8'), + readFile(IOS_PROJECT, 'utf8'), + readFile(IOS_PLIST, 'utf8'), + readFile(AUTH_REDIRECT, 'utf8'), ]) - return { gradle, rootGradle, configModule, productVersion: JSON.parse(productVersionSource) } + return { + gradle, + rootGradle, + configModule, + productVersion: JSON.parse(productVersionSource), + androidManifest, + iosProject, + iosPlist, + authRedirect, + } } -function verifySourceContractSources({ gradle, rootGradle, configModule, productVersion }) { +function verifySourceContractSources(sources) { + const { + gradle, + rootGradle, + configModule, + productVersion, + androidManifest, + iosProject, + iosPlist, + authRedirect, + } = sources if (/gradle\.startParameter\.taskNames/.test(gradle)) { fail('variant_gate_must_not_use_requested_task_name_heuristics') } @@ -78,6 +114,36 @@ function verifySourceContractSources({ gradle, rootGradle, configModule, product } const defaultConfigBlock = extractBlock(gradle, /\bdefaultConfig\s*\{/, 'missing_default_config') + requireMatch( + defaultConfigBlock, + /applicationId\s+"com\.d3ro\.voice"/, + 'android_application_id_must_be_canonical', + ) + const iosBundleIds = [...iosProject.matchAll(/PRODUCT_BUNDLE_IDENTIFIER\s*=\s*([^;]+);/g)] + .map(match => match[1].trim()) + if (iosBundleIds.length === 0 || iosBundleIds.some(value => value !== 'com.d3ro.voice')) { + fail('ios_bundle_identifier_must_be_canonical') + } + const iosSchemeBlock = iosPlist.match( + /CFBundleURLSchemes<\/key>\s*([\s\S]*?)<\/array>/, + )?.[1] + if (!iosSchemeBlock) fail('ios_url_schemes_missing') + const iosSchemes = [...iosSchemeBlock.matchAll(/([^<]+)<\/string>/g)].map(match => match[1]) + if (iosSchemes.length !== 1 || iosSchemes[0] !== 'd3ro-voice') { + fail('ios_url_scheme_must_be_canonical') + } + requireMatch( + authRedirect, + /AUTH_REDIRECT_URL\s*=\s*'d3ro-voice:\/\/auth-callback'/, + 'oauth_callback_scheme_must_be_canonical', + ) + for (const host of ['auth-callback', 'accept-invite']) { + requireMatch( + androidManifest, + new RegExp(`android:scheme="d3ro-voice"\\s+android:host="${host}"`), + `android_${host}_deep_link_must_be_canonical`, + ) + } const buildTypesBlock = extractBlock(gradle, /\bbuildTypes\s*\{/, 'missing_build_types') const e2eBlock = extractBlock(buildTypesBlock, /\be2e\s*\{/, 'missing_e2e_build_type') const debugBlock = extractBlock(buildTypesBlock, /\bdebug\s*\{/, 'missing_debug_build_type') @@ -269,10 +335,10 @@ async function verifySourceContract() { verifySourceContractSources(await readSourceContractFiles()) } -function expectSourceContractFailure(sources, mutate, expectedMessage) { +function expectSourceContractFailure(sources, mutate, expectedMessage, field = 'gradle') { let failedAsExpected = false try { - verifySourceContractSources({ ...sources, gradle: mutate(sources.gradle) }) + verifySourceContractSources({ ...sources, [field]: mutate(sources[field]) }) } catch (error) { if (!(error instanceof Error) || !error.message.includes(expectedMessage)) throw error failedAsExpected = true @@ -341,6 +407,35 @@ function verifyVariant(variant, buildConfig) { if (process.argv.includes('--self-test')) { const sources = await readSourceContractFiles() verifySourceContractSources(sources) + expectSourceContractFailure( + sources, + (gradle) => gradle.replace('applicationId "com.d3ro.voice"', 'applicationId "invalid.example"'), + 'android_application_id_must_be_canonical', + ) + expectSourceContractFailure( + sources, + (iosProject) => iosProject.replaceAll('PRODUCT_BUNDLE_IDENTIFIER = com.d3ro.voice;', 'PRODUCT_BUNDLE_IDENTIFIER = invalid.example;'), + 'ios_bundle_identifier_must_be_canonical', + 'iosProject', + ) + expectSourceContractFailure( + sources, + (iosPlist) => iosPlist.replace('d3ro-voice', 'd3ro'), + 'ios_url_scheme_must_be_canonical', + 'iosPlist', + ) + expectSourceContractFailure( + sources, + (authRedirect) => authRedirect.replace('d3ro-voice://auth-callback', 'd3ro://auth-callback'), + 'oauth_callback_scheme_must_be_canonical', + 'authRedirect', + ) + expectSourceContractFailure( + sources, + (androidManifest) => androidManifest.replace('android:scheme="d3ro-voice" android:host="auth-callback"', 'android:scheme="d3ro" android:host="auth-callback"'), + 'android_auth-callback_deep_link_must_be_canonical', + 'androidManifest', + ) expectSourceContractFailure( sources, (gradle) => gradle.replace('candidate.name == "preE2eBuild"', 'candidate.name == "preE2eBuildDisabled"'), diff --git a/scripts/ci/verify-native-abi.mjs b/scripts/ci/verify-native-abi.mjs index 5e090b27..74f7f5d7 100644 --- a/scripts/ci/verify-native-abi.mjs +++ b/scripts/ci/verify-native-abi.mjs @@ -150,7 +150,48 @@ const REQUIRED_ELECTRON_ABI = [ const failures = [] const notes = [] +const packagedTarget = inferPackagedTarget(packagedDir) + +/** + * better-sqlite3 13+ 는 Node-API 프리빌드를 패키지에 싣는다 (prebuilds/-.node). + * Node-API 는 런타임 ABI 에 묶이지 않으므로 "호스트 Node 가 거부해야 통과" 규칙이 뒤집힌다: + * 대상 플랫폼 프리빌드가 있어야 하고, 호스트와 같은 플랫폼이면 실제로 열어 질의까지 해 본다. + * build/Release 바이너리가 함께 있으면 로더가 그것을 먼저 집으므로(옛 ABI 종속 빌드) 실패로 본다. + */ +function verifyNapiSqlite(moduleDir) { + const prebuild = join(moduleDir, 'prebuilds', `${packagedTarget.platform}-${packagedTarget.arch}.node`) + if (!existsSync(prebuild)) return null + if (existsSync(join(moduleDir, 'build', 'Release', 'better_sqlite3.node'))) { + return { failure: 'better-sqlite3: Node-API 프리빌드와 build/Release 바이너리가 함께 있습니다 — 로더가 옛 빌드를 먼저 집습니다.' } + } + if (packagedTarget.platform !== process.platform || packagedTarget.arch !== process.arch) { + return { note: `better-sqlite3: ${packagedTarget.platform}-${packagedTarget.arch} Node-API 프리빌드 존재 확인` } + } + const probe = spawnSync( + process.execPath, + [ + '-e', + `const D=require(${JSON.stringify(moduleDir)});const d=new D(':memory:');` + + `if(d.prepare('select 1 as one').get().one!==1)process.exit(3);d.close()`, + ], + { encoding: 'utf8' }, + ) + if (probe.status !== 0) { + const output = `${probe.stdout ?? ''}${probe.stderr ?? ''}`.trim().split(String.fromCharCode(10)).slice(0, 3).join(' | ') + return { failure: `better-sqlite3: 패키징된 Node-API 모듈이 열리지 않습니다 → ${output}` } + } + return { note: 'better-sqlite3: 패키징된 Node-API 모듈로 DB 를 열고 질의함 (런타임 ABI 무관)' } +} + for (const module of REQUIRED_ELECTRON_ABI) { + if (module.name === 'better-sqlite3') { + const napi = verifyNapiSqlite(join(unpackedRoot, 'better-sqlite3')) + if (napi) { + if (napi.failure) failures.push(napi.failure) + else notes.push(napi.note) + continue + } + } const binaryPath = join(unpackedRoot, module.binary) if (!existsSync(binaryPath)) { failures.push(`${module.name}: 패키징된 네이티브 바이너리가 없습니다 → ${binaryPath}`) @@ -183,8 +224,7 @@ for (const module of REQUIRED_ELECTRON_ABI) { } } -const target = inferPackagedTarget(packagedDir) -const napiResults = requiredNapiResults(unpackedRoot, target) +const napiResults = requiredNapiResults(unpackedRoot, packagedTarget) failures.push(...napiResults.failures) notes.push(...napiResults.notes) diff --git a/scripts/ci/verify-release-metadata.mjs b/scripts/ci/verify-release-metadata.mjs index 5d16c4d2..a356a8ec 100644 --- a/scripts/ci/verify-release-metadata.mjs +++ b/scripts/ci/verify-release-metadata.mjs @@ -2,6 +2,7 @@ import { existsSync, readFileSync } from 'node:fs' import { createHash, createPublicKey } from 'node:crypto' import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' +import { supportsWindowsDifferentialDownload } from './lib/desktop-installer-mode.mjs' const root = join(dirname(fileURLToPath(import.meta.url)), '..', '..') // canonical updater feed: Forgejo Generic Package Registry @@ -186,6 +187,10 @@ function validate(surfaces) { 'update_policy_staging_invalid', ) fail(typeof policy?.killSwitch === 'boolean', 'update_policy_kill_switch_missing') + fail( + supportsWindowsDifferentialDownload(surfaces.builder) || policy?.fullInstallVersionGap === 0, + 'windows_full_only_policy_mismatch', + ) fail( surfaces.updatePolicySource.includes('decideUpdate') && surfaces.updatePolicySource.includes('fullInstallVersionGap') && @@ -430,6 +435,13 @@ if (process.argv.includes('--self-test')) { }, 'forgejo_portable_unsupported_upload_artifact', ) + expectRejected( + surfaces, + (candidate) => { + candidate.updatePolicy.fullInstallVersionGap = 3 + }, + 'windows_full_only_policy_mismatch', + ) let missingDesktopKeyRejected = false try { loadSurfaces((path) => { @@ -445,7 +457,7 @@ if (process.argv.includes('--self-test')) { if (!missingDesktopKeyRejected) { throw new Error('release_metadata_self_test_failed:desktop_license_public_key_missing') } - result.negativeCases = 18 + result.negativeCases = 19 } process.stdout.write(`${JSON.stringify(result, null, 2)}\n`) diff --git a/scripts/deploy-nas.ps1 b/scripts/deploy-nas.ps1 index 9382ee08..d0ccc338 100644 --- a/scripts/deploy-nas.ps1 +++ b/scripts/deploy-nas.ps1 @@ -9,7 +9,10 @@ param ( [int]$NasSshPort = 0, [string]$NasPath = "", [int]$Port = 0, + [ValidateSet("api", "admin", "web")] + [string[]]$Services = @("api", "admin", "web"), [switch]$SkipBuild = $false, + [switch]$BuildOnly = $false, [switch]$DeploySsh = $false ) @@ -58,56 +61,71 @@ if (-not (Test-Path $nasPkgDir)) { # 2. Build Docker Image if (-not $SkipBuild) { - Write-Host "`n[1/4] Building D3RO Voice API Image..." -ForegroundColor Yellow - docker build -t d3ro-voice-api:latest ./apps/api-server - if ($LASTEXITCODE -ne 0) { - Write-Error "API Docker image build failed!" - exit 1 + if ($Services -contains "api") { + Write-Host "`n[1/4] Building D3RO Voice API Image..." -ForegroundColor Yellow + docker build -t d3ro-voice-api:latest ./apps/api-server + if ($LASTEXITCODE -ne 0) { + Write-Error "API Docker image build failed!" + exit 1 + } + Write-Host " Docker image built: d3ro-voice-api:latest" -ForegroundColor Green } - Write-Host " Docker image built: d3ro-voice-api:latest" -ForegroundColor Green - Write-Host "`n[1.5/4] Building D3RO Voice Next.js Admin CRM Image..." -ForegroundColor Yellow - docker build -t d3ro-voice-admin:latest -f apps/admin/Dockerfile . - if ($LASTEXITCODE -ne 0) { - Write-Error "Admin Docker image build failed!" - exit 1 + if ($Services -contains "admin") { + Write-Host "`n[1.5/4] Building D3RO Voice Next.js Admin CRM Image..." -ForegroundColor Yellow + docker build -t d3ro-voice-admin:latest -f apps/admin/Dockerfile . + if ($LASTEXITCODE -ne 0) { + Write-Error "Admin Docker image build failed!" + exit 1 + } + Write-Host " Docker image built: d3ro-voice-admin:latest" -ForegroundColor Green } - Write-Host " Docker image built: d3ro-voice-admin:latest" -ForegroundColor Green - # Web app (@d3ro/web, served at /app). NEXT_PUBLIC_* values are baked in at build time. - Write-Host "`n[1.6/4] Building D3RO Voice Next.js Web App Image..." -ForegroundColor Yellow - $webBuildArgs = @() - foreach ($name in @("NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY", "NEXT_PUBLIC_PAYPLE_CLIENT_KEY", "NEXT_PUBLIC_VAPID_PUBLIC_KEY")) { - $value = if ($envDict.ContainsKey($name)) { $envDict[$name] } else { [Environment]::GetEnvironmentVariable($name) } - if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY" -and [string]::IsNullOrWhiteSpace($value)) { - $value = if ($envDict.ContainsKey("WEBPUSH_VAPID_PUBLIC_KEY")) { $envDict["WEBPUSH_VAPID_PUBLIC_KEY"] } else { [Environment]::GetEnvironmentVariable("WEBPUSH_VAPID_PUBLIC_KEY") } - } - if ([string]::IsNullOrWhiteSpace($value)) { - if ($name -eq "NEXT_PUBLIC_PAYPLE_CLIENT_KEY") { - Write-Warning "$name is empty: the web app will build with Payple checkout disabled." - continue + if ($Services -contains "web") { + # Web app (@d3ro/web, served at /app). NEXT_PUBLIC_* values are baked in at build time. + Write-Host "`n[1.6/4] Building D3RO Voice Next.js Web App Image..." -ForegroundColor Yellow + $webBuildArgs = @() + foreach ($name in @("NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY", "NEXT_PUBLIC_PAYPLE_CLIENT_KEY", "NEXT_PUBLIC_VAPID_PUBLIC_KEY")) { + $value = if ($envDict.ContainsKey($name)) { $envDict[$name] } else { [Environment]::GetEnvironmentVariable($name) } + if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY" -and [string]::IsNullOrWhiteSpace($value)) { + $value = if ($envDict.ContainsKey("WEBPUSH_VAPID_PUBLIC_KEY")) { $envDict["WEBPUSH_VAPID_PUBLIC_KEY"] } else { [Environment]::GetEnvironmentVariable("WEBPUSH_VAPID_PUBLIC_KEY") } } - if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY") { - Write-Warning "$name is empty: browser notifications will stay unavailable and fail closed." - continue + if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY" -and [string]::IsNullOrWhiteSpace($value)) { + $publicKeyPath = Join-Path $PSScriptRoot "..\release\webpush-vapid-public.key" + if (Test-Path -LiteralPath $publicKeyPath) { $value = (Get-Content -LiteralPath $publicKeyPath -Raw).Trim() } } - throw "$name is required to build the web app image." + if ([string]::IsNullOrWhiteSpace($value)) { + if ($name -eq "NEXT_PUBLIC_PAYPLE_CLIENT_KEY") { + Write-Warning "$name is empty: the web app will build with Payple checkout disabled." + continue + } + if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY") { + Write-Warning "$name is empty: browser notifications will stay unavailable and fail closed." + continue + } + throw "$name is required to build the web app image." + } + if ($value.Contains("`r") -or $value.Contains("`n")) { + throw "$name must be a single-line value." + } + $webBuildArgs += @("--build-arg", "$name=$value") } - if ($value.Contains("`r") -or $value.Contains("`n")) { - throw "$name must be a single-line value." + docker build -t d3ro-voice-web:latest -f apps/web/Dockerfile @webBuildArgs . + if ($LASTEXITCODE -ne 0) { + Write-Error "Web Docker image build failed!" + exit 1 } - $webBuildArgs += @("--build-arg", "$name=$value") + Write-Host " Docker image built: d3ro-voice-web:latest" -ForegroundColor Green } - docker build -t d3ro-voice-web:latest -f apps/web/Dockerfile @webBuildArgs . - if ($LASTEXITCODE -ne 0) { - Write-Error "Web Docker image build failed!" - exit 1 - } - Write-Host " Docker image built: d3ro-voice-web:latest" -ForegroundColor Green } else { Write-Host "`n[1/4] Skipping Docker build (-SkipBuild specified)" -ForegroundColor Gray } +if ($BuildOnly) { + Write-Host "Remote/local Docker image build completed (-BuildOnly)." -ForegroundColor Green + return +} + # 3. Export Docker Image Archives $tarPath = Join-Path $nasPkgDir "d3ro-voice-api.tar" $adminTarPath = Join-Path $nasPkgDir "d3ro-voice-admin.tar" diff --git a/scripts/deploy-nas.sh b/scripts/deploy-nas.sh index 391cda7c..1e9f26a5 100644 --- a/scripts/deploy-nas.sh +++ b/scripts/deploy-nas.sh @@ -81,6 +81,9 @@ if [ -z "${NEXT_PUBLIC_PAYPLE_CLIENT_KEY:-}" ]; then echo -e "${YELLOW}NEXT_PUBLIC_PAYPLE_CLIENT_KEY is empty: Payple checkout will be disabled in the web app.${NC}" fi WEB_VAPID_PUBLIC_KEY="${NEXT_PUBLIC_VAPID_PUBLIC_KEY:-${WEBPUSH_VAPID_PUBLIC_KEY:-}}" +if [ -z "$WEB_VAPID_PUBLIC_KEY" ] && [ -f "$ROOT_DIR/release/webpush-vapid-public.key" ]; then + IFS= read -r WEB_VAPID_PUBLIC_KEY < "$ROOT_DIR/release/webpush-vapid-public.key" +fi if [ -z "$WEB_VAPID_PUBLIC_KEY" ]; then echo -e "${YELLOW}NEXT_PUBLIC_VAPID_PUBLIC_KEY is empty: browser notifications will stay unavailable and fail closed.${NC}" fi diff --git a/server/cloudflare-worker/src/push-drain.test.ts b/server/cloudflare-worker/src/push-drain.test.ts index 5182b38e..895ce329 100644 --- a/server/cloudflare-worker/src/push-drain.test.ts +++ b/server/cloudflare-worker/src/push-drain.test.ts @@ -44,6 +44,7 @@ Deno.test('drain posts to the drain endpoint with the service role bearer', asyn assert(calls[0].url === 'https://example.supabase.co/functions/v1/send-push?mode=drain&limit=20', 'drain url') const headers = calls[0].init.headers as Record assert(headers.Authorization === `Bearer ${env.SUPABASE_SERVICE_ROLE_KEY}`, 'service role bearer') + assert(headers.apikey === env.SUPABASE_SERVICE_ROLE_KEY, 'modern service role apikey') assert(headers['Content-Type'] === 'application/json', 'json content type') assert(calls[0].init.body === '{}', 'empty json body') assert(calls[0].init.method === 'POST', 'post method') diff --git a/server/cloudflare-worker/src/push-drain.ts b/server/cloudflare-worker/src/push-drain.ts index cc70844d..8786fe16 100644 --- a/server/cloudflare-worker/src/push-drain.ts +++ b/server/cloudflare-worker/src/push-drain.ts @@ -56,6 +56,7 @@ export async function drainPushDispatches( method: 'POST', headers: { Authorization: `Bearer ${serviceRoleKey}`, + apikey: serviceRoleKey, 'Content-Type': 'application/json', }, body: '{}', diff --git a/site/package-lock.json b/site/package-lock.json index 5a1cfb77..7b1fbfcc 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -1,12 +1,12 @@ { "name": "d3ro-voice-site", - "version": "1.17.1", + "version": "1.18.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "d3ro-voice-site", - "version": "1.17.1", + "version": "1.18.4", "dependencies": { "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/site/package.json b/site/package.json index 08416d64..c3eef038 100644 --- a/site/package.json +++ b/site/package.json @@ -1,7 +1,7 @@ { "name": "d3ro-voice-site", "private": true, - "version": "1.17.1", + "version": "1.18.4", "type": "module", "scripts": { "dev": "vite --port 5199 --host", diff --git a/site/src/release.ts b/site/src/release.ts index 7ae82213..f769ba23 100644 --- a/site/src/release.ts +++ b/site/src/release.ts @@ -5,10 +5,10 @@ // NAS 배포는 바이너리를 포함하지 않으므로 `/releases/...` 같은 로컬 경로는 // 실제 배포 환경에서 404가 된다. -export const DESKTOP_VERSION = '1.17.1' +export const DESKTOP_VERSION = '1.18.4' /** 릴리스 게시일. `release/product-version.json`의 releaseDate와 같아야 한다. */ -export const DESKTOP_RELEASE_DATE = '2026-11-14' +export const DESKTOP_RELEASE_DATE = '2026-11-20' const FORGEJO_ORIGIN = 'https://git.chanpaca.net' const FORGEJO_OWNER = 'yunchan'