Commit Graph
406 Commits
Author SHA1 Message Date
Palash Debnath 012eb41e3a ci(python): gate Ruff and ty on the rules the code already passes (#4614)
* ci(python): gate Ruff and ty on the rules the code already passes

Ruff and ty are pinned in the dev group (never installed for users: the
app syncs with --no-dev and Docker installs without groups). CI's first
Python shard and `bun run lint:py` run the same checks.

- Ruff checks runtime-bug rules: syntax, undefined names and exports,
  f-strings without fields, invalid characters, dropped asyncio tasks.
- ty fails on any rule the code passes today; the 23 rules with a backlog
  warn, so new instances of every other rule fail CI.

Fixes what the rules found:
- The setup warmup task was not referenced and could be garbage-collected
  mid-load; it is now held until it finishes.
- A perf-budget test fake called time.sleep without importing time.
- The scam guard's invisible-character class is written as escapes.
- Type-only names (httpx, Callable) are imported under TYPE_CHECKING.

* changelog: add fragment for #4614

* build(python): let lint:py sync the pinned tools before running them
2026-12-03 07:10:37 -08:00
Palash Debnath 13c9acc36a fix(dev): free Windows dev ports and keep dev servers from breaking each other (#4604)
* fix(dev): free Windows dev ports and keep dev servers from breaking each other

- The Windows process check joined its PowerShell lines with "; ", which put
  a ";" straight after "@{" and never parsed, so any leftover listener on a
  dev port made `bun dev` fail. Lines are now joined with newlines; a process
  that exits mid-check counts as gone, and failures quote PowerShell's error.
- The web UI and smoke-test Vite servers shared `bun dev`'s dependency cache,
  so starting one re-optimised the bundles the running app was loading and
  left its window empty. Each now has its own cache directory.

* changelog: add fragment for #4604
2026-12-03 18:12:21 +05:30
Palash Debnath bc6d564cfc fix(dev): spawn the real Bun so npm-installed Bun works on Windows (#4603)
* fix(dev): spawn the real Bun so npm-installed Bun works on Windows

bunCommand() prefers the running Bun, then npm_execpath, then the executable behind a Windows npm shim on PATH. A missing Bun gives an install hint from every script that spawns it, and a test guards against bare bun/bunx spawns. Builds on the report and first fix in #4525.

* Add changelog fragment for the Bun spawn fix
2026-12-02 20:25:13 +00:00
debpalash 6f509359b1 fix(api-activity): register the route with the repo's guard inventories
Recognise require_admin_diagnostics as an authorization gate in the
route-auth dump, expose the request ID through CORS_EXPOSED_HEADERS,
and count the new router in docs/STRUCTURE.md.
2026-12-01 04:40:40 +05:30
Palash Debnath 4aa2cd27b6 Polish desktop setup, settings and studio workspaces (#4527)
* Polish desktop setup, settings and studio workspaces

* Add desktop refresh changelog entry

* Check home creation destinations in the desktop guard

* Align desktop workflow checks with the redesigned controls and restore paired consent choices

* Stabilize native window and titlebar checks during navigation

* Restore a continuous workspace background across desktop chrome

* Verify workspace and settings panel corners in the theme smoke

* Give Support a full-width donation panel and stack sponsor, Pro and contact sections

* Give sponsor marks room and simplify Support actions

* Organize Support contact actions in a responsive grid

* Fix desktop take navigation, drawer visibility and shortcut capture

* Recover desktop setup choices when local settings cannot be read or saved

* Welcome users with the studio cat and credit the open-source community

* Compare exact filesystem identities before claiming an existing terminal command

* Check visible setup controls and model headings and isolate Home credits
2026-11-29 08:57:06 +05:30
Palash Debnath a62229e1fa Fix packaged Linux CLI startup on newer glibc (#4514)
* fix(packaging): clear executable stack flag on bundled Linux CLI runtime

* docs: record Linux CLI packaging fix
2026-11-28 06:17:25 +05:30
Palash Debnath cc031a0b07 feat(electron): simplify voice selection and workspace controls (#4511)
* Polish Electron voice workspaces and theme tokens

* Update UI test fixtures for shared task activity and model previews

* Publish long-form recovery without loading the editor in the shell

* Add VoiceStudio UI changelog entry

* Fix voice picker hit target and renderer smokes

* Address UI workspace review findings

* fix(electron): use public router state for project selection

* fix(electron): refresh in-flight setup plans and preserve project matches

* test(electron): preserve React Query exports in transcription tests

* fix(electron): require a new palette selection after results change

* fix(electron): clear palette selection until explicitly restored
2026-11-27 12:05:07 -08:00
Dery Ferdikaanddebpalash c931a78e43 fix(dub): stream the preview upload to disk instead of buffering it (#4491)
* fix(dub): stream the preview upload to disk instead of buffering it

await video.read() held the entire upload in memory, so one long preview could get the backend killed. Copy the spooled upload to disk in 1 MiB chunks instead: no size cap, so long videos still work, and the manifest check now runs on the written file through the shared is_manifest_file helper.

* chore(changelog): read fragments without a byte-order mark

The #4491 fragment was saved with a BOM, which strip() keeps, so it would have
been folded into CHANGELOG.md. Fragments are now read as utf-8-sig, and the BOM
is dropped from this one.

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-26 14:57:43 -08:00
Dery Ferdikaanddebpalash 71befeaaa9 fix(uninstall): refuse to delete the home directory or a parent of it (#4436)
* fix(uninstall): refuse to delete the home directory or a parent of it

OMNIVOICE_DATA_DIR and the cache overrides are honoured verbatim, so -Yes/--yes removed whatever folder they named - including \C:\Users\deryf itself. Both scripts now check each deletion target first and skip the home directory, any parent of it, and a filesystem root.

* fix(uninstall): refuse an alias of the filesystem root (#4436)

"/usr/.." resolves to "/", whose parent pattern "//*" matched nothing,
so the guard let rm -rf receive it. Regression cases shadow rm and du on
PATH, so a regressed guard still deletes nothing.

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-25 13:30:58 +05:30
Palash Debnath 23fb389892 feat(dub): download the dubbing demo videos on demand (#4326)
* feat(dub): download the dubbing demo videos on demand

* docs: changelog fragment for on-demand dub demo videos

* fix(dub): ignore a stale initial status answer once Download starts

* fix(dub): CI fixes for the demo card (docstring marker, structure counts, fake backend status route)

* fix(dub): harden demo download (Windows paths, error detail, proxy errors, poll races)

* fix(dub): poll demo download status one request at a time
2026-11-22 04:13:30 +05:30
debpalash 3f34f7fcaa ci(actions): install PyYAML for the pin check; peel nested tags; failed lookups are errors
A transient GitHub failure no longer reads as an absent tag, so it cannot fall
through to branch resolution and pass an unchecked pin.
2026-11-20 15:09:15 +05:30
DeryFerd 5a6ec4b5a4 ci(actions): verify pinned action SHAs against the versions they name
test_each_pin_names_the_version_it_holds matches the version comment with a
regex and never resolves it, so a pin swapped for a well-formed SHA of a
different commit passes every check in the file. The label is documentation,
not a check.

Add scripts/verify_action_pins.py, which resolves each distinct action/label
pair (30 of them, 258 references) through the GitHub API and compares the tag's
commit with the pinned SHA. Subpath references resolve against their repository
(actions/cache/restore -> actions/cache), annotated tags are dereferenced, and
a channel label such as dtolnay/rust-toolchain's `stable` is reported rather
than compared, because the pin deliberately freezes a moving branch.

PR CI stays hermetic: the pytest entry point skips unless
VOICESTUDIO_VERIFY_ACTION_PINS=1, and .github/workflows/action-pin-verify.yml
runs the script weekly with a token plus workflow_dispatch, so the check is
executed rather than merely available.

Verified with a token: 250 references verified, 0 mismatched, 0 unresolved.
Swapping one checkout SHA in ci.yml reports `v7.0.1 is 3d3c42e5...ba90b1` and
exits 1.
2026-11-20 15:00:14 +07:00
Palash Debnath 409c893449 fix(setup): ship wheels for source-only deps so setup never compiles (#4253) (#4268)
* fix(setup): ship wheels for source-only deps so first-run setup never compiles (#4253)

* docs(changelog): add fragment for #4268

* fix(setup): make vendored wheels verifiable and shipped by every consumer (#4253)

* chore(vendor): ship the ANTLR BSD notice with the vendored runtime wheel

BSD-3 requires the copyright notice to accompany binary redistribution; the antlr4-python3-runtime sdist ships none, so keep the project notice beside the wheel and package it.

* test(install): accept vendored wheel paths in the frozen export

uv export emits the vendored wheels (#4253) as ./vendor/wheels/*.whl paths, which packaging.Requirement rejects.

* test(lock): check per-target wheel tags and extras; ship the ANTLR notice in Nix

The wheel-only guard now follows extra-activated dependencies and requires a wheel whose tags match each tested platform and Python, not just any wheel. sphn 0.2.1 has no Linux ARM64 wheel upstream and is allowlisted for that source-only target. The Nix output now installs the ANTLR licence beside the vendored wheel.

* ci(dagger): copy the vendored wheels before the dependency sync

[tool.uv.sources] points docopt, antlr4-python3-runtime and dora-search at vendor/wheels (#4253); the manifest-only layer copied pyproject.toml and uv.lock without them, so dagger python-tests and check could not install.

* ci(install): run the install smoke when the vendored wheels change

The installer ships vendor/wheels (#4253), so tests/test_install_smoke_workflow.py requires it among the install-smoke triggers.
2026-11-20 11:39:13 +05:30
debpalash 89b77c72d9 Merge #4236: fix(auth): include the telephony gateway in the route census 2026-11-20 03:11:33 +05:30
debpalash 5945bec62f Merge #4234: test(cli): run the launcher-migration smoke that had no caller 2026-11-20 03:11:33 +05:30
DeryFerd 734e1038a6 fix(windows-rocm): read the interpreter pin from the recipe
scripts/windows-rocm-recipe.json is the reviewed record of the interpreter the
Windows ROCm wheels and HIP runtime were tested against. scripts/setup-api.mjs
spelled the uv request out (cpython-3.12-windows-x86_64) and repeated 3.12 in its
x64 error, and the desktop readiness constant spells it out again, so a recipe
bump would leave both asking for an interpreter the recipe no longer pins.

Add a shared helper that turns the recipe into the uv request and the displayed
version, use it in the setup script, and add a test that runs the helper through
node against the shipped recipe and compares it with the desktop constant.

tests/test_windows_rocm_recipe_pin.py runs 3 passed; reverting the setup script
makes it fail with "the ROCm branch retypes the interpreter version instead of
reading the recipe".
2026-11-17 19:30:56 +07:00
DeryFerd f48753cec4 test(cli): run the launcher-migration smoke that had no caller
scripts/cli_install_smoke.py installs the bundled command with real uv in
temporary tool and config directories, replaces an existing desktop wrapper and
checks the wrapper's environment survives. Nothing referenced it, so the only
check of the launcher-migration path the installer ships could rot unnoticed.

Run it on the macOS and Linux legs of the install smoke, which already has uv,
and make the Windows branch a skip with a reason instead of a SystemExit. Add
tests/test_cli_install_smoke.py so the wiring cannot disappear again.

2 passed; removing the workflow step fails the guard with "no install-smoke step
runs scripts/cli_install_smoke.py". The end-to-end run happens on the POSIX CI
legs, since this host cannot run a #!/bin/sh wrapper.
2026-11-17 19:29:13 +07:00
DeryFerd ab3d6d6941 fix(auth): include the telephony gateway in the route census
scripts/dump_route_auth.py walked main.app only. The telephony gateway builds a
second FastAPI app for its own loopback listener and serves three routes there:
the Twilio voice webhook, its status callback and the media-stream WebSocket.
None appeared in the census, so the guard that every mutating route carries an
authorization dependency or a written allowlist decision never saw them.

Walk every route-serving app, tag each record with its app, list the covered apps
in the output, and allowlist the gateway's three routes with the decision each
makes (X-Twilio-Signature in-body, or the single-use per-call stream token). Add
a guard so a third app cannot serve routes outside the census.

tests/test_route_authorization_policy.py runs 16 passed; reverting the census
makes the new guard fail with KeyError: 'apps'.
2026-11-17 14:40:38 +07:00
debpalash 58be6e8f42 Merge remote-tracking branch 'origin/main' into train/hardening-2026-11-17 2026-11-17 02:38:25 +05:30
debpalash ffad362e03 Merge #4185: test(docs): run the feature-inventory drift check on pull requests 2026-11-17 00:37:07 +05:30
debpalash c966e387f6 Merge remote-tracking branch 'origin/main' into pr4181 2026-11-16 22:20:47 +05:30
debpalash 1acc4adc77 test(docs): enforce relevant pull-request workflow boundaries 2026-11-16 12:55:12 +05:30
debpalash 6cc7ad64ea Merge remote-tracking branch 'origin/pr-4172-current' into maintainer/pr4172-release-cleanup 2026-11-16 07:50:38 +05:30
DeryFerd 49360d10f7 fix(release): never let the credits block abort a release
contributors_section split the gh api --jq answer and indexed latest[1], so an empty answer (no published stable release yet) or a null published_at raised IndexError. The caller guards credits with except (CalledProcessError, OSError) precisely so they cannot block a release, so the IndexError escaped that guard and aborted preparation of the release notes.

Parse the answer defensively: without a usable previous release, warn on stderr and skip the block. Widen the caller guard to any exception with the same warning, so a future credits bug cannot block a release either - the omission stays visible in the log.

Verified: tests/test_release_contributors.py gains a parametrized test (empty, newline, tag-only, null-date answers) that fails on main with IndexError at prepare_electron_release.py:69 and passes with the change (15 passed).
2026-11-16 01:40:01 +07:00
debpalash 7cb6e38708 feat(diagnostics): generate private app intake build configuration 2026-11-15 18:11:48 +05:30
salemalkadadi-debug 0b614de8fb chore(release): drop stale Tauri-era asset cleanup helper
The helper only built Tauri-style names (VoiceStudio_<version>_x64-setup.exe, _aarch64.dmg, _amd64.AppImage/_deb) for the four Tauri target triples, so it matched none of the Electron assets the release workflow publishes and silently cleared nothing. No workflow, script or test invoked it, and retries are already covered by 'gh release upload --clobber' plus check_electron_release_assets.py. AGENTS.md forbids restoring Tauri release paths. Also drops its CODEOWNERS entry.
2026-11-15 15:42:51 +04:00
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