No description
  • TypeScript 90.7%
  • JavaScript 6.5%
  • CSS 2.8%
Find a file
amayakase f0d49590bd Add translator advanced controls UI (T30)
Add a keyboard-accessible accordion in the source editor for translation style, context and inline terminology.

- Expose effective prompt-adapter support (style/context/terminology) via the models bridge as optional `advanced` flags. The qualified T18 model reports all three as unsupported, so the controls render disabled and saved values are retained but not sent.
- Validate context (4,096 UTF-8 bytes), term count (max 64), empty or duplicate sources, and term size (256 bytes) without truncation.
- Carry advanced values into new translation drafts. Source edits now merge with the latest cached workspace draft instead of overwriting saved options with stale values.
- Add tests for validation and for restoring saved values with disabled state.
- Add T30 doc and update the implementation plan status.
- Regenerate tsbuildinfo files.
2026-10-16 02:14:36 +02:00
apps Add translator advanced controls UI (T30) 2026-10-16 02:14:36 +02:00
docs Add translator advanced controls UI (T30) 2026-10-16 02:14:36 +02:00
packages Add translator advanced controls UI (T30) 2026-10-16 02:14:36 +02:00
scripts Add SQLite chat storage migration 2026-10-09 16:26:15 +02:00
.editorconfig Initial scaffold for MioChat monorepo 2026-09-28 18:11:14 +02:00
.gitignore Initial scaffold for MioChat monorepo 2026-09-28 18:11:14 +02:00
.prettierrc.json Initial scaffold for MioChat monorepo 2026-09-28 18:11:14 +02:00
eslint.config.js Initial scaffold for MioChat monorepo 2026-09-28 18:11:14 +02:00
package-lock.json Add offline translation language detection 2026-10-15 22:08:07 +02:00
package.json Add SQLite chat storage migration 2026-10-09 16:26:15 +02:00
PROJECT_CONTEXT.md Remove Worlds feature and related docs 2026-10-09 13:02:34 +02:00
README.md Remove Worlds feature and related docs 2026-10-09 13:02:34 +02:00
tsconfig.base.json Initial scaffold for MioChat monorepo 2026-09-28 18:11:14 +02:00

MioChat

MioChat is a desktop AI workspace scaffold built with Electron, React, Vite, and MUI. The backend is split into an HTTP API and a background-task process, with shared TypeScript contracts.

Workspace

  • apps/desktop — Electron main/preload processes and React renderer
  • apps/api — Fastify HTTP API
  • apps/tasks — background task worker process
  • packages/contracts — shared API and domain contracts
  • packages/task-core — task lifecycle primitives and initial in-memory store
  • PROJECT_CONTEXT.md — long-term product and architecture direction

Requirements

  • Node.js 22+
  • npm 10+

Start development

npm install
npm run dev

The root postinstall downloads Electron's platform runtime. If an interrupted install leaves the Electron package without its executable, rerun npm run postinstall.

The API listens on http://127.0.0.1:4310; the task process exposes a health listener on http://127.0.0.1:4311; Electron launches the Vite renderer.

Tavily is also available, with basic, advanced, fast, and ultra-fast search depth, result limits, freshness, and timeout. Tavily requests general web results without generated answers, images, or raw page content. Brave and Tavily keys are stored separately; existing Brave keys migrate automatically. Language, country, and safe-search controls are hidden for Tavily. See the Tavily search reference.

Settings → Search configures Brave Search or a self-hosted SearXNG instance. Customize result count (1–20), language, Brave country, safe search, freshness, and timeout (1–60 seconds). SearXNG requires JSON output enabled; engine support for filters varies. The manual test saves settings and sends the entered query to the selected provider, which may charge for requests.

The composer’s Search toggle defaults to enabled and remembers your preference. Sending and retrying use the configured model to decide whether web evidence is useful. Casual conversation and stable, familiar facts can skip search; explicit search requests trigger research. The model selects credible results, the main process reads their article text, then the model checks the evidence and answers with Markdown citations. Progress shows Found and Using favicon rows, individual source status, and Storage reuse. Actual provider reasoning remains in its existing collapsible panel.

Settings → Search also controls query and page limits, page timeout, text limits, optional source images, Storage reuse, and the maximum cache lifetime. Images are read from source pages, downloaded as bounded raster files in the main process, archived in Storage, and rendered only when the model references those known URLs in Markdown. Arbitrary model-generated image URLs are not fetched. The model also classifies whether the final answer benefits from substantial reasoning. DeepSeek and OpenRouter receive their documented thinking controls; other providers retain native model defaults because reasoning controls differ between models. Search planning and filtering use non-thinking requests where supported.

Search records in Storage contain result metadata, selected readable text, retrieval dates, an expiry date, and the model’s lifetime explanation. Before calling a search provider, the model can choose directly relevant, unexpired records. Records are scoped to provider preferences. Expired records remain inspectable but cannot be reused; reuse never extends their original expiry. Live-refresh requests instruct the model to bypass stored evidence. Planning, selection, and evidence review consume model tokens and are recorded under Other in Usage; search-provider billing is managed by that provider.

The typed desktop API exposes window.miochat.search.settings(), save(input), and query({ query }). Preferences persist in search-settings.json under Electron userData. Brave and Tavily keys are encrypted separately with Electron safeStorage; only key presence is returned. Requests use trusted-sender IPC, cancellation, and timeouts. The HTTP API process remains the existing task scaffold.

Article extraction uses Mozilla Readability with scripts and remote resource loading disabled. Public-network reads pin validated DNS addresses and validate redirects, rejecting private/reserved networks and oversized downloads. HTML and plain text are supported; JavaScript-only sites, paywalls, unsupported file types, or blocked reads fall back to clearly labeled search snippets. This is a bounded staged research workflow, rather than an unrestricted browser agent.

Provider references: Brave web search, SearXNG search API.

Validation

npm run typecheck
npm test
npm run build
npm run lint
npm run format:check

The initial task store is intentionally in-memory. The contracts and service boundary are prepared for a persistent database and durable queue in a later vertical slice.