Commit Graph
4 Commits
Author SHA1 Message Date
debpalash 6e2111eb7e fix(train7): follow CLI background tasks and accept every needed licence
- dub upload, dub ingest and dub generate answer a task id at once; the
  CLI now follows /tasks/stream/{task_id} to the end, printing progress to
  stderr, exits non-zero with the backend's error on a failed or cancelled
  task, cancels the task on Ctrl+C, and dub generate --output saves the
  rendered track instead of the task id JSON.
- models install/license accept list and accept every licence the model's
  engine needs (license_dependencies, e.g. OmniVoice's Higgs tokenizer),
  refuse an incomplete list, and record each displayed fingerprint.
2026-11-09 21:12:11 +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 5cce5de3ad fix(train7): address #3828 review findings
- Repair a profile whose VoiceStudio marker lost its PATH lines and an
  empty fish conf.d file instead of reporting the command as available.
- Configure ~/.zshrc for Linux zsh users who have none yet.
- Log only the error code when first-launch terminal setup fails, so the
  log carries no home path.
- Keep bash completion working on macOS's bash 3.2, which joined the
  sliced word list into one argument.
- Authorize the CLI contract test's backend client as loopback, matching
  main's consumer gate.
- Credit the contributor in the changelog fragment; drop unused imports.
2026-11-09 14:28:31 +05:30
mostafa-ismail-2004 4708ae9a51 feat(cli): add the voicestudio terminal command
Add a terminal command that drives the desktop app's local backend.

- The desktop app owns the backend. When no backend answers, the CLI
  starts the installed app in the background (no window); it publishes
  its address in backend.json and quits after 10 idle minutes. Opening
  the app later shows a window in the same process, so a terminal
  session and the GUI never run two backends.
- The backend reports activity (requests, jobs, downloads, installs,
  calls) at /system/activity so idle shutdown never interrupts work, and
  holds a kernel lock on its data directory so a second backend fails
  fast with an actionable message.
- `voicestudio stop` stops a background app; commands that only report
  state never start it, and `status` exits 3 when it is not running.
- Output is readable tables and fields chosen from each result's shape;
  `--json` prints the raw data and piped output is tab-separated.
- Tab completion for bash, zsh, fish and PowerShell
  (`voicestudio completion <shell>`), without building the command tree.
- `voicestudio update` opens the app's updater; the CLI itself makes no
  network requests.
- Settings → General shows the terminal command and can add it to PATH
  on request; shell profiles are only edited with that consent.
2026-11-05 18:18:58 +02:00