Commit Graph
381 Commits
Author SHA1 Message Date
debpalash 7cb6e38708 feat(diagnostics): generate private app intake build configuration 2026-11-15 18:11:48 +05:30
Palash Debnath f32de6d11d fix(release): measure Android APK signing before describing downloads (#4163)
* fix(release): measure Android APK signing before describing downloads

* docs(release): record verified Android signing notes

* fix(release): mark failed rehearsal signature verification as unknown
2026-11-15 12:10:50 +05:30
Palash Debnath afe7c407e8 fix(cla-audit): separate exempt provenance from required signatures (#4164)
* fix(cla-audit): separate exempt provenance from required signatures

* docs(cla-audit): record accurate exemption status
2026-11-15 11:30:32 +05:30
Dery Ferdikaanddebpalash 001470e611 test(api): fail any mutating route that ships without an authorization decision (#4130)
* test(api): fail any mutating route that ships without an authorization decision

The existing policy test only checks the routers and routes someone listed, so a new mutating route with no dependency passed every gate. scripts/dump_route_auth.py reports the authorization callables attached to each route, and the new test requires a dependency or an allowlist entry with a written decision. Every WebSocket route is covered, and only the read-only GET / fallback is excluded from the dump.

* fix(auth-policy): retain root WebSockets and verify documented guards (#4130)

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-14 19:17:31 +05:30
Palash Debnath da0b06a5bb fix(triage): classify current Electron crash-report versions (#4120)
Recognize current Electron App version fields alongside historical Version fields in crash recurrence reports. Match explicit beta versions exactly, preserve numeric preview/base matching, and keep unstamped freshness unknown without a target.

Eight parser/CLI regressions failed before the fix; all 26 focused cases and 50 combined style checks pass. Update script help and triage guidance.

Fixes #4119.
2026-11-14 16:55:11 +05:30
Palash Debnath f7a3a83ef0 fix(installer): keep PowerShell probes profile-free (#4099)
Skip PowerShell startup profiles and interactive prompts during all NSIS process probes. Keep existing process ownership checks, and shorten temporary source checkout paths to avoid MSVC linker path limits.

Add executable profile and source-build regressions, update Windows installation guidance and the Nix dependency hash. All 38 required and supporting checks pass, including Windows/Linux/macOS installation and Nix builds; CodeRabbit and Greptile found no code defects.
2026-11-14 04:09:25 +05:30
debpalash ce37930c0c chore(electron): repoint legacy guard tests and retire the unreachable shared UI (#2603) 2026-11-14 02:38:07 +05:30
debpalash 1b89803e96 chore: remove unused scripts, the Tauri MSI tooling and Turborepo ignore lines (#2603) 2026-11-12 17:23:15 +05:30
debpalash a813a16ac8 release notes: drop an older tag's own download table, keep phone rows when no desktop leg reports 2026-11-12 15:10:02 +05:30
debpalash 60e299ab66 release notes: open with one download table (desktop, phones, signing), then Highlights 2026-11-12 14:46:55 +05:30
Palash Debnath 6a8a746996 Merge pull request #4005 from debpalash/feat/omnivoice-tts-server
feat(gguf): bundle omnivoice.cpp tts-server for resident mode (#3654)
2026-11-12 01:40:22 +05:30
debpalash 2dea9301bd ci(release): report every absent rehearsal leg even when another leg is broken
The absent legs and installers are now found before any check can fail, and
--missing-report is written in a finally block. A leg with an incomplete feed
still fails the step, but the rehearsal's final step lists every leg that built
nothing (review).
2026-11-11 19:46:41 +05:30
debpalash ab252d6be2 ci(release): keep the phone app layout and always list missing rehearsal legs
- Download each phone app into its own folder. A pattern that matches one
  artifact extracts it without the artifact-name folder, which lost the
  surviving app when the other phone leg failed (review).
- The missing-legs step runs after earlier rehearsal failures, and the signing
  notes accept no reports in a rehearsal, so a run where every package leg was
  skipped still lists them. Releases stay strict (review).
2026-11-11 18:10:33 +05:30
debpalash d49f40056c ci(release): harden rehearsal signing checks and verify the legs that built
- Test signing accepts only an intact signature whose chain fails on nothing
  but the untrusted root; HashMismatch, a missing signature or an expired
  certificate fail (review).
- App Store signing steps skip in a rehearsal even when signed_ios is set, so
  they never run without the protected environment (review).
- A rehearsal's release job also runs after failed build legs: it verifies
  what built, lists the missing legs, and fails at the end. Releases still
  need every leg.
2026-11-11 17:57:47 +05:30
debpalash 88c93ab95d ci(release): rehearse the release workflow from any branch without publishing
electron-release.yml gains rehearsal=true: from any branch and without a tag it
builds every desktop package, the omnivoice-tts runtimes and the phone apps,
runs the packaged smoke tests, then the release job's verification
(prepare_electron_release.py --rehearsal against package.json's version, the
updater feed checksum and channel checks, the sunset feeds and signing notes).

It publishes nothing: the exact-tag check stays for releases, a rehearsal
refuses publish/release_tag/allow_unsigned, every publishing step is skipped by
its condition and refuses a rehearsal again in its script, phone builds skip
the protected signing environment, and SignPath runs only on an explicit
signpath_policy=test-signing. Artifacts expire after 3 days.

tests/test_release_rehearsal.py pins the guards; docs/RELEASING.md documents it.
2026-11-11 17:09:55 +05:30
debpalash 6d32e307e3 fix(gguf): install SPIRV-Headers for the Windows Vulkan build
Pinned ggml now requires find_package(SPIRV-Headers CONFIG), which the
LunarG SDK does not provide. Install the commit-checked Khronos release
matching the SDK into a private prefix; read UTF-8 explicitly in the
bundle test.
2026-11-11 13:58:59 +05:30
debpalash 291d9fa7c0 feat(gguf): bundle omnivoice.cpp tts-server so resident mode works in releases
Move the omnivoice.cpp pin (desktop and mobile) to 040c8b3, the commit that adds
the tts-server target and voice registry the resident mode needs. Build, checksum,
upload and package tts-server-<platform> beside omnivoice-tts-<platform> on every
desktop platform, fail the build and packaging when it is missing, and log once
why resident mode fell back to the per-request binary.

Refs #3654
2026-11-11 13:42:07 +05:30
debpalash 36b04d5e6f fix(release): name new contributors first in later betas
A beta's notes span everything since the last stable, so its Contributors list
repeated from beta to beta and new contributors were invisible. A second or
later beta now lists who is new since the previous beta, then the full list.
2026-11-11 04:35:58 +05:30
Palash Debnath e63314cc56 Merge branch 'main' into feat/audiocpp-drama3 2026-11-10 12:45:08 +05:30
debpalash 1991129d1a feat(audiocpp): pin the audio.cpp v0.9.4 runtime (#3129)
Update the managed runtime pin from v0.7.4 to v0.9.4 using the SHA-256
digests GitHub publishes for the release assets. v0.9.3 is the first
release with the fish_drama3 family.

The breeze_tts, dots_tts and sortformer_diar resource layouts are
unchanged since v0.7.4, and the server still accepts the request and
config fields VoiceStudio sends, so installed GGUFs load as they are.
An app-managed v0.7.4 runtime stays usable as a fallback until the user
installs the update, which Settings offers. A failed self-check now says
so and leaves the existing runtime in place. Add an opt-in smoke script
that loads an installed model in the stock release binary.
2026-11-10 06:49:23 +05:30
debpalash 13838353f7 fix: address review findings (#3959)
- glibc guard: fail when objdump cannot inspect an ELF (+ test)
- NSIS uninstall: report runtime/hf_cache directories that could not be removed
- docs: Snapcraft Builds revisions use --ozone-platform=wayland, not the env var
2026-11-10 05:53:43 +05:30
debpalash f3500ffac3 fix(snap): build Linux packages on glibc 2.35 and guard the helper's glibc floor (#3879) 2026-11-10 05:14:32 +05:30
Palash Debnath 9e2ca73aa7 Merge branch 'main' into perf/baselines 2026-11-10 02:41:02 +05:30
Palash Debnath ab2eb3379f Merge branch 'main' into perf/baselines 2026-11-10 00:12:14 +05:30
Palash Debnath 167a834bce Merge branch 'main' into fix/pin-ct2-rocm10 2026-11-09 23:34:14 +05:30
debpalash ae7a69fa9c feat(rocm): pin the in-repo CTranslate2 HIP build for RDNA 2 2026-11-09 23:10:07 +05:30
debpalash 13bb925c9d fix(bench): throwaway HOME for app launches; reload on repeated chunk failure
- app_start.mjs: launch env moves HOME/USERPROFILE/XDG dirs into the
  throwaway profile so a packaged app's terminal-command setup cannot
  touch ~/.local/bin or shell profiles (launch_env.mjs, tested)
- ErrorRecovery: Try Again reloads the renderer for dynamic-import
  failures; resetting the boundary replayed React.lazy's cached rejection
- bench.py idle(): always take one RSS sample and guard the CPU division
  for a zero or tiny --idle-window
2026-11-09 22:30:31 +05:30
Palash Debnath 937e9e854b Merge branch 'main' into perf/baselines 2026-11-09 22:13:49 +05:30
Palash Debnath cfb8283f4e Merge branch 'main' into train/9 2026-11-09 22:11:48 +05:30
debpalash afe81f9b98 fix(nix): GApps launcher env, correct symlink relocation, wider CI scope
- Launcher passes wrapGAppsHook3's arguments (GSettings schemas, GIO
  modules, XDG_DATA_DIRS) like nixpkgs' electron wrapper; checked.
- node deps: relocate absolute symlinks relative to the link's directory
  and fail on any that do not resolve; the runtime prune drops only the
  links to the skipped electron package; new symlinksResolve check.
- nix.yml runs on every change that can reach the build, skipping only
  docs, tests, mobile and changelog fragments (merge queue too).
2026-11-09 21:49:57 +05:30
debpalash 1835be1e93 fix(bench): isolate the Electron launch env; one changelog entry
Addresses review: app_start.mjs passed the caller's OMNIVOICE_*,
VOICESTUDIO_* and proxy variables to Electron, unlike bench.py's backend
isolation, so a developer's settings could redirect the data folder.
The two #3940 fragments are merged into one.
2026-11-09 21:37:59 +05:30
debpalash 67655188e4 fix(bench): keep loopback readiness checks off HTTP(S)_PROXY
Addresses review: with a proxy set and no loopback exception, the
benchmark's readiness checks went through the proxy and waited out the
300 s timeout although the backend was up.
2026-11-09 21:26:21 +05:30
debpalash 731e2bdda2 feat(bench): offline startup, idle and bundle-size benchmark harness (#3924)
scripts/bench/bench.py measures backend spawn-to-ready, startup steps,
idle RSS/CPU and boot import times; bundle.mjs reports renderer chunk
sizes and checks them against bundle-baseline.json; app_start.mjs times
Electron launch to first paint and Home plus idle CPU. Runs are isolated
from user data and network: throwaway data dir and profile, offline HF,
a dead proxy for outbound HTTP, updater off, non-local requests aborted.
2026-11-09 21:18:22 +05:30
eaves dropper 1244757d5e fix(nix): build with vendored AWS-LC and prune the runtime closure
nixpkgs' cargo setup hook exports AWS_LC_SYS_USE_SYSTEM=1 for every
buildRustPackage, but the matching defaultCrateOverrides entry only feeds
the legacy buildRustCrate path. aws-lc-sys 0.45 (via reqwest/rustls) then
panicked because no system AWS-LC was in buildInputs. Set
dontCargoUseSystemLibs so it builds its vendored copy instead.

Stop shipping build-only and renderer-only dependencies:

- Vite/Rolldown emits `//#region` comments containing the absolute
  node_modules store path. Those strings kept the entire node-deps FOD in
  the runtime closure. Strip the path from the built bundles.
- Add scripts/prune-runtime-node-modules.mjs, which walks bun's isolated
  layout from the modules the main process actually loads and copies only
  that closure.
- Ship the pruned tree at resources/node_modules; the renderer is already
  bundled, so app/node_modules is no longer needed.
- Add checks that every runtime specifier resolves and that the bundles no
  longer reference the node-deps derivation.

Packaged node_modules drops from 1.2 GiB to 11 MiB and the closure from
3.4 GiB to 1.6 GiB.
2026-11-09 19:54:08 +05:30
debpalash 248a4b518d Merge remote-tracking branch 'origin/main' into train/7
# Conflicts:
#	electron/src/main/index.ts
2026-11-09 17:54:29 +05:30
debpalash 2534bb9371 fix(setup): heal non-ASCII .pth files in source checkouts (#1783, #3726)
uv's editable install writes the checkout path into
`_editable_impl_omnivoice.pth` as UTF-8, and Python 3.11 decodes `.pth`
files in the ANSI code page. A checkout in a non-ASCII folder on a
non-UTF-8 Windows code page (Thai cp874 here) therefore could not run
`bun run setup:api` or `bun run dev`: uv's interpreter query died in
`init_import_site`. Installed runtimes were already healed; no
source-checkout path called the healer.

The healer moves to `electron/scripts/pth-ascii.mjs` (re-exported by
`src/main/pth-ascii.ts`, with a synchronous twin) so plain-Node scripts
share it. `setup:api` heals `.venv` before every uv call (each sync
rewrites the file), the dev:api supervisor before every launch, and the
app's source-checkout branch before probing the venv. Failures are
tolerated everywhere.

Inspired by #3726 by @Taksin014.
2026-11-09 17:31:58 +05:30
debpalash fd407f8914 fix(train7): put the terminal command on PATH for Bash login shells
Bash login shells read the first of .bash_profile, .bash_login and
.profile, and many .bash_profile files never source .bashrc. The shell
installer and the app now also configure an existing .bash_profile or
.bash_login, idempotently, without creating one that would hide .profile.
2026-11-09 17:00:15 +05:30
debpalash f8340436a6 fix(train7): omit optional CLI bodies and check current startup rules
- The contract exporter now resolves Optional[Model] bodies (anyOf with
  null) and records whether a body is required. `voicestudio dub
  transcript clean` without fields sends no body, so the backend cleans
  the saved transcript instead of rejecting `{}` with a 422.
- The wheel smoke imported a POLICY table the CLI no longer defines; it
  now checks the OFFLINE/OBSERVE startup rules, and a unit test runs that
  check against the source tree so it cannot rot again.
- CLI tests and contract reads use explicit UTF-8.
- Explain the CLI's intentionally empty except clauses (CodeQL).
2026-11-09 15:39:16 +05:30
debpalash dada1d6138 Merge train/7-cli (#3828) into train/7 2026-11-09 14:49:38 +05:30
debpalash 3403434127 fix(train7): approve AMD wheel host; build CTranslate2 ROCm in-repo
Replace the contributor-fork CTranslate2 download with a
workflow_dispatch build (ct2-rocm-windows.yml) from pinned upstream
OpenNMT/CTranslate2 source (78b1e17 + upstream #2142, tree-checked
against the RX 6700 XT validated source), published as a prerelease of
this repository. The recipe points at that release with its pins unset;
an unpinned build is treated as unavailable, so RDNA 2 installs the
locked CPU CTranslate2 like gfx1010 until the hashes are pinned.
2026-11-09 14:33:56 +05:30
debpalash 9a8d4c143d fix(train7): case-insensitive installer paths; Linux rename upgrade path
On a case-insensitive filesystem ~/.local/bin/voicestudio and the shell
installer's ~/.local/bin/VoiceStudio AppImage are one file, so linking the
command replaced the app with a link to itself. The installer and the
app's first-launch link now treat that file as the command, and refuse
rather than overwrite a pip/uv-installed command there. Installer tests
cover both case-sensitive and case-insensitive disks.

Linux rename (voicestudio-electron -> voicestudio): desktop file name and
StartupWMClass stay VoiceStudio (desktopName + syncDesktopName), the deb
package name and updater cache are unchanged, the old package's postrm
drops /usr/bin/voicestudio-electron and its AppArmor profile, and the new
one installs /usr/bin/voicestudio; no stale references remain.
2026-11-09 14:33:32 +05:30
debpalash 3ca4243b97 Merge #3712 into train/7
# Conflicts:
#	CLAUDE.md
#	backend/core/device_caps.py
#	backend/core/windows_rocm/install.py
#	backend/core/windows_rocm/probe.py
#	backend/core/windows_rocm/recipe.py
#	backend/core/windows_rocm/verify.py
#	changelog.d/3712.added.md
#	docs/STRUCTURE.md
#	docs/install/windows-rocm.md
#	scripts/windows-rocm-recipe.json
#	tests/test_dots_tts_accelerator_precision.py
2026-11-09 14:21:56 +05:30
debpalash 9b9db94af7 Merge #3828 into train/7
# Conflicts:
#	electron/src/main/backend-setup.test.ts
#	electron/src/main/index.ts
2026-11-09 14:17:56 +05:30
debpalash 7827911606 Merge #3734 into train/7
# Conflicts:
#	AGENTS.md
#	CLAUDE.md
2026-11-09 14:14:54 +05:30
debpalash f2088b890e Merge remote-tracking branch 'origin/main' into release/v0.5.8-beta.2 2026-11-09 01:10:13 +05:30
velixio 6faba57def Fix the CI failures left by the analytics move: route snapshot, shellcheck error and a tight timing bound 2026-11-09 00:38:53 +05:30
debpalash fbbed95c21 fix(analytics): queue first-run events, label conversions, keep the uninstall ping and API contract in step
Review findings on #3902:
- setup_started/setup_failed are sent while no backend is running; hold up
  to 20 and send them once the backend answers (tested).
- Voice conversions report feature=convert, not clone.
- The uninstall ping falls back to the app runtime's Python when python3 is
  not on PATH, so opted-in users are not silently skipped.
- mobile/contract/openapi.json carries the new /analytics/event route.
- Drop an unused regex; explain the empty except (CodeQL).
2026-11-08 23:42:09 +05:30
debpalash 7a9789eb5f Merge remote-tracking branch 'origin/main' into release/v0.5.8-beta.2 2026-11-08 23:01:51 +05:30
velixio 7b8c9c2712 Merge remote-tracking branch 'origin/main' into feat/supermetry-analytics 2026-11-08 22:46:47 +05:30
velixio 48ce9374e4 Send opt-in analytics to Supermetry instead of PostHog and record the engine used 2026-11-08 22:46:32 +05:30