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