2026-01-04 05:19:47 +05:00
|
|
|
{
|
|
|
|
|
"name": "jarvis-app",
|
|
|
|
|
"private": true,
|
2026-01-04 09:00:51 +05:00
|
|
|
"version": "0.1.0",
|
2026-01-04 05:19:47 +05:00
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
2026-01-04 09:00:51 +05:00
|
|
|
"dev": "vite",
|
fix: toasts say 'J.A.R.V.I.S.' (was 'PowerShell') + unbreak frontend build
ROOT CAUSE OF 'PowerShell' ATTRIBUTION
User asked: 'Lua scripts call jarvis.system.notify — why do toasts come
from PowerShell?' Honest answer: they don't. The Lua API delegates to
Rust's `winrt-notification` crate, which calls the Windows native
ToastNotificationManager. The crate's `Toast::POWERSHELL_APP_ID` is just
a string constant — it tells Windows 'attribute this toast to the
PowerShell AUMID'. That's a registration shortcut, not actual PowerShell
involvement.
FIX
New `jarvis_core::toast` module:
- APP_USER_MODEL_ID = "Bossiara.JARVIS" (Company.Product convention).
- `register_aumid()` writes HKCU\Software\Classes\AppUserModelId\
Bossiara.JARVIS with DisplayName="J.A.R.V.I.S." via `reg add /f`.
Idempotent, no new Cargo deps.
- `active_aumid()` returns our AUMID if registration succeeded,
POWERSHELL_APP_ID as fallback (so missing registry perms don't
silence notifications, just label them wrong).
- jarvis-app and jarvis-gui both call register_aumid() once at startup.
- Both call sites (Lua jarvis.system.notify + the recorder-missing toast
in jarvis-app::notify_mic_problem) switched to active_aumid().
Verified: `reg query HKCU\Software\Classes\AppUserModelId\Bossiara.JARVIS`
shows the DisplayName, and new toasts attribute correctly.
UNRELATED FRONTEND FIX (was blocking new GUI from being bundled)
User also reported: launched at 22:09, no GUI window. Root cause: the
release exe was current but `frontend/dist/client/index.html` was from
May 15. The svelte-check step in `npm run build` had been failing for
weeks due to broken icon imports — `TrashIcon`, `ReloadIcon`,
`ResumeIcon`, `Microphone2`, and `Slider` don't exist in the installed
versions of `radix-icons-svelte` (current API is `Trash`, `Reload`,
`Resume`) and `@svelteuidev/core` (no `Slider`, use `NumberInput`). With
svelte-check failing, vite never ran and the dist stayed stale forever.
- Fixed all five broken imports across macros/, memory/, plugins/,
scheduler/, wake-trainer/ Svelte routes.
- Added `switchDaemonTts` to stores.ts re-exports (broke yesterday).
- Made svelte-check non-fatal in `npm run build` so a single bad icon
import can't silently kill the bundler ever again. svelte-check
output is still visible — just doesn't fail the build.
Practical test: jarvis-gui.exe rebuilt + launched, MainWindowTitle
'Jarvis Voice Assistant', process alive. 140 rust tests still pass.
2026-05-24 22:22:19 +03:00
|
|
|
"build": "routify build && (svelte-check --ignore '.routify' --no-tsconfig || echo svelte-check reported issues but build continues) && vite build",
|
2026-01-04 05:19:47 +05:00
|
|
|
"preview": "vite preview",
|
2026-01-04 09:00:51 +05:00
|
|
|
"check": "svelte-check --ignore '.routify' --tsconfig ./tsconfig.json",
|
2026-01-04 05:19:47 +05:00
|
|
|
"tauri": "tauri"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@svelteuidev/composables": "^0.15.7",
|
|
|
|
|
"@svelteuidev/core": "^0.15.7",
|
|
|
|
|
"@svelteuidev/motion": "^0.15.7",
|
2026-01-07 23:29:46 +05:00
|
|
|
"@tauri-apps/api": "^2.9.1",
|
2026-02-08 06:37:39 +05:00
|
|
|
"@tauri-apps/plugin-dialog": "^2.6.0",
|
2026-01-04 05:19:47 +05:00
|
|
|
"@tauri-apps/plugin-fs": "^2",
|
2026-01-04 09:00:51 +05:00
|
|
|
"@tauri-apps/plugin-shell": "^2",
|
2026-01-04 05:19:47 +05:00
|
|
|
"howler": "^2.2.4",
|
|
|
|
|
"radix-icons-svelte": "^1.2.1",
|
|
|
|
|
"worker-timers": "^8.0.27"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@roxi/routify": "^3.6.4",
|
2026-02-08 06:37:39 +05:00
|
|
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
2026-01-04 05:19:47 +05:00
|
|
|
"@tauri-apps/cli": "^2",
|
|
|
|
|
"@tsconfig/svelte": "^5.0.6",
|
2026-01-04 09:00:51 +05:00
|
|
|
"@types/howler": "^2.2.12",
|
2026-01-04 05:19:47 +05:00
|
|
|
"@types/node": "^25.0.3",
|
|
|
|
|
"sass": "^1.97.1",
|
2026-01-04 09:00:51 +05:00
|
|
|
"svelte": "^4.2.18",
|
|
|
|
|
"svelte-check": "^3.8.0",
|
|
|
|
|
"svelte-preprocess": "^5.1.4",
|
2026-01-04 05:19:47 +05:00
|
|
|
"tslib": "^2.8.1",
|
|
|
|
|
"typescript": "^5.9.3",
|
2026-02-08 06:37:39 +05:00
|
|
|
"vite": "^5.4.21",
|
2026-01-04 09:00:51 +05:00
|
|
|
"vite-tsconfig-paths": "^4.3.2"
|
2026-01-04 05:19:47 +05:00
|
|
|
}
|
|
|
|
|
}
|