dsh-tinyasr 0.0.0-stage → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,154 @@
1
+ # Changelog
2
+
3
+ All notable changes to this plugin. Entries up to 1.11.0 are local pre-release iterations of the
4
+ 1.0 line; the public package starts at 1.2.0.
5
+
6
+ ## 1.4.0 — 6 December 2026
7
+
8
+ - The additional language of the model is selectable in the card again, next to `auto`, `ru` and
9
+ `en`. Descriptions, titles, README and the marketplace entry stay Russian and English only, so the
10
+ feature is available without being advertised.
11
+
12
+ ## 1.3.0 — 5 December 2026
13
+
14
+ - The advertised and selectable language set is Russian and English. Ukrainian is no longer offered
15
+ in the settings card or the standalone settings page, and the provider no longer lists it; support
16
+ for other CIS languages is planned.
17
+ - Titles, bundle descriptions, README, publishing guide, marketplace entry and the plugin index
18
+ describe the plugin as offline Russian and English dictation.
19
+ - The model file is referenced through a neutral name (`tinyasr.tzf.gz`) so configurations do not
20
+ encode the language mix of the model file.
21
+
22
+ ## 1.2.0 — 5 December 2026 (public release)
23
+
24
+ - Recordings survive focus loss: capture-phase listeners on `blur`/`visibilitychange` keep the
25
+ built-in recorder alive while a take is running, so switching windows no longer discards it.
26
+ Escape and the cancel button still cancel, and switching chats still unmounts the recorder.
27
+ - A cleanup failure can no longer sink a take: `transcribe` falls back to the recognized text when
28
+ polishing throws (for example when the selected model provider is not configured).
29
+ - The cleanup model is selectable in the card (provider/model pair, default: the session model).
30
+ - Recording limit 300 s, 16 MiB audio, cleanup up to 3000 output tokens, deadline cap 30 s.
31
+ - Send-as-stop verifies the draft before and after clicking, retries once, and logs every stage.
32
+ - Portable test suite (`npm test`): units, routes with a mocked provider, client allowlist guard and
33
+ a card smoke test. Publishing metadata, GPL-3.0 LICENSE, public README and PUBLISHING guide.
34
+ - `npm pack` swaps `cordis.patch.yml` for the path-free `cordis.patch.example.yml`, so the tarball
35
+ never contains the author's home directory.
36
+ - Fixed after the audit: a missing live-worker binary no longer kills the Host (the spawn `error`
37
+ event had no handler); the settings card no longer re-fetches `/state` on every render (the
38
+ translator was a fresh effect dependency); Send-as-stop never mistakes the Cancel button for Stop;
39
+ a corrupt `glossary.json`/`settings.json` is moved aside instead of being overwritten; `~` in
40
+ configured paths is expanded; the saved `strategy` setting is actually used; the inference timeout
41
+ covers 300 s recordings; the locale descriptions state the optional cleanup request honestly.
42
+
43
+ ## 1.11.0 — 5 December 2026
44
+
45
+ - Recording limit raised from 120 s to 300 s (`api-speech-to-text`: `maxDurationSeconds`, 16 MiB
46
+ audio); the built-in recorder stops exactly at this limit, which was the "self-stop" at 120 s.
47
+ - The cleanup model is selectable: the card stores `polishProvider`/`polishModel` through the
48
+ settings service; the session default (DeepSeek) stays unless a pair is set.
49
+ - Cleanup for long transcripts: up to 3000 output tokens, deadline cap 30 s, rejected replies now
50
+ log their length.
51
+ - Send-as-stop verifies the draft before clicking and after it, retries once, and logs every stage.
52
+
53
+ ## 1.10.0 — 5 December 2026
54
+
55
+ - Reverted to the built-in microphone. The own recorder referenced a `resample` helper that had
56
+ disappeared in an earlier rewrite: every audio block threw `Uncaught ReferenceError`, the page
57
+ died and the Harness window showed an empty white screen. The helper is restored and the own
58
+ microphone is dormant behind `OWN_MIC = false` until it is tested end to end.
59
+ - The built-in voice UI row is composed again; the settings card, the Send-as-stop behaviour and the
60
+ button sizing stay.
61
+
62
+ ## 1.9.0 — 5 December 2026
63
+
64
+ - The microphone no longer writes to the clipboard: a failed insertion opened unrelated windows
65
+ through clipboard tooling (the same window appeared on Cmd+V). The text stays in the plugin and a
66
+ small **Insert** button retries it, first at the current caret.
67
+ - `AudioContext` is created with the device's own rate and resampled to 16 kHz instead of forcing a
68
+ 16 kHz context, which is safer with aggregate/Bluetooth devices.
69
+ - Every microphone stage (`recording`, `denied`, `audio-context-failed`, `insert-ok`,
70
+ `insert-failed`, `error`) and every page error is reported to `client.log`.
71
+
72
+ ## 1.8.0 — 5 December 2026
73
+
74
+ - The plugin owns the microphone button. The built-in voice UI row is no longer composed: its
75
+ recorder cancels on window blur and visibility changes, which showed up as 1 s and 17 s recordings
76
+ that vanished without a transcript.
77
+ - New recorder: records regardless of focus until Stop/Send/Alt+V, caps at 120 s, encodes a canonical
78
+ 16 kHz WAV and posts it to `/api/tinyasr/transcribe` (glossary, cleanup, telemetry included).
79
+ - Send keeps working as Stop-and-send with the new recorder; the button is sized like Send.
80
+
81
+ ## 1.7.0 — 5 December 2026
82
+
83
+ - Cleanup deadline scales with the transcript: `base + 6 ms per character above 300`, capped at 20 s.
84
+ Telemetry showed two real long dictations (925 and 1595 characters) losing the cleanup at the flat
85
+ 6 s timeout; 900 characters now get 9.6 s and 2000 characters 16.2 s.
86
+
87
+ ## 1.6.1 — 5 December 2026
88
+
89
+ - Fixed the overlapping glossary inputs: the card now sets `box-sizing: border-box` for every control,
90
+ so `width: 100%` no longer adds padding and border on top of the column width.
91
+
92
+ ## 1.6.0 — 5 December 2026
93
+
94
+ - Settings card is a responsive four-card grid: engine, language, cleanup and glossary; two columns
95
+ on wide panels, one column below 620 px, equal heights, controls pinned to the card bottom.
96
+ - Glossary modal inputs no longer overlap: grid columns use `minmax(0,1fr)` and every input has
97
+ `min-width: 0`; the add form is a labelled two-column row with a full-width button.
98
+ - The client beacon no longer reports a `live` slot that does not exist.
99
+
100
+ ## 1.5.0 — 5 December 2026
101
+
102
+ - Card layout v3: engine and language side by side in one panel row, then the cleanup block and the
103
+ glossary block; language options are now language sets (`Русский + английский`,
104
+ `Русский + английский`) plus single languages.
105
+ - The built-in recorder's phase changes are reported to the Host (`client.log`), so a dropped
106
+ recording leaves its final phase and message behind.
107
+
108
+ ## 1.4.0 — 5 December 2026
109
+
110
+ - Settings card v2: segmented language control, engine row with a status dot and a check button,
111
+ glossary as a summary line with a **Manage** modal (search, terms grouped by their target spelling,
112
+ collapsible variants, add form). The modal keeps its own scroll, so the card stays short.
113
+ - Composer integration for the built-in voice input: the microphone and stop buttons are sized like
114
+ Send (measured at runtime), and pressing Send while recording stops the recording, waits for the
115
+ transcript and then sends the whole draft. Label-driven (ru/en) and removed by a page reload.
116
+
117
+ ## 1.3.0 — 5 December 2026
118
+
119
+ - The live-button registration in the composer is removed: it replaced the standard microphone and
120
+ its panel never produced text. The Host API under `/api/tinyasr/live/*` stays for a later,
121
+ properly tested entry point; the standard microphone works as before.
122
+ - The settings card is rebuilt on a small stylesheet: status pill, engine block with a secondary
123
+ button, full-width language field, real switch, glossary rows with remove buttons, responsive
124
+ add-form.
125
+
126
+ ## 1.2.0 — 5 December 2026
127
+
128
+ - Live route no longer crashes the Host when its worker dies: every pipe has an error handler and a
129
+ worker exit settles the request (regression test `tinyasr/bench/crash-guard.mjs`).
130
+ - Client plugin declares the `locale` service it reads; previously the client runtime parked it
131
+ before `apply`, so the settings card never appeared.
132
+ - Lifecycle beacon (`loaded` / `applied` / `failed`) and `tinyasr/bench/doctor.mjs` for diagnosing
133
+ the running Host from outside the UI.
134
+ - Standalone settings page at `GET /api/tinyasr/ui`.
135
+
136
+ ## 1.1.0 — 5 December 2026
137
+
138
+ - Settings card in the bundle details: recognition language, DeepSeek cleanup switch and an
139
+ editable term glossary, all applied without a restart through loopback routes under `/api/tinyasr`.
140
+ - Live dictation button and **Alt+V**: streaming partial text, auto-stop after 1.2 s of silence, the
141
+ final transcript goes through the same glossary and cleanup pass, and falls back to the clipboard
142
+ when the draft moved.
143
+ - Resident `tinyasr-serve` worker with a file-mode command, reusing the loaded models across
144
+ recordings (87–98 ms per take instead of 207 ms) and falling back to one process per take.
145
+ - `ru-first` language strategy: `auto` decodes Russian and falls back to English only when the
146
+ Russian transcript is empty or implausibly sparse. Corpus WER fell from 11.6 % to 1.7 %.
147
+ - Glossary of 24 entries, telemetry per dictation (`events.jsonl`, timings only), corpus capture,
148
+ and the `bench/` tools: `replay.mjs`, `wer.mjs`, `live.mjs`, `matrix.mjs`.
149
+ - One stricter retry when the cleanup model explains itself instead of returning text.
150
+
151
+ ## 1.0.0 — 5 December 2026
152
+
153
+ - First version: `tinyasr-local` provider for the shipped voice-input UI, the tinyasr model,
154
+ per-request CLI process, optional DeepSeek cleanup with validation and fallback.