dsh-tg-bridge 1.34.0 → 1.34.1
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/docs/CHANGELOG.md +1909 -0
- package/docs/COST.md +118 -0
- package/docs/HERMES-PARITY.md +68 -0
- package/docs/MARKETPLACE.md +92 -0
- package/docs/RELEASE-CRITERIA.md +27 -0
- package/docs/ROADMAP.md +50 -0
- package/docs/TELEGRAM-SETUP.md +99 -0
- package/docs/UX-ANALYSIS.md +62 -0
- package/docs/VOICE.md +107 -0
- package/package.json +3 -5
|
@@ -0,0 +1,1909 @@
|
|
|
1
|
+
# CHANGELOG — DSH Telegram bridge
|
|
2
|
+
|
|
3
|
+
## 1.34.1
|
|
4
|
+
|
|
5
|
+
- **The docs are in the package.** `docs/VOICE.md` was written for 1.34.0, linked
|
|
6
|
+
from the README and quoted by the bot's own "voice is not set up" answer — and
|
|
7
|
+
then left out of `files[]`, so every npm install got a dead pointer. Eight other
|
|
8
|
+
pages were missing the same way: the list named five documents by hand and had
|
|
9
|
+
drifted. `files[]` now ships the folder, and `test/package-files.test.mjs` fails
|
|
10
|
+
if a page under `docs/` stops shipping.
|
|
11
|
+
|
|
12
|
+
## 1.34.0
|
|
13
|
+
|
|
14
|
+
- **Speech is a choice, not a vendor.** `voice.provider` picks the backend, and the
|
|
15
|
+
bridge stops assuming the model it happened to install: `script` runs a local
|
|
16
|
+
Python transcriber, `command` runs any program that prints or writes the
|
|
17
|
+
transcript, and `openai` posts to any OpenAI-compatible `/audio/transcriptions`
|
|
18
|
+
endpoint — OpenAI, Groq, or a local server. A `command` engine may answer as
|
|
19
|
+
plain text, as JSON (`{"text": …}` or Vosk's `{"result": […]}`), or into a file
|
|
20
|
+
named by `{out}` in the argument template. The old keys still work: with no
|
|
21
|
+
`provider` the shape is guessed from them, in that order. `docs/VOICE.md` has a
|
|
22
|
+
ready-made block for each. `test/voice-providers.test.mjs` runs a real HTTP
|
|
23
|
+
server and real child processes, because the request body and the three output
|
|
24
|
+
shapes are the whole feature.
|
|
25
|
+
- **A voice note with no backend is no longer silence.** The audio was dropped
|
|
26
|
+
with a log line and nothing in the chat — the person was ignored and had no way
|
|
27
|
+
to learn it was a setting. The bridge now answers once per batch with what is
|
|
28
|
+
missing and the three ways to fill it in, in the topic's language.
|
|
29
|
+
- **Both cards name the model that answered.** The settings card and `/model`
|
|
30
|
+
describe the route a topic is *configured* with; after a fallback that is not
|
|
31
|
+
the route that replied. A successful turn records `{ model, switched }` per
|
|
32
|
+
topic and the card adds `Ответила deepseek-v3.2 (fallback)` — once the primary
|
|
33
|
+
answers again the line goes back to naming it without the caveat.
|
|
34
|
+
`test/answered-model.test.mjs`.
|
|
35
|
+
- **Four ways a string reached outside the directory the bridge owns.** `/app
|
|
36
|
+
restart` killed every `DeepSeek Harness.exe` by image name instead of the pids
|
|
37
|
+
it had just listed; a session id from `/sessions <id>` was joined into a path
|
|
38
|
+
unchecked; `/skills <name>` could be walked out of `skills/` with `../..`; and
|
|
39
|
+
the voice backend accepted a relative interpreter (looked up on `PATH` *and* in
|
|
40
|
+
the working directory) and any `cwd` at all. Each is closed at the point the
|
|
41
|
+
string arrives, `test/guards.test.mjs` pins the first three, and the update
|
|
42
|
+
root, `/soul` rewrite and derived-profile prune already had their containment
|
|
43
|
+
checks — they are named in the same audit and stay.
|
|
44
|
+
|
|
45
|
+
## 1.33.3
|
|
46
|
+
|
|
47
|
+
- **Comments are back to the characters they were written with.** Five dashes in
|
|
48
|
+
`callbacks.mjs` had gone through a cp1251 round trip and shipped as `—`.
|
|
49
|
+
Behaviour never changed — it was a comment — which is exactly why nothing
|
|
50
|
+
caught it: no test reads the files. There is one now. `test/encoding.test.mjs`
|
|
51
|
+
reads every shipped module and fails on the shapes a cp1251 round trip leaves
|
|
52
|
+
behind, so the next edit that mangles text is caught before the release rather
|
|
53
|
+
than by a reader.
|
|
54
|
+
|
|
55
|
+
## 1.33.2
|
|
56
|
+
|
|
57
|
+
- **The tabs of the settings card now change the page.** `commandFor` answered a
|
|
58
|
+
tab press with `{ tab: 'agent' }` and no page, so the press redrew the default
|
|
59
|
+
page — `reply` — whatever tab was tapped. Telegram refused the edit as
|
|
60
|
+
"message is not modified" and the press looked dead: the fourth tab of a card
|
|
61
|
+
that had been "broken" for weeks was one missing field, and the log from 1.33.1
|
|
62
|
+
named it in one line. A tab answer carries its own page now, and the invariant
|
|
63
|
+
is a test: pressing `agent`, `updates` or `health` must produce a message that
|
|
64
|
+
differs from the one on screen.
|
|
65
|
+
- **Pressing the value already in force says so.** The redraw is refused in that
|
|
66
|
+
case, which used to be silence; the toast is `Уже так и стоит` in the presser's
|
|
67
|
+
language.
|
|
68
|
+
|
|
69
|
+
## 1.33.1
|
|
70
|
+
|
|
71
|
+
- **A press always answers.** Three paths could leave a button with no reaction
|
|
72
|
+
and no line in the log: a payload from an older card, a handler that threw
|
|
73
|
+
before answering, and a card that redrew itself into an identical message. All
|
|
74
|
+
three now answer — the stale one with an alert that stays on screen, the failed
|
|
75
|
+
one with `/logs errors` pointed at — and every accepted press is named in the
|
|
76
|
+
log the moment it arrives, so "the menu does nothing" can be told apart from
|
|
77
|
+
"the press never reached the bridge".
|
|
78
|
+
- **Silence has a deadline.** `quietGuard` watches the press and the command that
|
|
79
|
+
follow it: if nothing visible is produced within 45 seconds the guard says so
|
|
80
|
+
once, in the chat, whether the handler is still running or already returned.
|
|
81
|
+
This is the case that had no answer before — not a crash, just a wait with no
|
|
82
|
+
end visible from the phone.
|
|
83
|
+
- **Card calls are fast now.** `tg` allows 60 seconds and three attempts, so a
|
|
84
|
+
single tap on a card could sit on a spinner for three minutes while the flaky
|
|
85
|
+
route retried underneath. `tgFast` gives every press-path call 8 seconds and two
|
|
86
|
+
attempts; the fast path stays fast and the retry still covers the bad route.
|
|
87
|
+
- `handleCardPress` and `boundSetOf` moved from `callbacks.mjs` into
|
|
88
|
+
`settings-press.mjs`, and `/stop`'s inline turn kill now uses the `killTurn` it
|
|
89
|
+
duplicated. The router stays a router, and both files fit the ceiling.
|
|
90
|
+
|
|
91
|
+
## 1.33.0
|
|
92
|
+
|
|
93
|
+
- **A model per topic, and the profile is only the default.** One model for the
|
|
94
|
+
whole install meant the choice that suits an engineering chat slowed down a chat
|
|
95
|
+
for thinking out loud. `/model` now names the scope it changes — `This topic:`
|
|
96
|
+
or `Profile default:` — and a press stores the route in that topic alone, with
|
|
97
|
+
`↩ Follow the profile again` as the way back. The next turn boots a copy of the
|
|
98
|
+
topic's profile with the `agent-default-model` row rewritten; every other key of
|
|
99
|
+
that row survives, so a model switch cannot silently drop `reasoningEffort`, and
|
|
100
|
+
the copy is rebuilt whenever the profile changes. `/model <route> all` writes the
|
|
101
|
+
profile itself and says how many topics keep their own choice; `/model auto`
|
|
102
|
+
deletes the topic's route and reports it when there was none. Commands edit the
|
|
103
|
+
bound profile, never a generated copy, and `/profile` no longer lists those
|
|
104
|
+
copies among the profiles a person made.
|
|
105
|
+
- **The description was rewritten around what the bridge does.** The README opened
|
|
106
|
+
with four lines of scene-setting and then twenty-four bullets of mixed weight;
|
|
107
|
+
it now opens with what a topic is, puts the model-per-topic rule in the first
|
|
108
|
+
bullet, and states the remaining features as claims with their scope attached
|
|
109
|
+
instead of adjectives. The npm description says the same thing in one line.
|
|
110
|
+
- `/help` and the `/menu` panel name the new scope in every language.
|
|
111
|
+
|
|
112
|
+
## 1.32.0
|
|
113
|
+
|
|
114
|
+
- **`/model` is a picker, not a list of names.** The old card printed bare model
|
|
115
|
+
ids, and the same id can be served by several providers — `deepseek-v4.1-flash`
|
|
116
|
+
appeared twice with nothing to tell the rows apart, and `/model
|
|
117
|
+
deepseek-v4.1-flash` quietly kept whichever provider the profile already had.
|
|
118
|
+
A bare `/model` now draws every **route** — provider and model together,
|
|
119
|
+
grouped under the provider, with `✓` on the one in force — and each route is a
|
|
120
|
+
button. A press names the full route, so it cannot mean "the fourth model" if
|
|
121
|
+
the profile changed between drawing and tapping; a route whose name will not
|
|
122
|
+
fit in Telegram's 64-byte payload gets no button at all rather than a wrong one.
|
|
123
|
+
- **`/endpoint` adds a provider from the chat, without a model turn.** Adding one
|
|
124
|
+
is four facts typed once, so it is parsed and written directly:
|
|
125
|
+
`/endpoint add <id> <https://url/v1> <KEY_ENV> [model,model]`, `/endpoint list`,
|
|
126
|
+
`/endpoint rm <id>`. Only the *name* of the key variable is typed — a pasted
|
|
127
|
+
`sk-…` is refused and the profile is not touched. The URL must be https (http
|
|
128
|
+
only for localhost) because a key rides on every request. Re-adding an endpoint
|
|
129
|
+
adds models and never reorders or drops the ones already there, and a new model
|
|
130
|
+
shows up on `/model` as a button immediately.
|
|
131
|
+
- **Working notes have two scopes.** `/reasoning` already followed the topic
|
|
132
|
+
first and the install second, but the install default could only be set by
|
|
133
|
+
editing `config.json`. `/reasoning off all` (or `card`/`chat`) now sets the
|
|
134
|
+
default every other topic reads, while a bare `/reasoning off` still changes
|
|
135
|
+
this topic only. The settings card shows both rows side by side. A topic with
|
|
136
|
+
its own choice keeps it, and the answer says so instead of claiming every topic
|
|
137
|
+
changed.
|
|
138
|
+
- The `/help` models row and the `/menu` panel now name `/endpoint`.
|
|
139
|
+
|
|
140
|
+
## 1.31.1
|
|
141
|
+
|
|
142
|
+
- **`/version` and `/update` can no longer disagree.** They are one card, but
|
|
143
|
+
each asked npm separately, and on a slow runner one `npm view` answered while
|
|
144
|
+
the other timed out — so the same question, asked twice, gave "1.31.0" and
|
|
145
|
+
"offline". The answer is now memoised for a minute. A minute of staleness means
|
|
146
|
+
nothing to a release check; two answers to one question is a bug a person can
|
|
147
|
+
see. It also stops `/update` twice in a row from blocking the bot for 45
|
|
148
|
+
seconds each time.
|
|
149
|
+
|
|
150
|
+
## 1.31.0
|
|
151
|
+
|
|
152
|
+
- **`/diff`: the review loop, from a phone.** A turn that changes files used to end
|
|
153
|
+
with "done" and a `git diff` a person had to open on a desktop. `/diff` parses
|
|
154
|
+
the working tree into files and hunks and draws one card: the file list with
|
|
155
|
+
`+n -m` per file, the hunks that fit, and two buttons per hunk — **explain this
|
|
156
|
+
hunk** (which asks the agent about exactly that patch, not about "the diff") and
|
|
157
|
+
**revert this hunk**. Reverting one hunk is the case that matters: the change was
|
|
158
|
+
right except one piece, and undoing the whole turn to fix one piece is not an
|
|
159
|
+
option. `/diff stat` draws the file list alone, because on a phone that is often
|
|
160
|
+
the whole answer.
|
|
161
|
+
- **A button is a hash of the hunk it was drawn from.** The id under each button is
|
|
162
|
+
a SHA-1 of the path, the hunk header and the hunk body. A press that arrives
|
|
163
|
+
after the file moved on — reverted, edited, committed — matches nothing and is
|
|
164
|
+
refused with "that hunk is not in the diff any more", instead of reverting
|
|
165
|
+
whatever now sits at that line number. This is the whole reason the feature is
|
|
166
|
+
safe to expose as a tap: a stale button cannot act.
|
|
167
|
+
- **A revert is one patch, not a checkout.** `git apply -R --recount` replays the
|
|
168
|
+
single hunk with its own header, so the rest of the file keeps what the turn did.
|
|
169
|
+
The `index` line is dropped — it pins blob hashes that make a single-hunk revert
|
|
170
|
+
fail for a reason nobody can act on — and a hunk that no longer applies changes
|
|
171
|
+
nothing and says why.
|
|
172
|
+
- **The card says what it left out.** A character budget, not a hunk count: one
|
|
173
|
+
lockfile hunk is bigger than twenty hunks of source. Whatever does not fit is
|
|
174
|
+
counted in the text ("…N more hunks", "…N more files"), and the keyboard is capped
|
|
175
|
+
at twelve rows for the same reason — a button that was not drawn is a button
|
|
176
|
+
nobody presses, and a card Telegram refuses is worse than a card that admits it
|
|
177
|
+
is partial.
|
|
178
|
+
- **`/diff` is on the panel and in `/help`.** One row in the Work section, one line
|
|
179
|
+
in the help body, one sentence in `ctrl.help.about.diff`, in `en`, `ru` and `zh`
|
|
180
|
+
— the same day, in all three, as everything else here.
|
|
181
|
+
|
|
182
|
+
## 1.30.2
|
|
183
|
+
|
|
184
|
+
- **1.30.1 was published and immediately superseded.** The first upload left the
|
|
185
|
+
version staged and the retry could not overwrite it, so the same code went out
|
|
186
|
+
again as 1.30.2. The two are identical apart from the version string; 1.30.1 is
|
|
187
|
+
deprecated and points here. Nothing to do if you installed either.
|
|
188
|
+
|
|
189
|
+
- **A version earns its place by answering a turn, and a version that only ever
|
|
190
|
+
throws is replaced by the last one that did.** 1.30.0 shipped a call to a
|
|
191
|
+
function that did not exist. Every import resolved, every file parsed, the
|
|
192
|
+
whole suite was green — and the first real message threw, so the person was
|
|
193
|
+
left on a release that answered nothing. Nothing in the update path can catch
|
|
194
|
+
that: a name that is never defined inside a function body is invisible to a
|
|
195
|
+
static check, and only a turn that runs can prove otherwise. So the install now
|
|
196
|
+
keeps a record per version: it is *proven* once it has answered, *faulted* when
|
|
197
|
+
it throws a code fault, and *unknown* until then. Two code faults on a version
|
|
198
|
+
that has never answered, while a proven version is still on record, put the
|
|
199
|
+
proven one back — from npm, or from the copy the last update saved when the
|
|
200
|
+
registry cannot be reached — announce it in the chat, and ask the supervisor
|
|
201
|
+
for a restart instead of exiting under a half-finished turn. The record is
|
|
202
|
+
narrow on purpose: a 402, a 429, a timeout and "all providers are busy" all
|
|
203
|
+
reach a turn as errors, and none of them is a verdict on the release. Rolling a
|
|
204
|
+
working install back because someone's balance ran out would be a worse bug
|
|
205
|
+
than the one this fixes.
|
|
206
|
+
- **The supervisor catches the failure the bridge cannot report.** A release that
|
|
207
|
+
throws while it loads never runs a turn, so nothing above ever sees it: the
|
|
208
|
+
bridge dies, the minute tick starts it, it dies again, forever. The tick now
|
|
209
|
+
keeps its own evidence — two starts in a row that never became healthy — and
|
|
210
|
+
applies the same rule before it starts the bridge again. It also refuses to
|
|
211
|
+
repeat a restore it just performed, and resets the count the moment a bridge is
|
|
212
|
+
alive, so a laptop that reboots twice is not mistaken for a broken release.
|
|
213
|
+
- **`/update rollback` is the manual way back.** The automatic rule needs two
|
|
214
|
+
faults before it acts, which is right for a machine deciding alone and wrong
|
|
215
|
+
for a person who has already seen one. The command returns to the last proven
|
|
216
|
+
release immediately, and says so when there is nothing to return to.
|
|
217
|
+
- **`/update` says what is proven about the version it is running.** The card
|
|
218
|
+
used to list a version number and leave the reader to guess whether it worked.
|
|
219
|
+
It now says "proven, N turns answered", "faulted, N code faults", or
|
|
220
|
+
"installed, not yet answered", and names the release a rollback would return
|
|
221
|
+
to. An install that has just updated is marked unproven rather than inheriting
|
|
222
|
+
the old version's record — a rollback to nothing is not a rollback.
|
|
223
|
+
- **A 💭 line is no longer cut mid-word.** The thought stream clipped each line at
|
|
224
|
+
140 characters with no ellipsis, so the chat showed sentences that stopped in
|
|
225
|
+
the middle of a word ("…при провале — от", "…откатывается на по") and read as
|
|
226
|
+
broken output rather than as a decision. Lines are now clipped at a word
|
|
227
|
+
boundary with a trailing `…`, at a budget that keeps a real sentence readable,
|
|
228
|
+
and the card and the chat show exactly the same text because both read it from
|
|
229
|
+
one function.
|
|
230
|
+
|
|
231
|
+
## 1.30.0
|
|
232
|
+
|
|
233
|
+
- **A sandbox refusal no longer reads as a breakdown.** The CLI marks three
|
|
234
|
+
different things with a `[sandbox: …]` line in a failed tool result: the policy
|
|
235
|
+
denied a write, an escalation is available, or the sandbox runner itself broke.
|
|
236
|
+
All three arrived in the chat as an ordinary failed turn, and the turn then
|
|
237
|
+
ended with "сбой хода" — a word that sends someone to the logs for a decision
|
|
238
|
+
they made themselves. The refusal is now its own line, after the answer, saying
|
|
239
|
+
which mode refused, that nothing broke, and — for a broken runner — that this is
|
|
240
|
+
a sandbox problem rather than a task one. One button leads to `/permissions`,
|
|
241
|
+
because someone who has just been refused should not have to remember a command
|
|
242
|
+
name. Repeated refusals in one turn are counted once per wall, not per attempt.
|
|
243
|
+
- **A release that cannot load no longer replaces one that works.** `/update`
|
|
244
|
+
copied the fetched files over the running install and then asked for
|
|
245
|
+
`/restart`; if the new code could not load, the restart killed a working bridge
|
|
246
|
+
and started nothing, leaving the person in a terminal on a machine they
|
|
247
|
+
installed a bot to avoid touching. The candidate for 1.29.0 did exactly that: a
|
|
248
|
+
new module imported a name that did not exist, and 557 green tests said nothing
|
|
249
|
+
because none of them loaded the file. The install is now checked before it is
|
|
250
|
+
trusted — every relative import must resolve to a file that exports the name,
|
|
251
|
+
and the entry points must parse — and a failed check puts the previous files
|
|
252
|
+
back and says what is wrong with the release.
|
|
253
|
+
- **An update refuses to write into a filesystem root or the home directory.**
|
|
254
|
+
The target comes from `DSH_BRIDGE_ROOT`, and a directory that merely contains a
|
|
255
|
+
`bridge.mjs` — a checkout, a copy, a nested install — used to pass the only
|
|
256
|
+
check there was. "Does it look like a bridge" is now backed by "is it a place
|
|
257
|
+
where writing the whole package would be a catastrophe".
|
|
258
|
+
- **`/soul` stops deleting the rest of `AGENTS.md`.** The persona lives in the
|
|
259
|
+
person's own global instructions file, and the old code replaced everything
|
|
260
|
+
from the persona heading to the end of the file: a section below it, or a
|
|
261
|
+
second persona heading, was silently lost by a `/soul` call, with no backup.
|
|
262
|
+
Only the persona section is replaced now, the file is copied aside first, and
|
|
263
|
+
whatever followed the section stays where it was.
|
|
264
|
+
- **A recursive profile sweep proves where it is sweeping.** `pruneDerived`
|
|
265
|
+
deleted every `aset-*` directory under `DSH_HOME/profiles`, trusting the name
|
|
266
|
+
pattern and the environment variable. It now refuses a target that resolves
|
|
267
|
+
outside the directory it was given, so a `DSH_HOME` pointing somewhere real
|
|
268
|
+
cannot turn a cleanup into a deletion.
|
|
269
|
+
- **Two tests that would have caught the release fault.** One walks every shipped
|
|
270
|
+
module and asserts each named import exists in the module it comes from; the
|
|
271
|
+
other asserts every relative import points at a file on disk. Both are static,
|
|
272
|
+
because importing the bridge starts a poller.
|
|
273
|
+
|
|
274
|
+
## 1.29.0
|
|
275
|
+
|
|
276
|
+
- **The progress card says how full the context is.** A turn that runs into its
|
|
277
|
+
model's context window dies expensively: the prompt is re-sent, billed, and
|
|
278
|
+
rejected. The card now carries `📊 контекст 812k / 1M (81%)`, built from the
|
|
279
|
+
provider's own `usage` and the window the profile declares. A live card shows
|
|
280
|
+
it only from 75 % — a percentage that is always there is read once and then
|
|
281
|
+
ignored — and the final card always shows it. When either side of the fraction
|
|
282
|
+
is unknown the row is absent, not guessed: a percentage of an unknown
|
|
283
|
+
denominator reads as a measurement and is not one.
|
|
284
|
+
- **`/cost`: what this session has spent.** Input, output and cache-read tokens
|
|
285
|
+
are billed at three different rates, and the old single total could say "how
|
|
286
|
+
big" but never "how much". `/cost` shows the three counts, the total, the
|
|
287
|
+
per-turn average and the rates it used, and names its source: OpenRouter's
|
|
288
|
+
published price for the same model, a market reference rather than the
|
|
289
|
+
provider's invoice. Prices are cached for a week and filled by `/prices`; a
|
|
290
|
+
turn never waits on the network for a number. The final card adds
|
|
291
|
+
`💰 этот ход: $0.0042` when the cache knows the model, and says nothing when
|
|
292
|
+
it does not — an invented invoice is worse than none.
|
|
293
|
+
- **Every "unknown" on the bill is named.** No usage in the log, no catalog on
|
|
294
|
+
disk, no published price for this model, and a rate missing for one of the
|
|
295
|
+
three kinds are four different sentences, and a partial total announces itself
|
|
296
|
+
as a lower bound. The failure this replaces is a confident `$0.00` on a paid
|
|
297
|
+
session.
|
|
298
|
+
|
|
299
|
+
## 1.28.1
|
|
300
|
+
|
|
301
|
+
- **`/profile` no longer throws on a fresh install.** It listed
|
|
302
|
+
`~/.dsh/profiles` without asking whether the directory exists, and on a machine
|
|
303
|
+
where DSH has not written one yet `readdirSync` is ENOENT: the first command a
|
|
304
|
+
new user tries answered with an exception. Found by asking the suite a
|
|
305
|
+
different question — "does every documented command answer?" — instead of "do
|
|
306
|
+
the tests pass?".
|
|
307
|
+
- **Every documented command is now covered in every language.** Seven tests walk
|
|
308
|
+
all 38 commands in en/ru/zh and assert three things a translation can break: the
|
|
309
|
+
command claims its message, the answer is not empty, and no `{placeholder}`
|
|
310
|
+
survives. `/soul`, `/skills`, `/seed`, `/send` and `/crew` had no test at all
|
|
311
|
+
before — reachable, listed in `/help`, and nothing had ever proved they answer.
|
|
312
|
+
## 1.28.0
|
|
313
|
+
|
|
314
|
+
- **A turn starts on macOS and Linux too.** The turn runner spawned the Electron
|
|
315
|
+
app by an absolute Windows path, and that was the only path in the code: on a
|
|
316
|
+
Mac or a Linux box every turn failed with ENOENT on a file that cannot exist
|
|
317
|
+
there, while the README promised three platforms. Which binary runs a turn is
|
|
318
|
+
now one decision in one place (`dsh-launch.mjs`): the app with
|
|
319
|
+
`--expose-internals <cli.js>` where the app is installed, the `dsh` command from
|
|
320
|
+
PATH everywhere else, and `DSH_BIN` / `DSH_CLI_JS` / `DSH_APP_DIR` when the
|
|
321
|
+
answer is neither. The plugin commands had already learned the PATH form; they
|
|
322
|
+
ask the same question now, so there is no second copy of the answer.
|
|
323
|
+
- **App paths are computed per platform.** `LOCALAPPDATA` is empty on macOS and
|
|
324
|
+
Linux, so the app directory used to collapse into the relative
|
|
325
|
+
`Programs/…` — a path that means "somewhere under the current directory".
|
|
326
|
+
Windows installs are unchanged, byte for byte; macOS gets the bundle's
|
|
327
|
+
`Contents/MacOS` and `Contents/Resources` split, Linux gets the usual share
|
|
328
|
+
directory.
|
|
329
|
+
- **`/doctor` answers on every platform.** Its disk row shelled out to
|
|
330
|
+
`(Get-PSDrive C)` and was labelled "Disk C", so on a Mac the row silently
|
|
331
|
+
disappeared — a diagnostic that is quiet on the platform you are debugging is
|
|
332
|
+
worse than none. The reading comes from `statfs` and the label names the disk
|
|
333
|
+
it measured. The report also gained a **Turn command** row: the exact binary a
|
|
334
|
+
turn would start, which is the one fact that explains an ENOENT.
|
|
335
|
+
- **The error message stopped naming a key that does not exist.** "point
|
|
336
|
+
`dshApp` in config.json at it" was never a setting; the sentence now names
|
|
337
|
+
`DSH_BIN` / `DSH_APP_DIR`, which are real.
|
|
338
|
+
- **CI runs on macOS.** The matrix tested Ubuntu and Windows, which is why a
|
|
339
|
+
Windows-only turn runner stayed green for a release.
|
|
340
|
+
- **Tests are platform-neutral.** `/cd` path expectations and the disk-drive
|
|
341
|
+
probe were written against Windows separators, so the same suite failed on
|
|
342
|
+
Linux for reasons that had nothing to do with the code. Both now describe a
|
|
343
|
+
platform instead of assuming one: 520 tests, green on Windows and Linux.
|
|
344
|
+
|
|
345
|
+
## 1.27.0
|
|
346
|
+
|
|
347
|
+
- **A restart no longer leaves other topics guessing.** `/restart confirm` now
|
|
348
|
+
records which turns it is about to kill, and the new process posts one line in
|
|
349
|
+
each of those topics: the turn was stopped, the session is intact, send the
|
|
350
|
+
message again. Before, the card there stayed on ⏳ forever and nothing said why.
|
|
351
|
+
The note itself had been written to the wrong directory since it was introduced
|
|
352
|
+
(`control/` instead of the bridge root), so even the "back online" confirmation
|
|
353
|
+
after a restart was silently lost — that is fixed too.
|
|
354
|
+
- **`/fallback test` measures the wait, not just the verdict.** Each live route
|
|
355
|
+
now reports milliseconds to the first token and the fastest one is named once.
|
|
356
|
+
Two routes that both answer are not equally good, and the head of the chain is
|
|
357
|
+
chosen on that number. A route that did not answer prints no time, so
|
|
358
|
+
`no balance · 120 ms` can never read as "works, just slow". The probe streams
|
|
359
|
+
and stops at the first chunk; a provider that ignores `stream` is still read as
|
|
360
|
+
the plain JSON answer it is.
|
|
361
|
+
- **`/fallback first <provider>/<model>`** puts a route at the head of the chain,
|
|
362
|
+
or moves it there if it is already in the list. `add` appends, which is right
|
|
363
|
+
for a spare and wrong for the route that should answer before the primary:
|
|
364
|
+
moving it up eight times was eight presses and a guess about where the head is.
|
|
365
|
+
- **`/model provider/model` moves the route as well as the model.** Asking for
|
|
366
|
+
the same model on a different provider used to rewrite only the model name and
|
|
367
|
+
silently keep the old host — the one case where "I changed the model" and "the
|
|
368
|
+
answers come from somewhere else now" are different claims. The reply now names
|
|
369
|
+
the route the patch actually carries, and a provider the profile does not
|
|
370
|
+
declare is refused before the file is touched.
|
|
371
|
+
- **A flaky album test is no longer flaky.** Its quiet window was 60 ms against
|
|
372
|
+
10 ms gaps, so a busy machine failed a test about ordering because of the clock.
|
|
373
|
+
- **`/stop` stops looking like a crash.** A turn killed on purpose was reported as
|
|
374
|
+
a failure, twice over: the card said «сбой хода», and the sentence underneath
|
|
375
|
+
read `CLI завершился с кодом {code} без вывода` — with the placeholder still in
|
|
376
|
+
it, because a killed child reports `code === null` and the formatter only fills
|
|
377
|
+
the variables it is given a value for. A deliberate stop is now its own outcome
|
|
378
|
+
(`turn-outcome.mjs`), the card says the turn stopped and the session is intact,
|
|
379
|
+
and an unknown exit code prints as `?` rather than as `{code}`.
|
|
380
|
+
- **`/load`: the machine's own numbers, and a limit that holds a turn.** This
|
|
381
|
+
bridge runs on somebody's desktop, next to whatever else that desktop is for. The
|
|
382
|
+
card shows free space on the disk the topic writes to, free RAM, average CPU
|
|
383
|
+
since the last reading, how many turn slots are busy and how many prompts are
|
|
384
|
+
waiting — the one row Task Manager cannot answer, because it sees Electron
|
|
385
|
+
children and not Telegram topics. `/load on` makes a prompt that arrives while
|
|
386
|
+
the machine is over a limit wait instead of starting: the message is kept, not
|
|
387
|
+
refused, and one press sends it anyway. Limits are `/load limit cpu 80`,
|
|
388
|
+
`limit ram 10`, `limit disk 20`; the guard ships off, so an upgrade never holds
|
|
389
|
+
a turn nobody asked it to hold.
|
|
390
|
+
|
|
391
|
+
## 1.26.1
|
|
392
|
+
|
|
393
|
+
- **The card's buttons work again.** 1.26.0 taught a switch press which page to
|
|
394
|
+
redraw, and the caller read "has a page" as "show me that page": every switch
|
|
395
|
+
redrew an identical card, Telegram refused the no-op edit, and the tap changed
|
|
396
|
+
nothing at all. No error in the chat, no reply — a dead button. The two actions
|
|
397
|
+
are now named apart (`tab` for the view, `command` for the setting), and a test
|
|
398
|
+
fails if a switch ever looks like a tab again.
|
|
399
|
+
- **Tapping the tab you are on is quiet.** Telegram refuses an edit that changes
|
|
400
|
+
nothing; that refusal was logged as a failure and looked like a broken button.
|
|
401
|
+
- **A topic without a name says its id.** The head read "Тема: тема {n}" whenever
|
|
402
|
+
the name was not cached yet — the first turn after a restart always raced the
|
|
403
|
+
cache, and the literal `{n}` looked like a template that forgot to render. It
|
|
404
|
+
now says `Тема: id 337382`, in all three languages.
|
|
405
|
+
|
|
406
|
+
## 1.26.0
|
|
407
|
+
|
|
408
|
+
- **The settings card stays.** A tap used to turn the whole card into one line
|
|
409
|
+
naming the change, which answered "what did I just do" and took away "what can
|
|
410
|
+
I do next": the menu vanished the moment it was used, and the answer to a door
|
|
411
|
+
like `/jobs` landed as a separate message while the line above it claimed the
|
|
412
|
+
press had only been recorded. A press now edits the card in place — same
|
|
413
|
+
message, same buttons — with the new value marked and one `✓ row: value` line
|
|
414
|
+
above the rows. A door's answer arrives under the card, which is where it
|
|
415
|
+
belonged all along.
|
|
416
|
+
- **A way out is a button, not a chore.** The card gained a full-width `✓ Done`
|
|
417
|
+
row that deletes the message. Before, "close it" meant deleting a chat message
|
|
418
|
+
by hand, and a card that cannot be put away is a card people learn to fear.
|
|
419
|
+
- **Only the value in force is marked.** Both the text row and the button now
|
|
420
|
+
carry `●` on the end that is on, and nothing at all on the ends that are not.
|
|
421
|
+
The old `○`/`●` pair marked every option, which said nothing about which one a
|
|
422
|
+
tap had left in place.
|
|
423
|
+
- **`/pin on|off` — the progress card in the pinned slot.** Telegram gives a chat
|
|
424
|
+
one pinned message, so the running card takes it and each turn's card replaces
|
|
425
|
+
the last: the clock, the speed and the steps are one tap away instead of a
|
|
426
|
+
scroll back. Off by default — pinning someone's chat uninvited is not a favour,
|
|
427
|
+
and a group needs the right to pin at all. The pin is silent, a refusal is
|
|
428
|
+
logged rather than shown, and `state.pin` reads `true`/`false` from an older
|
|
429
|
+
file the way the notes switch does.
|
|
430
|
+
- **A failed press says so on the card.** The redraw alone looks exactly like
|
|
431
|
+
success, so an error from the command behind the button is shown as `⚠️` in the
|
|
432
|
+
card's note line and is not repeated underneath it.
|
|
433
|
+
- **Two more doors on the agent tab**: `/cd` (which folder the topic works in) and
|
|
434
|
+
`/fallback` (who answers when a provider refuses), because both were reachable
|
|
435
|
+
only by remembering their names.
|
|
436
|
+
- Dead code out: the `reasoningOf` reader had no callers since the notes switch
|
|
437
|
+
moved to `notes.mjs`; the paths it was threaded through are gone.
|
|
438
|
+
|
|
439
|
+
## 1.25.3
|
|
440
|
+
|
|
441
|
+
- **The decision trail can reach the chat itself.** `/reasoning` had two ends,
|
|
442
|
+
on and off, and "on" meant the last two 💭 lines inside the progress message —
|
|
443
|
+
which a person only sees if they are looking at that one message. It now has
|
|
444
|
+
three: `card` (the default, unchanged), `chat` (every line also arrives as its
|
|
445
|
+
own message, so a twenty-minute turn is read while it runs instead of scrolled
|
|
446
|
+
back to afterwards) and `off`. One switch, one name: a separate `/notify` would
|
|
447
|
+
have been the second name for one job that this surface spent a release
|
|
448
|
+
removing.
|
|
449
|
+
- **The prompt knows which end is on.** In `chat` mode every turn says so, so a
|
|
450
|
+
line is written to stand alone — and says what must never be in one: a token, a
|
|
451
|
+
key, a private path. The line reaches a chat, not a grey card.
|
|
452
|
+
- **A switch mid-turn does not replay the card.** Turning `chat` on while a turn
|
|
453
|
+
runs forwards from the next line written, not the ten already on screen; a turn
|
|
454
|
+
that starts in `chat` forwards from its first line. The forwarder keeps a set of
|
|
455
|
+
what went out, so an edit of the card never repeats a step, and a failed send
|
|
456
|
+
leaves the note in the card where it always lived.
|
|
457
|
+
- **The old value still reads.** `state.json` written by an earlier release holds
|
|
458
|
+
`true`/`false` for this switch; they now mean `card`/`off`, and `/reasoning on`
|
|
459
|
+
is still accepted as the old spelling of the card. A settings file must not need
|
|
460
|
+
editing by hand after an update.
|
|
461
|
+
- The settings card offers the three ends as buttons and marks the current one,
|
|
462
|
+
`/status` names the mode in words, and `test/notes.test.mjs` pins the mode
|
|
463
|
+
migration and the "every line of the turn, not just the two the card shows".
|
|
464
|
+
|
|
465
|
+
## 1.25.2
|
|
466
|
+
|
|
467
|
+
- **A throttled route is no longer called a refused key.** The first live
|
|
468
|
+
`/fallback test` on a free route came back `key refused` while the provider's
|
|
469
|
+
own sentence said "This model is at its provider's per minute limit right
|
|
470
|
+
now" — the probe read the HTTP status before the words, and one router answers
|
|
471
|
+
a rate limit with a 403. That verdict sends a person to re-enter a key that
|
|
472
|
+
works. The words about a limit now win over the status; a bare 401/403 is
|
|
473
|
+
still a refused key, an empty balance still outranks both, and a 5xx with no
|
|
474
|
+
words of its own is `busy` instead of `unknown`.
|
|
475
|
+
- **`/fallback test` asks the routes at once.** Seven routes at a 15-second
|
|
476
|
+
timeout each is nearly two minutes of a command that looks frozen, with the
|
|
477
|
+
poller waiting behind it. One round of requests answers in the time of the
|
|
478
|
+
slowest route — and a rate limit on the router is itself a verdict, so a burst
|
|
479
|
+
of probes was the wrong way to learn about throttling.
|
|
480
|
+
- `test/probe-verdict.test.mjs` pins the four answers that used to be confused:
|
|
481
|
+
a limit behind a 403, a bare 403, an empty balance behind a 429, a 5xx with
|
|
482
|
+
no body.
|
|
483
|
+
|
|
484
|
+
## 1.25.1
|
|
485
|
+
|
|
486
|
+
- **The failover chain fires on a refusal.** A turn that ended with
|
|
487
|
+
`dsh: INVALID_REQUEST: wikivibe API error (400)` stopped the walk on its first
|
|
488
|
+
iteration while six configured routes sat unused, and the log said nothing —
|
|
489
|
+
the trigger list knew 5xx, quota words, `AUTH` and an empty answer, and a 400
|
|
490
|
+
from a vendor's own validator matched none of them. Failures are now grouped
|
|
491
|
+
into named families (`refused`, `quota`, `auth`, `busy`, `rate`, `transport`,
|
|
492
|
+
`model`, `empty`), every family starts the chain, and every decision writes one
|
|
493
|
+
`fallback …` line, so "no route was left" can no longer look like "no route was
|
|
494
|
+
ever tried". The negative list stays explicit: the turn time cap, `/stop`, a
|
|
495
|
+
session or directory error and a missing `dsh` are not a route's fault and are
|
|
496
|
+
not replayed on six vendors.
|
|
497
|
+
- **A refusal costs one route, not the whole chain.** A 400 is replayed in full —
|
|
498
|
+
the same long conversation, the same tools — so one other vendor answers the
|
|
499
|
+
only useful question, "is it this route or this prompt". If the second refuses
|
|
500
|
+
identically the request is what is wrong, and the reply now says so and points
|
|
501
|
+
at `/new` instead of suggesting a top-up. Busy, quota, rate and transport
|
|
502
|
+
failures keep walking the whole chain: those are per-route facts.
|
|
503
|
+
- **`/fallback`: the chain as a card.** The list was invisible from the chat, so
|
|
504
|
+
the honest answer to "why did it not switch" was often "nothing was configured
|
|
505
|
+
to switch to". The card shows the route this topic answers on, the numbered
|
|
506
|
+
chain, how many routes a turn would really try (a switched-off route and one
|
|
507
|
+
whose overlay file is missing are counted separately, not silently), what
|
|
508
|
+
starts a switch and what does not. Every line has a button: `● n` switches a
|
|
509
|
+
route off or on, `↑ n` / `↓ n` move it, `test` asks each route with a 1-token
|
|
510
|
+
request, `add <provider>/<model>` writes the overlay and appends the route,
|
|
511
|
+
`remove` asks for a second named press. A press and a typed line run the same
|
|
512
|
+
verb, so the two cannot disagree.
|
|
513
|
+
- **`/fallback test` is honest about what it proves.** A probe shows the key and
|
|
514
|
+
the channel are alive; it does not show the provider accepts this conversation,
|
|
515
|
+
and the card says exactly that — a route that answers `ping` can still refuse a
|
|
516
|
+
long prompt with a 400.
|
|
517
|
+
- **`fallbackEnabled`** switches the whole chain off without editing the list,
|
|
518
|
+
and `runFallbackChain` reads it before sending anything, so a person who turned
|
|
519
|
+
the chain off never sees a "running on another model" line. `off: true` does the
|
|
520
|
+
same for one entry; both keep the route in `config.json` with its overlay.
|
|
521
|
+
- **`/report` prints the chain the card shows**, from the same renderer: a report
|
|
522
|
+
that counted routes a turn would skip is the report that hides the bug it was
|
|
523
|
+
opened for.
|
|
524
|
+
- `ctrl.fallback.*` moved into its own locale table (`i18n/<lang>/fallback.mjs`)
|
|
525
|
+
when `ctrl.mjs` reached the 500-line ceiling; `/help` documents the command and
|
|
526
|
+
the panel carries it under "Talk".
|
|
527
|
+
|
|
528
|
+
## 1.25.0
|
|
529
|
+
|
|
530
|
+
- **A bound topic no longer writes the whole home directory.** `/cd my-app` used
|
|
531
|
+
to change only the turn's working directory: the sandbox still pointed at the
|
|
532
|
+
profile's own root, so a model that wandered into a sibling project was allowed
|
|
533
|
+
to write there. On a permission-enabled profile `/cd` now writes
|
|
534
|
+
`sandbox-policy.workspaceRoot` with the same directory, which makes the
|
|
535
|
+
boundary real — measured, not assumed: a write outside the root comes back as
|
|
536
|
+
`[sandbox: file access denied under workspace-write mode]`, and switching the
|
|
537
|
+
turn's own `working-directory` does not move the boundary. `danger-full-access`
|
|
538
|
+
is now an explicit per-topic choice (`/cd <dir> wide`, or `/permissions
|
|
539
|
+
danger-full-access`) instead of the quiet default. A profile with no permission
|
|
540
|
+
table keeps the old behaviour, and `/cd` says which of the two it is doing.
|
|
541
|
+
- **One row is not a setting.** The `sandbox-policy` row alone is ignored when the
|
|
542
|
+
profile also has a permission table: `mode: read-only` next to `defaultPreset:
|
|
543
|
+
danger-full-access` still wrote outside the root. Both rows are now written by
|
|
544
|
+
one function (`permission-rows.mjs`) from one preset, so a file cannot end up
|
|
545
|
+
disagreeing with itself, and `/permissions` reads the *effective* preset rather
|
|
546
|
+
than the table's current value. A preset with `approval: ask` is listed with the
|
|
547
|
+
reason it cannot be used from a chat — a headless turn has no approval channel,
|
|
548
|
+
and picking it used to mean a turn that failed closed.
|
|
549
|
+
- **Per-topic permissions.** A topic bound to an agent set gets that set's preset
|
|
550
|
+
on its own derived profile, so two topics can hold two presets without reading
|
|
551
|
+
each other's row. `/permissions` writes the set when the topic is bound and the
|
|
552
|
+
profile when it is not, and says which. `/settings` shows the topic's effective
|
|
553
|
+
preset, not the install's.
|
|
554
|
+
- **`/cd` survives a real filesystem.** Resolution moved into `control/cd-path.mjs`
|
|
555
|
+
as a pure function: `~`, a drive letter, a UNC path, a POSIX absolute path, a
|
|
556
|
+
bare project name under `projectsDir`, a relative path, `reset` — and the three
|
|
557
|
+
failures a chat actually hits (empty, missing, exists-but-is-a-file) each get
|
|
558
|
+
their own sentence. A bound directory that disappeared is reported as such
|
|
559
|
+
instead of silently falling back to `config.cwd`.
|
|
560
|
+
- **`/report` turns "it broke" into data.** One command collects version, node,
|
|
561
|
+
platform, profile, preset, model, fallback chain, cwd, the turn's tool names,
|
|
562
|
+
the topic's last failure and the last 120 log lines — then removes tokens, bot
|
|
563
|
+
tokens, `Bearer` headers, private keys, home paths, chat ids, machine ids and
|
|
564
|
+
email addresses before writing the file. In a direct chat it arrives as a
|
|
565
|
+
document; in a group the answer is the path only. `test/report.test.mjs` runs
|
|
566
|
+
the repo's own `scan-secrets.mjs` rules over a fixture that looks like a real
|
|
567
|
+
log tail and fails if a single rule matches. `docs/SUPPORT.md` says what to
|
|
568
|
+
send, what never to send, and how to tell the three kinds of silence apart.
|
|
569
|
+
- **The docs say what is true.** README gained the three sandbox modes with what
|
|
570
|
+
each one actually allows, the measured note that the sandbox row alone changes
|
|
571
|
+
nothing, and an attachment table that names the one hidden prerequisite: voice
|
|
572
|
+
needs `faster-whisper` and is off by default.
|
|
573
|
+
|
|
574
|
+
## 1.24.0
|
|
575
|
+
|
|
576
|
+
- **The fallback chain could not cross providers.** `model-probe.mjs` read the
|
|
577
|
+
*first* provider block of the profile and asked that host about every model in
|
|
578
|
+
the chain. With one router that was right; the moment the chain mixed
|
|
579
|
+
companies it became the bug: a 503 from the first router was reported as the
|
|
580
|
+
verdict for a model that lives on a different company's host, and
|
|
581
|
+
`handle-message.mjs` stopped the chain after one probe. The log of a live turn
|
|
582
|
+
says it plainly — `channel down after 2 model(s): probe says ok; not trying
|
|
583
|
+
kimi-k3:free`, then `all fallbacks exhausted … : 3 probe=n/a`, while a working
|
|
584
|
+
provider sat right behind it. `providerFor(id)` now returns the named
|
|
585
|
+
provider's row, `probeModel(model, { provider })` asks that company, and each
|
|
586
|
+
entry is probed on its own route, so a dead pool skips only its own models.
|
|
587
|
+
- **A chain that mixes companies is a documented shape.** Each `fallbackModels`
|
|
588
|
+
entry may carry `provider`, and the switch notice names the route as
|
|
589
|
+
`provider/model`, because the same model id on two routers is two different
|
|
590
|
+
attempts. README explains the overlay file, the ordering rule (different
|
|
591
|
+
companies next to each other, `:free` last) and why one vendor twice in a row
|
|
592
|
+
is one outage rather than two chances.
|
|
593
|
+
- **The walk lives in `fallback.mjs`.** `handle-message.mjs` was at the 500-line
|
|
594
|
+
ceiling and the chain is a decision of its own — which model, on whose route,
|
|
595
|
+
and when to stop asking. Its three regexes and the give-up condition are now
|
|
596
|
+
exported and tested as data (`test/fallback-chain.test.mjs`), including the
|
|
597
|
+
case that used to be silent: a short chain with no verdict must not claim
|
|
598
|
+
"all models are unavailable".
|
|
599
|
+
|
|
600
|
+
## 1.23.0
|
|
601
|
+
|
|
602
|
+
- **Buttons were never sent.** Every card built its keyboard as `{ text, data }`
|
|
603
|
+
— a payload, not a Telegram field. Telegram wants `callback_data` and rejects
|
|
604
|
+
the *entire message* when it sees `data`, and every send wrapped its API call
|
|
605
|
+
in `.catch(() => {})`, so `/menu`, `/settings` and the task card drew nothing
|
|
606
|
+
for four releases and said nothing about it. One conversion now happens at the
|
|
607
|
+
transport edge (`inlineKeyboard`), a button with no payload is dropped instead
|
|
608
|
+
of sinking the message, and a keyboard Telegram refuses is logged and retried
|
|
609
|
+
as text without buttons. Verified against the live API, not only in a test.
|
|
610
|
+
- **One typed command, one answer — across restarts.** `/update confirm` on
|
|
611
|
+
1.22.0 installed the release and then threw on an undefined name. It was never
|
|
612
|
+
acked, so it stayed in the journal; each restart replayed it, it threw again,
|
|
613
|
+
and one command produced "already on 1.22.0" three times. A command that
|
|
614
|
+
throws is now answered in one line and acked, a replayed turn gets exactly one
|
|
615
|
+
retry, and a journal entry older than the replay window is dropped instead of
|
|
616
|
+
being re-run as a fresh turn.
|
|
617
|
+
- **The parallel ceiling is reachable from the chat.** It was a config-file key
|
|
618
|
+
(`maxParallel`, 1–8) nobody could find; a fourth topic simply said "waiting for
|
|
619
|
+
a free slot" with no way to widen it. `/jobs 5` sets it, the `/jobs` card
|
|
620
|
+
carries a row of buttons for 1–8, and both go through one function, so a tap
|
|
621
|
+
cannot store a value the command would refuse. Written to `config.json`; a
|
|
622
|
+
failed write still applies to the running process and says so.
|
|
623
|
+
- **Three refactor casualties that `node --check` cannot see.** `saveState` was
|
|
624
|
+
called but never destructured in `cmd-bridge.mjs` and `cmd-plugin.mjs`, `tg`
|
|
625
|
+
was used but not imported in `steer.mjs`, and `deliverTurn` had been renamed to
|
|
626
|
+
`redeliver` while two call sites kept the old name. A new guard test
|
|
627
|
+
(`test/unresolved-calls.test.mjs`) scans every shipped module for a call to a
|
|
628
|
+
helper it neither declares nor imports.
|
|
629
|
+
|
|
630
|
+
## 1.22.0
|
|
631
|
+
|
|
632
|
+
- **💭 notes actually reach the progress card.** Two files exist for one topic:
|
|
633
|
+
the turn's own (`DSH_TG_THOUGHT`) and the stable per-topic one that `say.mjs`
|
|
634
|
+
writes whenever the tool shell lost the bridge's environment. The card read
|
|
635
|
+
only the first, so the block stayed empty while the file on disk kept growing.
|
|
636
|
+
Both are read now, filtered by the turn's start time, deduplicated, and a
|
|
637
|
+
previous turn's line can no longer surface as this turn's decision.
|
|
638
|
+
- **A turn that waits for a slot says so.** The parallel cap was a hard 3 and a
|
|
639
|
+
fourth topic waited in total silence — not even "queued", which reads exactly
|
|
640
|
+
like a dead bot. The cap is `config.maxParallel` (1–8, default 3) and a waiting
|
|
641
|
+
turn posts one line in its own topic, removed the moment it starts.
|
|
642
|
+
- **The notes instruction is not optional any more.** The per-turn prompt used
|
|
643
|
+
to offer "skip it for one-step work", which turned into skipping it always.
|
|
644
|
+
Now: a 💭 line at each decision point, and a `--note` line for the four things
|
|
645
|
+
a person must not have to ask about — a release, a root cause, a blocker, and
|
|
646
|
+
a turn running longer than a couple of minutes.
|
|
647
|
+
|
|
648
|
+
## 1.21.1
|
|
649
|
+
|
|
650
|
+
- **The task list no longer freezes at 30.** The cap counted finished tasks as
|
|
651
|
+
well as open ones, so once a goal ran long every new task was rejected in
|
|
652
|
+
silence and the checklist stopped matching the work — the agent kept working
|
|
653
|
+
while the list stood still. The cap is now on open work; ticked entries stay
|
|
654
|
+
as history, and a goal that runs for months trims its oldest closed lines
|
|
655
|
+
instead of refusing new ones. A rejected add says why in the log
|
|
656
|
+
(`task rejected: 30 open`) instead of looking like a lost file.
|
|
657
|
+
|
|
658
|
+
## 1.21.0
|
|
659
|
+
|
|
660
|
+
- **Four commands became two, and the argument picks the variant.** Going back
|
|
661
|
+
was `/rewind` + `/fork` + `/branches` — three names for one job, and the
|
|
662
|
+
desktop app calls all of it branching. It is now `/rewind 2` (cut),
|
|
663
|
+
`/rewind fork [n]` (copy), `/rewind branches` (list). Switching a session is
|
|
664
|
+
`/sessions <id>` instead of a separate `/resume`, and "am I current?" is
|
|
665
|
+
`/update`, which now opens with the version card instead of needing
|
|
666
|
+
`/version` first.
|
|
667
|
+
- **The old spellings still work and are never advertised.** `control.mjs`
|
|
668
|
+
rewrites them into the verb and its argument, and logs the rewrite, so an
|
|
669
|
+
instruction written down months ago does not turn into an AI turn. `/help`
|
|
670
|
+
and the panel list the two names; `menu-card.mjs` lost three buttons and no
|
|
671
|
+
section fell below a usable size.
|
|
672
|
+
- **`/help <command>` answers for the merged name too**: asking about `/fork`
|
|
673
|
+
explains `/rewind`, because the sentence belongs to the job, not the spelling.
|
|
674
|
+
- **One card for versions.** `/update` prints the bridge version, what npm has,
|
|
675
|
+
the install directory and the update mode in a single message; the second
|
|
676
|
+
half of that answer used to require a second command.
|
|
677
|
+
|
|
678
|
+
## 1.20.6
|
|
679
|
+
|
|
680
|
+
- **All three locales checked, string by string.** 663 keys in each of `en`,
|
|
681
|
+
`ru`, `zh`: the same keys, the same placeholders, nothing empty, no mojibake.
|
|
682
|
+
Two real defects came out of it.
|
|
683
|
+
- **`/help tasks` printed literal double quotes** around its sentence in every
|
|
684
|
+
language — the string was written as a JS literal that already contained
|
|
685
|
+
quotes, and nothing looked at the shape of a translated string, only at
|
|
686
|
+
whether the key existed.
|
|
687
|
+
- **The Russian plugin list said "(disabled)" in English.** Now "(отключён)".
|
|
688
|
+
- A new test guards the shape rather than the key set: no string may be wrapped
|
|
689
|
+
in ASCII quotes, none may leak `undefined`/`NaN` or an unsubstituted `${…}`,
|
|
690
|
+
and a Russian or Chinese string may not be the English one unless it is pure
|
|
691
|
+
formatting, a product name, or a model id.
|
|
692
|
+
|
|
693
|
+
## 1.20.5
|
|
694
|
+
|
|
695
|
+
- **`/prices` has one source: OpenRouter.** The card used to mix models.dev with
|
|
696
|
+
a scraped provider page, and could print `$0.0000` for the model the install
|
|
697
|
+
actually runs — a free mirror standing in for a real price. A price that is
|
|
698
|
+
wrong is worse than no price, because it gets believed.
|
|
699
|
+
- **The number is labelled as a reference.** A private route (unorouter,
|
|
700
|
+
wikivibe, any reseller) does not publish its own tariff, so the card shows
|
|
701
|
+
OpenRouter's rate for the same model id and says in words that this is the
|
|
702
|
+
market rate, not the invoice: `deepseek/deepseek-v4.1-flash — reference:
|
|
703
|
+
OpenRouter price for the same model, not your route`. The id stays visible so
|
|
704
|
+
the number can be checked in one click.
|
|
705
|
+
- `pricesUrl` is retired: a second catalog only reintroduced the bug it was
|
|
706
|
+
meant to fix — two numbers for one model, and a guess about which is yours.
|
|
707
|
+
|
|
708
|
+
## 1.20.4
|
|
709
|
+
|
|
710
|
+
- **A prompt written in General ("Все") now starts its own topic.** The old
|
|
711
|
+
lobby rule moved such a message into the most recently active topic — so text
|
|
712
|
+
typed into the main stream ran in whatever project happened to be touched
|
|
713
|
+
last, and the answer appeared in a conversation the person was not looking at.
|
|
714
|
+
The owner hit this twice, once with a voice message.
|
|
715
|
+
- **The topic is named from the first words of the message.** Six words or forty
|
|
716
|
+
characters, whichever comes first, cut with an ellipsis; media without a
|
|
717
|
+
caption gets a neutral name. A title is a handle in a sidebar, not a summary.
|
|
718
|
+
- **The message itself becomes the first message of the topic.** It is copied
|
|
719
|
+
with `copyMessage` — media included, no "forwarded from" header — and pinned,
|
|
720
|
+
which also pins the topic to the top of the list. The copy is recorded as the
|
|
721
|
+
topic seed, so the duplicate guard does not answer the same text twice.
|
|
722
|
+
- **Commands are not prompts.** `/status` typed in General still answers where it
|
|
723
|
+
was typed; a state-changing command is still refused with the name of the
|
|
724
|
+
topic it would have changed. Only text without a leading slash opens a topic.
|
|
725
|
+
- If Telegram refuses to create the topic (no topic permission, a rate limit),
|
|
726
|
+
the old recovery runs instead, so the message is not lost.
|
|
727
|
+
|
|
728
|
+
## 1.20.3
|
|
729
|
+
|
|
730
|
+
- **The Telegram menu is thirteen rows, and it is built from the registry.**
|
|
731
|
+
It had thirty-six, written by hand inside `bot-menu.mjs` — a second list next
|
|
732
|
+
to the one `commands-registry.mjs` already kept. That is how `/task` survived
|
|
733
|
+
in the menu for a release after it had become an alias: two lists, one truth,
|
|
734
|
+
and neither knew about the other. `MENU_COMMANDS` now lives beside the
|
|
735
|
+
registry, `bot-menu.mjs` renders it with the `menu.cmd.*` strings, and a test
|
|
736
|
+
fails if a row is an alias, a duplicate, one letter away from another row
|
|
737
|
+
(`task`/`tasks`, `sessions`/`resume`), or written by hand again.
|
|
738
|
+
- **Nothing was removed, only unadvertised.** Every command still works and
|
|
739
|
+
`/help <name>` still explains it; the menu is what a person presses, not what
|
|
740
|
+
exists. `/menu` draws the whole surface as sections.
|
|
741
|
+
- The menu had also been replaced at some point by the 31-command list of
|
|
742
|
+
`@xmanrui/dsh-im`; the bridge re-asserts its own list on start, and this is the
|
|
743
|
+
list it now asserts.
|
|
744
|
+
|
|
745
|
+
## 1.20.2
|
|
746
|
+
|
|
747
|
+
- **`/task` and `/tasks` are one command again, and the menu shows it once.**
|
|
748
|
+
They had been split because `/tasks`, as an alias, swallowed the argument:
|
|
749
|
+
`/tasks 1` added a task whose text was "1". Splitting fixed that and doubled
|
|
750
|
+
the list — two nearly identical names, one of which did nothing the other could
|
|
751
|
+
not. `/tasks` now takes the argument itself: a bare number ticks that task,
|
|
752
|
+
`done|rm|edit <n>` say it out loud, any other text adds, and no argument shows
|
|
753
|
+
the card. `/task` still works and is never advertised, the way `models` and
|
|
754
|
+
`plugin` already work. `ctrl.help.about.task` folded into
|
|
755
|
+
`ctrl.help.about.tasks`; `/help`, the panel, the README and the start guide
|
|
756
|
+
teach one name.
|
|
757
|
+
|
|
758
|
+
## 1.20.1
|
|
759
|
+
|
|
760
|
+
- **A voice note now arrives as a transcript, and says so.** The turn used to get
|
|
761
|
+
the recognised words with nothing marking where they came from, so a misheard
|
|
762
|
+
word was read as a deliberate one: "dodge" recognised as "дождь" turned a car
|
|
763
|
+
into weather, and the answer was about the wrong subject. The prompt now opens
|
|
764
|
+
with a line saying the text was produced by speech recognition, that names,
|
|
765
|
+
Latin words and rare terms may be misheard, and that the model should ask what
|
|
766
|
+
was meant instead of guessing. The echo in the chat is unchanged — the person
|
|
767
|
+
still sees what was heard before the reply. `test/voice-marker.test.mjs`.
|
|
768
|
+
- **The published package no longer names a provider.** `model-probe.mjs` fell
|
|
769
|
+
back to a hard-coded provider environment variable while its own comment
|
|
770
|
+
promised that nothing was hardcoded; the probe now reads the first provider row
|
|
771
|
+
of the profile, with `DSH_PROBE_BASE_URL` and `DSH_PROBE_KEY_ENV` as the generic
|
|
772
|
+
overrides.
|
|
773
|
+
|
|
774
|
+
## 1.20.0
|
|
775
|
+
|
|
776
|
+
- **A turn shows its answer, not its reasoning.** When a turn ended without a
|
|
777
|
+
final answer, the CLI's `final` event reported the last assistant text it had
|
|
778
|
+
— the reasoning — and the bridge sent that as the reply. The chat then held a
|
|
779
|
+
page of thinking with no answer under it. The answer is now compared with the
|
|
780
|
+
reasoning block the panel already holds (whitespace-normalised, and only when
|
|
781
|
+
it is at least 120 characters, so "ok" cannot be swallowed); an echo becomes
|
|
782
|
+
one line saying the turn ended without an answer. `test/reasoning-echo.test.mjs`.
|
|
783
|
+
- **Every shipped module fits in one screen.** `bridge.mjs` 3116 → 411 lines,
|
|
784
|
+
`control.mjs` 2734 → 97, each dictionary 2024 → an 8-line header over
|
|
785
|
+
`core.mjs` (214 keys) and `ctrl.mjs` (421). The ceiling is a test, not a
|
|
786
|
+
promise: `test/module-size.test.mjs` fails above 500 lines and its `MIGRATION`
|
|
787
|
+
set — which once carried the files still waiting — is empty, so there is no
|
|
788
|
+
file left to exempt. The moves themselves change no behaviour; the process is
|
|
789
|
+
in `docs/REFACTORING.md` and the archived change is
|
|
790
|
+
`openspec/changes/archive/2026-10-28-split-giant-files/`.
|
|
791
|
+
- **The pre-push scanner stopped flagging merged pull requests.** GitHub writes
|
|
792
|
+
its own merge commits as `Committer: GitHub <noreply@github.com>`, and the
|
|
793
|
+
exemption in `scan-secrets.mjs` was written where it could never match, so the
|
|
794
|
+
first merged PR made every later push fail the check. The rule now reads the
|
|
795
|
+
address from its `@` and allows the whole `github.com` domain; a personal
|
|
796
|
+
domain is still a finding, and both cases are tested.
|
|
797
|
+
|
|
798
|
+
## 1.19.12
|
|
799
|
+
|
|
800
|
+
- **The speed number added in 1.19.11 was wrong.** The harness reports
|
|
801
|
+
`outputTokens` per step, not for the turn, so dividing the last step by the
|
|
802
|
+
whole clock claimed 0.6 tok/s for a turn that was running at eighty. The panel
|
|
803
|
+
now sums the per-step numbers and divides that, and the test asserts the sum
|
|
804
|
+
rather than the assignment.
|
|
805
|
+
- **The bot answers again.** 1.19.11 moved the allowlist check to the very front
|
|
806
|
+
of every update and called `allowedSender(msg)` without the config, so the
|
|
807
|
+
list of allowed users was read from `undefined` and came back empty: every
|
|
808
|
+
message, the owner's own included, was logged as `ignored update` and dropped
|
|
809
|
+
silently. One argument restores it, and the wiring test now asserts
|
|
810
|
+
`allowedSender(msg, config)` rather than a bare call name, which is exactly
|
|
811
|
+
how the regression got through.
|
|
812
|
+
|
|
813
|
+
## 1.19.11
|
|
814
|
+
|
|
815
|
+
- **The turn panel shows how fast it is generating**, in tokens per second, next
|
|
816
|
+
to the clock: `⏳ работаю… 412 с · 37 т/с`. The clock alone could not answer
|
|
817
|
+
"почему так долго" — a slow provider and a turn that spends its minutes in a
|
|
818
|
+
test run look identical. The number is the turn's average, output tokens over
|
|
819
|
+
wall time, and it is absent below three seconds rather than wrong.
|
|
820
|
+
- **A steer is confirmed the moment it is queued.** It used to produce nothing
|
|
821
|
+
at all: the `steer-inbox` plugin hands the addition to the running agent at its
|
|
822
|
+
next step, and a step can be a six-minute test run, so the addition looked
|
|
823
|
+
lost. There is now one short line at queue time; the 90-second notice is kept
|
|
824
|
+
for a job the plugin really has not picked up.
|
|
825
|
+
|
|
826
|
+
## 1.19.10
|
|
827
|
+
|
|
828
|
+
- **A command typed in the General topic no longer changes another topic.**
|
|
829
|
+
General ("Все") is the lobby: a message written there is moved into the most
|
|
830
|
+
recently active topic so one project stays in one place, and the answer appears
|
|
831
|
+
there. That is right for a prompt and for reading — but `/new` typed in General
|
|
832
|
+
wiped the session of a topic the person was not looking at, and `/rewind` rolled
|
|
833
|
+
one back. Reading commands and `/stop` still follow the work; everything that
|
|
834
|
+
changes state is answered in General with the name of the topic it would have
|
|
835
|
+
changed. A command never creates a topic.
|
|
836
|
+
|
|
837
|
+
## 1.19.9
|
|
838
|
+
|
|
839
|
+
- **`/tasks` is a command of its own again.** It had been an alias of `/task`,
|
|
840
|
+
which made the tappable checklist — the thing the README advertises —
|
|
841
|
+
unreachable, and made `/tasks 1`, the obvious way to mean "task 1", add a task
|
|
842
|
+
whose text was "1". The card also refused to draw for goals with fewer than
|
|
843
|
+
three tasks, which is most goals.
|
|
844
|
+
- **`/plugin add` installs into the topic's profile.** It wrote to the literal
|
|
845
|
+
`desktop` whatever profile the topic ran on, so on a fresh machine the only
|
|
846
|
+
in-chat install landed in a profile that does not exist. The `headless` /
|
|
847
|
+
`desktop` word is now read at either end of the line, as the help text always
|
|
848
|
+
said.
|
|
849
|
+
- **`setup` refuses on macOS and Linux instead of failing obscurely.** It stops
|
|
850
|
+
the old bridge with `taskkill` and registers autostart through `schtasks`, yet
|
|
851
|
+
the README promised "any platform" and `launchd`/`systemd` from that command.
|
|
852
|
+
It now names `install.sh` and exits 2; `--check` still runs everywhere.
|
|
853
|
+
- **`init` calls a missing headless profile a blocker**, because with no profile
|
|
854
|
+
the bot answers every message with an error. It names the one command that
|
|
855
|
+
fixes it.
|
|
856
|
+
|
|
857
|
+
## 1.19.8
|
|
858
|
+
|
|
859
|
+
- **Fixed: sync-runtime copied only the root .mjs files, so the dictionary
|
|
860
|
+
split in 1.19.7 left the runtime directory with an import that could not
|
|
861
|
+
resolve — the bridge would refuse to start after the next /restart confirm.**
|
|
862
|
+
It now copies exactly what package.json says the package is made of,
|
|
863
|
+
including subdirectories, and test/sync-runtime.test.mjs runs the real script
|
|
864
|
+
into a temp directory and boots the result. Caught minutes after publishing
|
|
865
|
+
1.19.7, before anyone restarted into it.
|
|
866
|
+
|
|
867
|
+
## 1.19.7
|
|
868
|
+
|
|
869
|
+
- **Fixed: three files promised Node 20 (and one promised 18) while the package
|
|
870
|
+
requires 24.** `install.sh`, `install.ps1`, `QUICKSTART.md` and the sanity check
|
|
871
|
+
inside `setup.mjs` each had their own idea of the floor, so a person on Node 22
|
|
872
|
+
passed every check and then died on the first session read — the failure looked
|
|
873
|
+
like a broken plugin, not a version requirement. All four now say 24, and
|
|
874
|
+
`test/node-floor.test.mjs` fails the build if any of them drifts again.
|
|
875
|
+
- **Changed: the dictionary is one file per locale.** `i18n.mjs` was 2024 lines
|
|
876
|
+
and every translation change meant scrolling a wall; it is 94 lines plus
|
|
877
|
+
`i18n/{en,ru,zh}.mjs` at ~640 each. No behaviour change — the existing parity
|
|
878
|
+
test compares the three tables key by key, and `sync-runtime` learned to create
|
|
879
|
+
the directory a nested `files[]` entry needs.
|
|
880
|
+
- **New: `docs/REFACTORING.md`.** The order in which the two remaining big modules
|
|
881
|
+
get split, what breaks during a move, and the rule that a refactor never shares
|
|
882
|
+
a commit — or a release — with a behaviour change.
|
|
883
|
+
|
|
884
|
+
## 1.19.6
|
|
885
|
+
|
|
886
|
+
- **Security: a stranger the bot can see could steer the owner's live turn.**
|
|
887
|
+
`allowedUserIds` was checked inside `handleMessage`, but the mid-turn addition
|
|
888
|
+
path (`steerRunningTurn`) runs one step earlier in the update loop and never
|
|
889
|
+
reaches that check — so any Telegram user who could message the bot could put
|
|
890
|
+
text inside a turn that already has shell and file tools. The allowlist is now
|
|
891
|
+
the first thing every update meets, in `accept`, before any branch; the rule
|
|
892
|
+
lives in `allowlist.mjs` so it can be tested without booting the bot.
|
|
893
|
+
- **Fixed: `/update confirm` never worked, for anyone.** It read
|
|
894
|
+
`<tmp>/package`, a layout npm stopped producing years before this project
|
|
895
|
+
existed (the package goes to `node_modules/`), and copied every entry with
|
|
896
|
+
`copyFileSync`, which throws on the first directory (`plugin/`, `skills/`).
|
|
897
|
+
The copy is now `cpSync` over the real path, split into `copyRelease()` so the
|
|
898
|
+
two faults are covered by tests instead of by hope.
|
|
899
|
+
- **Fixed: a missing DSH app killed the bridge on every turn, silently.**
|
|
900
|
+
`runTurn` spawned the desktop executable with no `error` listener; an
|
|
901
|
+
unhandled `EmitError` terminates the process, so a moved install looked like a
|
|
902
|
+
bot that answers nothing. The turn now fails with one line naming the exact
|
|
903
|
+
path and the config key that points elsewhere.
|
|
904
|
+
- **Fixed: `/task` and `/goal` printed the same card.** `/goal` is the plan
|
|
905
|
+
(objective, checklist, progress) and `/task` is the list you tick — it now
|
|
906
|
+
answers with the numbered checklist only, so typing either one tells you which
|
|
907
|
+
command owns what.
|
|
908
|
+
|
|
909
|
+
## 1.19.5
|
|
910
|
+
|
|
911
|
+
- **New: `/logs file` test no longer needs a machine that has run the bridge.**
|
|
912
|
+
The test stat'ed the real `bridge.log`; on a laptop it exists, so the branch
|
|
913
|
+
that answers when it does not was never exercised. It writes its own log into
|
|
914
|
+
the sandbox home now.
|
|
915
|
+
- **Fixed: `/thoughts` promised a disappearing message and sent a permanent one.**
|
|
916
|
+
The title said the block would be gone in a few minutes while the send was an
|
|
917
|
+
ordinary reply — the one thing a person cannot check until they scroll back a
|
|
918
|
+
day later. The report now goes through the bridge's self-deleting send, the
|
|
919
|
+
promise names the interval (three minutes), and a test asserts the block never
|
|
920
|
+
leaves as a permanent message.
|
|
921
|
+
- **Fixed: CI was red for the whole 1.19.x line.** Two faults, both invisible on a
|
|
922
|
+
developer machine: the Node 20 leg died on the zstd import, and one test matched
|
|
923
|
+
a whole statement against `\n` only, which a Windows checkout turns into CRLF.
|
|
924
|
+
Both are fixed and the suite runs green on the real matrix.
|
|
925
|
+
|
|
926
|
+
## 1.19.4
|
|
927
|
+
|
|
928
|
+
- **Fixed: the package claimed Node 20 and died on it.** Every command that touches
|
|
929
|
+
a session reads zstd frames, and `node:zlib` only grew the zstd codec in Node 24 —
|
|
930
|
+
the version DeepSeek Harness ships in its own runtime. The suite went red on the
|
|
931
|
+
Node 20 leg of CI for a month of releases, which nobody saw because the badge was
|
|
932
|
+
not part of the release gate. `engines.node` now says `>=24`, CI runs 24, and a
|
|
933
|
+
test fails the build if the declared floor and the CI matrix ever drift apart
|
|
934
|
+
again.
|
|
935
|
+
- **Fixed: the failure is now readable.** Importing a missing export is a syntax
|
|
936
|
+
error thrown before any code runs, so an old Node got
|
|
937
|
+
`does not provide an export named 'zstdDecompressSync'` and nothing else. The
|
|
938
|
+
zstd import is guarded: the message names the requirement.
|
|
939
|
+
- **Fixed: a test only passed on one line ending.** `cli-sync` matched
|
|
940
|
+
`const RUNTIME_FILES = ...;\n`, which is false on a Windows checkout that hands
|
|
941
|
+
the test CRLF — so the test was green locally and red in CI. It matches either
|
|
942
|
+
ending now.
|
|
943
|
+
|
|
944
|
+
## 1.19.3
|
|
945
|
+
|
|
946
|
+
- **New: `/plugins info <name>` — what a package is before it gets in.** The card
|
|
947
|
+
shows the version, what the package does, its licence, its repository, and the
|
|
948
|
+
line that decides the outcome: whether the manifest declares `dsh.bundle`. A
|
|
949
|
+
package that does not declare it is an ordinary npm package and DSH will not
|
|
950
|
+
load it — the chat now says that instead of installing it hopefully.
|
|
951
|
+
- **New: `/plugins update` — a report first, installs one at a time.** A wordless
|
|
952
|
+
call compares every installed bundle with the registry and answers with a list
|
|
953
|
+
plus one up-arrow button per package; the button runs
|
|
954
|
+
`/plugins update <name>`, which is the only thing that starts pnpm. Saying one
|
|
955
|
+
word must not start twenty installs.
|
|
956
|
+
- **Fixed: a closed goal stayed closed only until someone fixed a typo.**
|
|
957
|
+
`/goal <text>` reset the `done` flag, so editing the wording silently reopened
|
|
958
|
+
the work. The mark now survives a re-wording, the card says the goal is still
|
|
959
|
+
closed, and `/goal reopen` is the explicit way back.
|
|
960
|
+
- **Fixed: the plugin tests could install into the desktop profile.** One test
|
|
961
|
+
walked the real profile and ran pnpm for every bundle it found — while this
|
|
962
|
+
release was being prepared it upgraded 14 packages on the development machine.
|
|
963
|
+
Every test that imports `control.mjs` now gets a throwaway `DSH_HOME` from
|
|
964
|
+
`test/sandbox-home.mjs`, and a guard test fails the suite if a new one forgets.
|
|
965
|
+
|
|
966
|
+
## 1.19.2
|
|
967
|
+
|
|
968
|
+
- **Fixed: system commands answered a stranger in Russian.** `/restart`,
|
|
969
|
+
`/stop`, `/cd`, `/new`, `/help`, the start greeting and reminders each
|
|
970
|
+
carried their own `|| 'ru'` fallback, so an install whose owner never ran
|
|
971
|
+
`/lang` — and whose config had no default — spoke Russian to everyone, while
|
|
972
|
+
`resolveLang` promised English for an unknown reader. One rule now:
|
|
973
|
+
topic language, then `config.lang`, then English. A topic that chose Russian
|
|
974
|
+
still gets Russian; the difference is only what happens when nobody chose.
|
|
975
|
+
- **New: `/task edit <n> <text>` rewrites a checklist line in place.** The
|
|
976
|
+
desktop lets you edit a task; the chat could only delete it and add it again,
|
|
977
|
+
which renumbered every line below and broke whatever the conversation had been
|
|
978
|
+
quoting. An edit keeps the number, the position and the done mark;
|
|
979
|
+
`/task set` is the same action, and an impossible number is refused instead of
|
|
980
|
+
appending a line.
|
|
981
|
+
- **Docs: the changelog no longer names anyone's providers.** The published
|
|
982
|
+
changelog recorded the provider accounts and private channels of one install.
|
|
983
|
+
The portability grep used to skip that file, which hid the one place a public
|
|
984
|
+
reader could see them; both are fixed, and the grep now covers every file.
|
|
985
|
+
- `package.json` gained the repository's homepage and issue tracker, and npm's
|
|
986
|
+
own `pkg fix` shortened the `bin` path.
|
|
987
|
+
|
|
988
|
+
## 1.19.1
|
|
989
|
+
|
|
990
|
+
- **Fixed: a tap in the panel ran an explanation instead of the command.** Every
|
|
991
|
+
command that takes an argument opened its help page, so most of the panel
|
|
992
|
+
answered with a paragraph — the buttons looked like text, not like commands.
|
|
993
|
+
A press now runs the command bare, exactly as typing it would, and the command
|
|
994
|
+
answers with its own usage line or its own card. Only `/new` and `/stop`
|
|
995
|
+
still stop at their explanation: a stray tap must not start a session or kill a
|
|
996
|
+
turn.
|
|
997
|
+
- **Fixed: the English progress header was Russian.** `bridge.progress.topic`
|
|
998
|
+
was left in the Russian block's spelling, so an English chat read
|
|
999
|
+
"Тема: main (id 42)" above every tool line. Three new tests now check that each
|
|
1000
|
+
dictionary stays in its own language: no Cyrillic in the English or Chinese
|
|
1001
|
+
values, and no untranslated English sentence in the Chinese one.
|
|
1002
|
+
- **The panel leads with what is used daily.** `/menu` opens with four buttons —
|
|
1003
|
+
status, model, new session, stop — above the six sections, so the common case
|
|
1004
|
+
costs one tap instead of three. Nothing is listed twice.
|
|
1005
|
+
- **The Telegram command menu no longer advertises aliases.** `/tasks`,
|
|
1006
|
+
`/models`, `/plugin` and `/agentset` are still accepted, but they are gone
|
|
1007
|
+
from `setMyCommands` (and their two Russian descriptions with them), matching
|
|
1008
|
+
what the panel already did.
|
|
1009
|
+
- **New: `/plugins search <word>` — the marketplace, from the chat.** It asks the
|
|
1010
|
+
npm registry for the `dsh-plugin` keyword and answers with name, version and a
|
|
1011
|
+
line of description; each result carries a plus button that runs
|
|
1012
|
+
`/plugins add <name>`. A wordless search lists what exists at all. A refused
|
|
1013
|
+
registry is reported as a failure with its status, never as "nothing found" —
|
|
1014
|
+
the two send a person in opposite directions.
|
|
1015
|
+
- **Fixed: the failure rules live in `failures.mjs`.** Extracting them from
|
|
1016
|
+
`bridge.mjs` is what lets `TURN_TIME_CAP` be tested without starting a bot;
|
|
1017
|
+
the module is published with the rest.
|
|
1018
|
+
|
|
1019
|
+
## 1.19.0
|
|
1020
|
+
|
|
1021
|
+
- **Fixed: a turn stopped by its own time ceiling no longer reads as a
|
|
1022
|
+
failure.** The bridge's clock reported `turn exceeded 75 min` as an unknown
|
|
1023
|
+
error and told the person to repeat the request — which throws away a finished
|
|
1024
|
+
hour of work that is, in fact, safely on disk. It is now its own cause,
|
|
1025
|
+
`TURN_TIME_CAP`, saying that nothing is lost and that Continue picks up where
|
|
1026
|
+
it stopped. The failure rules moved to `failures.mjs` so they can be tested
|
|
1027
|
+
without starting a bot.
|
|
1028
|
+
- **New: `/fork` and `/branches` — branches, as on the desktop.** `/fork`
|
|
1029
|
+
copies this topic's session as a session of its own and moves the topic onto
|
|
1030
|
+
the copy; `/fork 2` copies it as it stood two turns back. Nothing is cut: the
|
|
1031
|
+
session you were in stays byte for byte as it was, and `/branches` lists the
|
|
1032
|
+
branches with a button each, so going back is a tap and not a guess. The copy
|
|
1033
|
+
gets a new id in its header — a copy that kept the old one would be two
|
|
1034
|
+
sessions with one name. Same refusals as `/rewind`: a session being written,
|
|
1035
|
+
or one whose tail is half-written, is not copied.
|
|
1036
|
+
- **New: `/menu` is a real menu — six sections, pages, and a keyboard you can
|
|
1037
|
+
keep.** The old panel was one card of sixteen buttons that vanished on the
|
|
1038
|
+
first press. It is now a hub and six pages (work, sessions, goals, model,
|
|
1039
|
+
extensions, service), each page one card that edits itself as you move, with
|
|
1040
|
+
its commands as buttons, a way back and a way onward. Every documented command
|
|
1041
|
+
is reachable from it and nothing else is: a test fails if the panel hides one.
|
|
1042
|
+
- **New: `/menu on` puts four keys under the message field** — status, menu,
|
|
1043
|
+
stop, new — and `/menu off` takes them away, remembered per topic. A tap sends
|
|
1044
|
+
the key's own word, so the bridge maps those four words back to their commands
|
|
1045
|
+
in all three languages; any other word stays a prompt, exactly as before.
|
|
1046
|
+
- **Fixed: the `/help` body ran two lines together.** `/subscribe on|off` and
|
|
1047
|
+
`Other:` were printed as `on|offOther:` in all three languages — a missing
|
|
1048
|
+
newline from an earlier edit, which also made the whole body unparseable as a
|
|
1049
|
+
single line.
|
|
1050
|
+
- **The panel no longer advertises old spellings.** Buttons carry the command
|
|
1051
|
+
they run (`/model <id>`, `/rewind [n]`), which is also how the panel teaches
|
|
1052
|
+
the names — and a test walks every button of every page for a stale name.
|
|
1053
|
+
|
|
1054
|
+
## 1.18.0
|
|
1055
|
+
|
|
1056
|
+
- **Fixed: "all models are unavailable" gave no reason.** After the probe found
|
|
1057
|
+
out *why* nothing answered, the hint was built by gluing the verdict onto a raw
|
|
1058
|
+
provider string, and the first thing in the message was the tail of an English
|
|
1059
|
+
error (the chat showed `in`, from `insufficient …`). The hint lives in
|
|
1060
|
+
`model-probe.mjs` now, is a sentence in the reader's language, and says which of
|
|
1061
|
+
four things is wrong: empty balance, overloaded provider, rejected key, dead
|
|
1062
|
+
network.
|
|
1063
|
+
- **Faster: a dead channel pool no longer costs a turn per model.** A
|
|
1064
|
+
`get_channel_failed` / `all providers are busy` 503 is the provider's own pool,
|
|
1065
|
+
not the model — it is down for every model in the chain. One probe after the
|
|
1066
|
+
first refusal now decides in seconds instead of four full turns: a real outage
|
|
1067
|
+
that took 741 seconds reports in under two minutes, and a pool that answers
|
|
1068
|
+
again lets the chain continue as before.
|
|
1069
|
+
- **Fixed: a chain that stopped early went silent.** The "all models are
|
|
1070
|
+
unavailable" message only fired when every model had been tried, so the new
|
|
1071
|
+
early stop would have ended the turn with nothing. A verdict now counts as the
|
|
1072
|
+
report, and a test pins the rule: no verdict and a short chain is not proof.
|
|
1073
|
+
|
|
1074
|
+
## 1.17.0
|
|
1075
|
+
|
|
1076
|
+
- **Fixed: `/rewind` could cut a session the desktop app had open.** The first
|
|
1077
|
+
1.16.0 rule only refused while a *bridge* turn was running, but the app keeps a
|
|
1078
|
+
write handle on a session it has open, and DSH then throws "stored log shrank
|
|
1079
|
+
below a previously observed prefix" at the next message. A session written to
|
|
1080
|
+
in the last half minute is now refused with a sentence that says to wait. The
|
|
1081
|
+
projection cache needs nothing: rows past the new end are discarded and the
|
|
1082
|
+
title is refolded from what remains.
|
|
1083
|
+
- **Fixed: two refusals were a key name or a sentence that said nothing.** Every
|
|
1084
|
+
refusal the planner can return now has words in all three languages, and a test
|
|
1085
|
+
holds the planner's own list to the translations, so a new refusal cannot ship
|
|
1086
|
+
wordless. Two Chinese messages were rewritten: they were correct but so short
|
|
1087
|
+
they did not say what to do.
|
|
1088
|
+
|
|
1089
|
+
## 1.16.0
|
|
1090
|
+
|
|
1091
|
+
- **New: `/rewind [n]` — go back a turn and say it differently.** The desktop
|
|
1092
|
+
app can branch from an earlier turn; the bridge now can too, from Telegram.
|
|
1093
|
+
`/rewind 2` shows a card naming every turn that will go and the turn the
|
|
1094
|
+
session will continue from, with one button to confirm and one to cancel.
|
|
1095
|
+
Nothing is cut until the button is pressed, the file is never edited in place
|
|
1096
|
+
(a copy is written first, and `/rewind undo` puts it back), and a turn that is
|
|
1097
|
+
running refuses the whole thing — a session being written is the one file this
|
|
1098
|
+
must never touch. Every ambiguous case refuses with a reason instead of
|
|
1099
|
+
guessing: no session, too few turns, a half-written tail, a button from
|
|
1100
|
+
another session, a button pressed twice.
|
|
1101
|
+
- **New: `/menu` — the panel.** Four short screens of buttons (work, answers,
|
|
1102
|
+
session, service). A press runs the command a person would have typed, and the
|
|
1103
|
+
card is replaced by that command's answer, so it never lingers. A button that
|
|
1104
|
+
needs an argument opens its explanation instead of guessing.
|
|
1105
|
+
- **New: `/help <command>`.** One sentence per command, and the lookalikes
|
|
1106
|
+
explain each other: `/task` adds, `/tasks` is the list; `/model` switches,
|
|
1107
|
+
`/models` is the catalogue; `/plugins` is the command, `/plugin` its old
|
|
1108
|
+
spelling. The full list is still `/help`.
|
|
1109
|
+
- **Fixed: two crashes in unreleased work, found by an audit before release.**
|
|
1110
|
+
`/help <anything>` and `/rewind` both threw a `ReferenceError` — one on a
|
|
1111
|
+
function that was called and never written, one on a variable read outside its
|
|
1112
|
+
scope. `node --check` cannot see either. A test now calls the real dispatcher
|
|
1113
|
+
with every command and asserts that none of them throws.
|
|
1114
|
+
- **Fixed: the commit history carried a personal email address.** Two commits,
|
|
1115
|
+
one of them reachable from every release since v1.10.0, were authored with the
|
|
1116
|
+
maintainer's private address. The whole history was rewritten to the project
|
|
1117
|
+
identity and every tag moved with it; nothing in the published package changed.
|
|
1118
|
+
The secrets scan now fails on a commit author, not only on file contents.
|
|
1119
|
+
|
|
1120
|
+
## 1.15.1
|
|
1121
|
+
|
|
1122
|
+
- **Fixed: `/settings` answered "Неизвестная команда".** It was in `/help`, in
|
|
1123
|
+
the Telegram menu and in the code that draws the card, but not in the list the
|
|
1124
|
+
bot checks before handling a command — the one list nothing compared against
|
|
1125
|
+
the other two. Now one test reads all three: a command in help or in the menu
|
|
1126
|
+
that the dispatcher does not know fails the build, and so does a command the
|
|
1127
|
+
dispatcher knows that nothing documents. The test was run against the broken
|
|
1128
|
+
code first, so it fails for the right reason.
|
|
1129
|
+
|
|
1130
|
+
## 1.15.0
|
|
1131
|
+
|
|
1132
|
+
- **New: `/settings` is one card with four tabs.** What the bot says (reasoning,
|
|
1133
|
+
language, thinking), who answers and how hard it works (model, effort,
|
|
1134
|
+
permissions, preset, agent set, agents), new releases, and the health checks.
|
|
1135
|
+
Each row shows what the value is now and what a tap would change it to, and a
|
|
1136
|
+
tap runs the command a person would have typed — the card cannot drift from
|
|
1137
|
+
the commands because it is a view of them. After a change it collapses into one
|
|
1138
|
+
plain line that can be deleted.
|
|
1139
|
+
- **Fixed, and it was the worst kind: `/prices` printed a wrong number.** The
|
|
1140
|
+
catalog holds the same model on about a hundred gateways, 567 entries at cost 0,
|
|
1141
|
+
and the matcher took the shortest substring hit — a free mirror of DeepSeek. The
|
|
1142
|
+
install's own model was reported as `$0.0000 / $0.0000`. A price is now chosen
|
|
1143
|
+
in a fixed order (published and yours, published, yours at zero, nothing), every
|
|
1144
|
+
line says whose price it is, and a route nobody publishes says
|
|
1145
|
+
"no public price" and names gateways that do.
|
|
1146
|
+
- **Fixed: a Chinese question in an English client got an English answer.** The
|
|
1147
|
+
reply language now comes from the message itself before the Telegram locale:
|
|
1148
|
+
Cyrillic switches the topic to Russian, Han characters to Chinese. Three letters
|
|
1149
|
+
minimum, so a model name or a path does not flip it.
|
|
1150
|
+
- **Fixed: the first command a new reader runs was a 404.** QUICKSTART said
|
|
1151
|
+
`npx dsh-tg@latest` eight times; the package is `dsh-tg-bridge`. Every copy-paste
|
|
1152
|
+
line now works as written, and the `ERR_MODULE_NOT_FOUND` row says what a global
|
|
1153
|
+
install does and does not update.
|
|
1154
|
+
- **Fixed: `/status` said the context window was unknown.** It looked for
|
|
1155
|
+
`contextWindow` in the wrong block of `cordis.patch.yml`, and the advice it gave
|
|
1156
|
+
pointed at a file that never holds the setting. It now reads the model's row,
|
|
1157
|
+
then the provider's default, and says which one is in force.
|
|
1158
|
+
- **Fixed: every progress card was one more message in a chat that is already
|
|
1159
|
+
busy.** One card per turn, edited in place, now carrying the topic it belongs to
|
|
1160
|
+
— a card that lands in the wrong place says so instead of raising the question.
|
|
1161
|
+
- **`/agents` explains itself.** Who a subagent is, what depth and the tool filter
|
|
1162
|
+
change, whose model list the "routes" are, and the one command for each. The
|
|
1163
|
+
numbers are still there; the sentence above them is new.
|
|
1164
|
+
- **The release notice goes to the last topic that ran a turn**, not to whichever
|
|
1165
|
+
topic happened to be open when the check ran.
|
|
1166
|
+
- `scan-secrets` reads commit identities too (`--all`): an address in an
|
|
1167
|
+
`Author:` line is personal data that no file in the tree shows, and it used to
|
|
1168
|
+
pass every check. Docs corrected where they described behaviour that had
|
|
1169
|
+
changed: `/logs file`, `/profile` in `/help`, the module count in the release
|
|
1170
|
+
criteria, the menu-language fallback.
|
|
1171
|
+
|
|
1172
|
+
## 1.14.0
|
|
1173
|
+
|
|
1174
|
+
- **New: updates have a policy.** The npm tag `latest` is a label, not an
|
|
1175
|
+
updater — installing pins a version on disk and nothing moves until something
|
|
1176
|
+
moves it. Now `/update` answers where the install stands, and takes a mode:
|
|
1177
|
+
`check` (the default: one message per new release), `auto` (the release installs
|
|
1178
|
+
by itself), `off` (no checks, nothing installs), and `confirm` (install now).
|
|
1179
|
+
The mode is per install, not per topic, because it is the install that updates.
|
|
1180
|
+
- In every mode the running process keeps its modules until `/restart confirm`,
|
|
1181
|
+
so a bad release never arrives in the middle of a chat. `confirm` and `auto`
|
|
1182
|
+
leave the replaced files in `update-backup-<date>`, and `/update` prints that
|
|
1183
|
+
path: one folder is the way back.
|
|
1184
|
+
- `/update off` pins the version it runs; `/update auto` refuses to be switched on
|
|
1185
|
+
top of a pending update, since that would mean two updates at once, one of them
|
|
1186
|
+
unattended.
|
|
1187
|
+
- `/subscribe on|off` is the same switch said plainly, for people who do not want
|
|
1188
|
+
to read `/update` first. It is not in the Telegram menu: a person who turned it
|
|
1189
|
+
off should not have to look for it there again.
|
|
1190
|
+
- The check rides the poll loop's idle and asks npm at most once a day (`check`)
|
|
1191
|
+
or once an hour (`auto`). The first check runs three minutes after a start so a
|
|
1192
|
+
restarting machine does not hit the registry on every boot.
|
|
1193
|
+
- Docs brought back in line with the code: `/models`, `/plugin`, `/tasks`,
|
|
1194
|
+
`/subscribe` and the whole `Sets:` and `Updates:` groups are in the README, in
|
|
1195
|
+
`/help` in all three languages, and in the Telegram menu; `/models` and
|
|
1196
|
+
`/plugin` were missing from the menu entirely.
|
|
1197
|
+
|
|
1198
|
+
## 1.13.2
|
|
1199
|
+
|
|
1200
|
+
- `QUICKSTART.md`: from no Telegram account to an answering bot in twelve steps,
|
|
1201
|
+
with a table of what actually goes wrong and what each symptom means. It ships
|
|
1202
|
+
in the package and is linked from the top of the README.
|
|
1203
|
+
- `skills/dsh-tg-bridge-onboarding/SKILL.md`: the same path as a skill, so an
|
|
1204
|
+
agent next to a newcomer can ask three questions, run the install and verify it
|
|
1205
|
+
by asking the person to send `hi` — not by reading logs.
|
|
1206
|
+
|
|
1207
|
+
## 1.13.1
|
|
1208
|
+
|
|
1209
|
+
- **Fix: the npm package could not start.** `format.mjs` was imported by
|
|
1210
|
+
`bridge.mjs` but missing from `files[]`, so `npm i -g dsh-tg-bridge` installed a
|
|
1211
|
+
package whose entry point fails on its first import. The check that would have
|
|
1212
|
+
caught it (does every shipped `.mjs` exist and does every relative import
|
|
1213
|
+
resolve?) now runs in the test suite.
|
|
1214
|
+
- `npm run secrets` and `npm run hooks` expose the scanner and the git hook
|
|
1215
|
+
installer from a published install.
|
|
1216
|
+
- Fix: a step note could land in another topic. Two turns running at once shared
|
|
1217
|
+
one note file per topic, and `say.mjs` learned the topic by picking the newest
|
|
1218
|
+
file on disk. Every turn now gets its own file, its path travels to the tools
|
|
1219
|
+
as `DSH_TG_THOUGHT`, and with no target `say.mjs` exits (7) instead of guessing.
|
|
1220
|
+
- **New: `/tasks` — the task list as buttons.** One tap closes a task, a second
|
|
1221
|
+
tap reopens it, and the card is redrawn from state, so a double tap cannot
|
|
1222
|
+
stack ✅ marks. The list is in the menu in all three languages.
|
|
1223
|
+
- Fix: `goal.mjs` took the topic from `--key`, which was easy to forget, so a
|
|
1224
|
+
task update could be written to the wrong topic or refused. It now takes
|
|
1225
|
+
`DSH_TG_KEY`, which the bridge passes to every turn.
|
|
1226
|
+
- A turn with no goal is told to set one before starting multi-step work, so the
|
|
1227
|
+
plan the person can see and the plan the agent follows are the same list.
|
|
1228
|
+
- **Security: a local push guard.** `scan-secrets.mjs` refuses tokens, private
|
|
1229
|
+
keys, paths that carry a user name and personal ids kept outside the repo;
|
|
1230
|
+
`.githooks/pre-commit` and `pre-push` run it, `install-hooks.mjs` installs them.
|
|
1231
|
+
`jev-gate` asked a remote model about secrets and only when run by hand, which
|
|
1232
|
+
is why an identifier reached a push earlier.
|
|
1233
|
+
|
|
1234
|
+
## 1.13.0
|
|
1235
|
+
|
|
1236
|
+
- **New: `/agentset` — named settings for a topic.** A set holds a model, an
|
|
1237
|
+
effort, a permission preset, a DSH agent preset and a language; every field is
|
|
1238
|
+
a delta, so an empty one inherits the profile. `/agentset use <id>` binds it to
|
|
1239
|
+
the current topic, `/agentset off` returns to the profile, `/agentset new`,
|
|
1240
|
+
`copy`, `rm` and `/agentset model <value> [id]` edit it without a text editor.
|
|
1241
|
+
Four builtins ship read-only — `normal`, `careful`, `fast`, `reviewer`; copy one
|
|
1242
|
+
to change it. Two topics can now run two models on one profile, which was
|
|
1243
|
+
impossible before: each of those switches wrote the shared profile patch.
|
|
1244
|
+
- Sets live in `agentsets.json` next to `state.json`, with their own revision and
|
|
1245
|
+
one silent rebase when two processes write at once, so a set saved by a second
|
|
1246
|
+
bridge is not lost by the first.
|
|
1247
|
+
- The progress message says which set a turn runs on (`On it: … · 9 s ·
|
|
1248
|
+
Reviewer · glm-5.3/high`), and nothing when no set is bound.
|
|
1249
|
+
- **Security: every inline button now checks the allowlist.** A callback used to
|
|
1250
|
+
be accepted from any user in any chat the bot was in; the message path was
|
|
1251
|
+
guarded, the button path was not. A press from outside `allowedUserIds` (and
|
|
1252
|
+
outside an allowed chat) is answered with the same "unknown button" text and
|
|
1253
|
+
changes nothing.
|
|
1254
|
+
- Fix: `agentsets.json` is refused, not overwritten, when it cannot be parsed.
|
|
1255
|
+
|
|
1256
|
+
## 1.12.1
|
|
1257
|
+
|
|
1258
|
+
- Fix: `bridge.mjs` spelled out one machine's secret name
|
|
1259
|
+
(`DSH_TELEGRAM_BOT_TOKEN_<hex>`, a per-install id), so a clone carried the
|
|
1260
|
+
original author's machine fingerprint. The suffix is now discovered from
|
|
1261
|
+
`~/.dsh/.credentials.yaml` instead of being written into the code.
|
|
1262
|
+
|
|
1263
|
+
## 1.12.0
|
|
1264
|
+
|
|
1265
|
+
- Fix: a restart went silent. Extracting the formatting helpers into `format.mjs`
|
|
1266
|
+
took `langFor` with them while two call sites stayed behind, so `send()` threw
|
|
1267
|
+
on its first line and the restart confirmation was logged and swallowed. The
|
|
1268
|
+
bridge now sends `✅ Мост поднялся` again after `/restart confirm`.
|
|
1269
|
+
- Fix: the npm README linked to `docs/*` files that the tarball does not ship, so
|
|
1270
|
+
every such link opened a 404 right after install. The links now point at the
|
|
1271
|
+
GitHub sources, and the install scripts and SECURITY.md are published too.
|
|
1272
|
+
- New: `test/bridge-wiring.test.mjs` reads `bridge.mjs` and fails when a called
|
|
1273
|
+
name is neither defined nor imported, and checks that every i18n key used by
|
|
1274
|
+
the bridge exists in all three languages.
|
|
1275
|
+
|
|
1276
|
+
## 1.11.0 — 2026-10-25
|
|
1277
|
+
|
|
1278
|
+
- The progress message opens with the request echoed back — `⏳ Принял: «…» · 3 с` — instead
|
|
1279
|
+
of a bare spinner. It is the first thing sent after a message arrives, so the person sees
|
|
1280
|
+
their own task named within a second, before the model has produced anything.
|
|
1281
|
+
- `say.mjs --note "…"` sends a real short chat message, for decisions that change what the
|
|
1282
|
+
person should expect: a release shipped, a cause found, a blocker. `--thought` stays the
|
|
1283
|
+
decision trail inside the panel, so the chat does not get one message per step.
|
|
1284
|
+
- The per-turn instruction now names both channels: 💭 for every significant step, `--note`
|
|
1285
|
+
only for what must be known now.
|
|
1286
|
+
- Two more panel tests (122 total).
|
|
1287
|
+
|
|
1288
|
+
## 1.10.1 — 2026-10-25
|
|
1289
|
+
|
|
1290
|
+
- Long answers no longer arrive as literal `<b>` and `<code>`. The reply was turned
|
|
1291
|
+
into Telegram HTML first and then cut at 3800 characters, so a cut inside a
|
|
1292
|
+
`<pre><code>` block invalidated every part; Telegram rejected them and the fallback
|
|
1293
|
+
resent the same markup as plain text — which is what the chat showed.
|
|
1294
|
+
- The reply is now split as markdown: never inside a fence, with the fence re-opened
|
|
1295
|
+
and its language tag kept, and each part converted on its own.
|
|
1296
|
+
- The plain fallback strips tags and entities, so even a rejected formatted message
|
|
1297
|
+
arrives as readable text instead of markup.
|
|
1298
|
+
- `format.mjs` holds the conversion and the splitting, with seven tests that pin the
|
|
1299
|
+
old failure (120 in total).
|
|
1300
|
+
|
|
1301
|
+
## 1.10.0 — 2026-10-25
|
|
1302
|
+
|
|
1303
|
+
- `/thoughts file` sends the **whole** reasoning of the last turn as a Markdown
|
|
1304
|
+
document (`reasoning-<date>-file.md`), and `/thoughts all` does the same for every
|
|
1305
|
+
turn of the session. Measured on a real session: the last turn was 15 steps /
|
|
1306
|
+
30 317 characters, the whole session 164 turns / 1 559 steps / 2.2 MB — fine for a
|
|
1307
|
+
document, impossible for a message.
|
|
1308
|
+
- `/thoughts off` keeps the reasoning block out of the turn panel: it shows
|
|
1309
|
+
`🧠 Размышления · N · /thoughts file` instead, and `/thoughts on` brings the block
|
|
1310
|
+
back. The switch is per topic and lives in `state.json`.
|
|
1311
|
+
- A cut block now points at `/thoughts file`, and the plain `/thoughts` reply ends
|
|
1312
|
+
with the hint that lists the three modes.
|
|
1313
|
+
- Logs are built from the session file on demand and pruned after a week.
|
|
1314
|
+
|
|
1315
|
+
## 1.9.3 — 2026-10-25
|
|
1316
|
+
|
|
1317
|
+
- Reading a block no longer gets interrupted. Telegram re-collapses an expanded
|
|
1318
|
+
`<blockquote>` on every edit of its message, so tapping the reasoning open and
|
|
1319
|
+
then the next 3.5 s edit landed the chat back on an older message. Blocks now
|
|
1320
|
+
appear only in the final edit of a turn, which nothing edits again; while the
|
|
1321
|
+
turn runs the panel shows a reasoning counter (`🧠 Размышления · 4821`) and the
|
|
1322
|
+
last three steps. Edits are also skipped when the text did not change and the
|
|
1323
|
+
cadence dropped from 3.5 s to 5 s.
|
|
1324
|
+
|
|
1325
|
+
## 1.9.2 — 2026-10-25
|
|
1326
|
+
|
|
1327
|
+
- Step lines name the work instead of the shell plumbing: the `cd <dir>` prefix and
|
|
1328
|
+
the shell wrapper are dropped and the arguments kept, so a row reads
|
|
1329
|
+
`pwsh: node sync-runtime.mjs` rather than `pwsh: node`. A call that only changed
|
|
1330
|
+
directory is not a step at all, and repeats fold into the line above as `×3`.
|
|
1331
|
+
A 35-row wall of `pwsh: cd` is now six rows of what actually ran.
|
|
1332
|
+
- A cut reasoning block says where the rest is (`… · /thoughts`) instead of starting
|
|
1333
|
+
mid-sentence with no explanation.
|
|
1334
|
+
- `/thoughts` sends the whole reasoning of the last turn in parts (up to 20k
|
|
1335
|
+
characters) rather than stopping at 4000 with an ellipsis.
|
|
1336
|
+
|
|
1337
|
+
## 1.9.1 — 2026-10-25
|
|
1338
|
+
|
|
1339
|
+
- `/remind list` lists the reminders instead of failing as an unreadable time, and
|
|
1340
|
+
the hint line mentions it.
|
|
1341
|
+
- `/help` shows the real `/agents set model|depth|filter … @tool` form, which was
|
|
1342
|
+
still documented as `/agents <id>`.
|
|
1343
|
+
|
|
1344
|
+
## 1.9.0 — 2026-10-25
|
|
1345
|
+
|
|
1346
|
+
- The turn message shows the whole turn: the reasoning block plus, when a turn
|
|
1347
|
+
makes more than three tool calls, the complete step list in a second collapsed
|
|
1348
|
+
block. Short turns keep their three inline steps; long ones no longer end at
|
|
1349
|
+
"…and 37 more" with no way to see them.
|
|
1350
|
+
- Both blocks are budgeted against Telegram's 4096-character limit (reasoning
|
|
1351
|
+
2000, steps 1600, panel 3900) and keep their tails with a "beginning hidden"
|
|
1352
|
+
note, so the newest part of the turn is always the part on screen.
|
|
1353
|
+
|
|
1354
|
+
## 1.8.1 — 2026-10-25
|
|
1355
|
+
|
|
1356
|
+
- The turn panel respects `plainText: true`: it was sending the reasoning block as
|
|
1357
|
+
HTML regardless, which is exactly what someone who turned markup off does not
|
|
1358
|
+
want. Such an install now gets the same content without the tags.
|
|
1359
|
+
|
|
1360
|
+
## 1.8.0 — 2026-10-25
|
|
1361
|
+
|
|
1362
|
+
The settings the desktop app exposes as panels, and the reasoning it streams as a
|
|
1363
|
+
section, reach the chat — each as one edited message instead of a stream of
|
|
1364
|
+
notifications.
|
|
1365
|
+
|
|
1366
|
+
- **`/agents set model|depth|filter <value> @<tool>`** writes a delegation row in
|
|
1367
|
+
the profile patch: which model a child runs, its `maxDepth`, its tool filter
|
|
1368
|
+
(`deny:` list). A single row needs `@tool`, because a bare list of names is
|
|
1369
|
+
ambiguous with a filter list. An unknown tool is named back with the list of
|
|
1370
|
+
real rows instead of a wrong "depth" error. The patch is written atomically
|
|
1371
|
+
with a rolling `.bak`: it decides every later turn, so a half-written file must
|
|
1372
|
+
never exist.
|
|
1373
|
+
- **`/effort`** reads the ids the route itself declares (`reasoningEfforts` in
|
|
1374
|
+
the model catalog), offers exactly those, shows the current one and writes or
|
|
1375
|
+
removes `reasoningEffort`. A value the route does not declare is refused; a
|
|
1376
|
+
route that declares nothing gets the value written with an explicit warning
|
|
1377
|
+
that nobody promised it works.
|
|
1378
|
+
- **`/permissions`** lists the sandbox/approval presets in the profile, marks the
|
|
1379
|
+
current one and switches it. On an app-managed profile the table is owned by
|
|
1380
|
+
the bundle and the card says so instead of inventing a config row.
|
|
1381
|
+
- **`/preset`** lists the agent presets a profile declares and switches the
|
|
1382
|
+
pinned registry default; a profile that declares none is described, not
|
|
1383
|
+
guessed at.
|
|
1384
|
+
- **`/plan`** reads the session's plan projection: whether plan mode is on, what
|
|
1385
|
+
it is waiting for, and how to ask for a plan. It is read-only on purpose —
|
|
1386
|
+
headless cannot dispatch a mode change, and saying "off" when the truth is
|
|
1387
|
+
"unknown" would be worse than saying "unknown".
|
|
1388
|
+
- **`/jobs`** is the jobs panel for this bridge: running turns with their topic,
|
|
1389
|
+
the queue depth and the parallelism cap. DSH jobs live inside the per-turn
|
|
1390
|
+
child process and die with it, so a panel that claimed otherwise would lie.
|
|
1391
|
+
- **`/remind`** adds, lists, deletes and clears reminders (`+15m`, `+2h`, `+1d`,
|
|
1392
|
+
`HH:MM`). The scheduler is the bridge's own: the headless host exits after each
|
|
1393
|
+
turn, so a DSH schedule would never fire. Entries are per chat, capped at 20,
|
|
1394
|
+
and delivery is a plain message in the topic that asked.
|
|
1395
|
+
- **Live reasoning**: the CLI's `thinking` events are folded into the turn's
|
|
1396
|
+
progress message as a native `<blockquote expandable>` — collapsed it is one
|
|
1397
|
+
line, tapped it shows the whole trail, and it stays with the turn after the
|
|
1398
|
+
turn ends. Edits are throttled, text is escaped, long reasoning keeps its tail
|
|
1399
|
+
with a "beginning hidden" note, and a rejected markup falls back to plain text
|
|
1400
|
+
rather than freezing the panel.
|
|
1401
|
+
- `profile-edit.mjs` (indent-aware YAML row editor, `.bak`, atomic rename),
|
|
1402
|
+
`reminders.mjs` (parser + schedule helpers) and `panel.mjs` (the turn view) are
|
|
1403
|
+
separate modules with their own tests; the panel was split out because
|
|
1404
|
+
importing `bridge.mjs` claims the pid file and exits when a bridge is running.
|
|
1405
|
+
- Six new commands in the menu and `/help` in all three languages; i18n parity is
|
|
1406
|
+
enforced by a test, not by review.
|
|
1407
|
+
|
|
1408
|
+
## 1.7.7 — 2026-10-25
|
|
1409
|
+
|
|
1410
|
+
- `/agents` answers the question the desktop sidebar answers: who can this
|
|
1411
|
+
session delegate to, on which model, how deep, with which tool filter, which
|
|
1412
|
+
routes a child may pick, and which children this session actually started
|
|
1413
|
+
(read from the catalog the delegation tools themselves publish). `/agents <id>`
|
|
1414
|
+
opens one child with its label, mode and the `/resume` line that continues it
|
|
1415
|
+
here.
|
|
1416
|
+
- `/profile show [name]` is the profile card: model, rows in its patch, disabled
|
|
1417
|
+
rows, bundle count, delegation tools, child routes, and the file that owns them
|
|
1418
|
+
all. `/profile` alone says which profile you are on; this says whether the one
|
|
1419
|
+
you are about to switch to is the one you want.
|
|
1420
|
+
- `agents.mjs` reads the delegation rows out of a profile patch (the bridge
|
|
1421
|
+
already edited those patches by hand for `/model` and plugin toggles). It is
|
|
1422
|
+
parse-only and tested, because a wrong indent assumption here reports the wrong
|
|
1423
|
+
model to a person setting a cost budget.
|
|
1424
|
+
- The command menu and `/help` carry `/agents` in all three languages.
|
|
1425
|
+
|
|
1426
|
+
## 1.7.6 — 2026-10-25
|
|
1427
|
+
|
|
1428
|
+
- The status card names the session ("Название: Отвечай по игре сюда"). The
|
|
1429
|
+
bridge only knew the titles it had set itself, so a session resumed from the
|
|
1430
|
+
desktop, or seeded before the title was written, showed none — while
|
|
1431
|
+
`/sessions` had it all along. It now falls back to DSH's projection cache.
|
|
1432
|
+
|
|
1433
|
+
## 1.7.5 — 2026-10-25
|
|
1434
|
+
|
|
1435
|
+
- `/version` adds one line when the modules on disk are newer than the running
|
|
1436
|
+
process: the version number comes from `package.json`, the answers come from
|
|
1437
|
+
the code loaded at start, and after `sync-runtime.mjs` or `/update` those two
|
|
1438
|
+
disagree until `/restart confirm`. Say it instead of letting a fresh number
|
|
1439
|
+
read as live code.
|
|
1440
|
+
- The `/logs` menu entry mentions `/logs file`.
|
|
1441
|
+
|
|
1442
|
+
## 1.7.4 — 2026-10-25
|
|
1443
|
+
|
|
1444
|
+
- `/logs file` sends `bridge.log` as a document instead of pasting a slice of it:
|
|
1445
|
+
when the question is "what exactly happened", the chat is the wrong container.
|
|
1446
|
+
- `/logs errors` shows the bridge's own faults. It used to match every tool
|
|
1447
|
+
result line, so a routine non-zero exit buried the four real failures under
|
|
1448
|
+
four hundred lines of work the agent had already reported.
|
|
1449
|
+
- A pending update that makes the replay throw is now logged and dropped. Before,
|
|
1450
|
+
it stayed in the journal forever: the bridge replayed it, died, was restarted,
|
|
1451
|
+
replayed it again — a crash loop every ninety seconds with nothing in the chat.
|
|
1452
|
+
- `/logs` filtering moved into `filterLogLines()` and is covered by tests
|
|
1453
|
+
(seven new).
|
|
1454
|
+
|
|
1455
|
+
## 1.7.3 — 2026-10-25
|
|
1456
|
+
|
|
1457
|
+
- Report headers carry one glyph each (📊 status, 🩺 diagnostics, 🗂 sessions,
|
|
1458
|
+
📦 versions, 🧠 reasoning), so a chat full of answers can be scanned the way a
|
|
1459
|
+
dashboard is.
|
|
1460
|
+
- `/status` says whether the agent is working right now ("Агент работает: нет
|
|
1461
|
+
(0 ходов)") and prints the full session id, because that id is what people copy
|
|
1462
|
+
into `/resume`.
|
|
1463
|
+
|
|
1464
|
+
## 1.7.2 — 2026-10-25
|
|
1465
|
+
|
|
1466
|
+
- A voice note or photo that arrived while a turn was running, but finished
|
|
1467
|
+
downloading after that turn ended, is now delivered as a turn of its own. It
|
|
1468
|
+
used to be written as a steer job and then sit in the directory until the
|
|
1469
|
+
watcher noticed ninety seconds later — long enough to look like the message
|
|
1470
|
+
was swallowed. The prepared text (transcript, file path, caption) is already
|
|
1471
|
+
the whole request, so it runs directly instead of re-transcribing the audio.
|
|
1472
|
+
- An album flush no longer decides "steer or turn" from the state at upload
|
|
1473
|
+
time: the buffer holds photos for up to four seconds, and a turn that ended in
|
|
1474
|
+
that window must still get an answer.
|
|
1475
|
+
- The mid-turn photo disclaimer ("only the path is attached") is left out when
|
|
1476
|
+
the text ends up as a fresh turn, where the image is readable after all.
|
|
1477
|
+
|
|
1478
|
+
## 1.7.1 — 2026-10-25
|
|
1479
|
+
|
|
1480
|
+
- `/status` is a card now, not a key dump: session title, when it was created and
|
|
1481
|
+
last active, how full the context is (`Context: 78,450 / 1,000,000 (8%)`, with
|
|
1482
|
+
the window taken from `contextWindow` in `config.json`), how many tokens the
|
|
1483
|
+
session billed over its whole life, how many turns it holds, and whether the
|
|
1484
|
+
working notes are on. The numbers come from the session log itself
|
|
1485
|
+
(`sessionStats` in `thoughts.mjs`), so they are right even for a session this
|
|
1486
|
+
process does not hold.
|
|
1487
|
+
- `/thoughts` no longer dead-ends on a turn that planned nothing (a one-word "ok"
|
|
1488
|
+
has no reasoning part): it says so and shows what that turn answered instead.
|
|
1489
|
+
- `/cd` with nothing bound printed an empty line where the directory belongs. It
|
|
1490
|
+
now says the bridge default is in use, or that nothing is set at all, and
|
|
1491
|
+
`/doctor` marks a default directory as inherited rather than silently shown.
|
|
1492
|
+
- `sync-runtime.mjs`: one command copies the repo modules over the live bridge
|
|
1493
|
+
directory with a timestamped backup. Several fixes in this release had landed
|
|
1494
|
+
in the repo while the running copy kept the old file, so `npm test` passed and
|
|
1495
|
+
the bot still answered from stale code.
|
|
1496
|
+
|
|
1497
|
+
## 1.7.0 — 2026-10-25
|
|
1498
|
+
|
|
1499
|
+
- A command typed during a long turn is answered at once, not after it. The
|
|
1500
|
+
immediate set was a list of six "safe" reports; everything else queued, so
|
|
1501
|
+
`/model`, `/goal` or a mistyped command sat in the queue behind a turn that
|
|
1502
|
+
could run for twenty minutes — which is indistinguishable from a dead bot.
|
|
1503
|
+
The rule is inverted: only `/new`, `/resume`, `/seed`, `/send` and plugin
|
|
1504
|
+
mutations queue, because those replace or feed the session the running turn is
|
|
1505
|
+
writing. The list lives in `immediate.mjs`, and a test walks `CONTROL_COMMANDS`
|
|
1506
|
+
so a new command is never silently left in the queue.
|
|
1507
|
+
- `/thoughts` shows what the model was thinking in the last turn, read straight
|
|
1508
|
+
from the session log (`thoughts.mjs` walks the zstd frames of
|
|
1509
|
+
`session.v4.jsonl.zstd` backwards to the last `turn/start`), so it works for any
|
|
1510
|
+
session, even one this process no longer holds. The reply deletes itself after
|
|
1511
|
+
a few minutes; so does an unknown command's menu.
|
|
1512
|
+
- `/version` reports the bridge version, the latest on npm and where the
|
|
1513
|
+
bridge lives. `/update` says whether a newer release exists; `/update confirm`
|
|
1514
|
+
installs it into the bridge directory (fetched into a temp dir and copied over,
|
|
1515
|
+
with the previous files in `update-backup-*`). Until `/restart confirm` the old
|
|
1516
|
+
code keeps serving, so a bad release cannot take the chat down by itself.
|
|
1517
|
+
|
|
1518
|
+
## 1.6.0 — 2026-10-25
|
|
1519
|
+
|
|
1520
|
+
- A photo is read by the turn's own model, not by a second, billed one. The
|
|
1521
|
+
automatic switch to `vision.patch` dated from a text-only default model; a
|
|
1522
|
+
plain `headless` turn read the Chinese captions off a 720×1560 screenshot and
|
|
1523
|
+
answered with them verbatim. The overlay is now opt-in (`vision.enabled`) and
|
|
1524
|
+
mid-turn photos are honestly described as "here is the path" instead of "the
|
|
1525
|
+
model cannot see it".
|
|
1526
|
+
- `/models` is gone from the menu: bare `/model` lists the models and
|
|
1527
|
+
`/model <id>` switches, the way every other command works. `/models` still
|
|
1528
|
+
answers as an alias so old habits do not break. `/app` and `/restart` now say
|
|
1529
|
+
which one restarts the desktop app and which one restarts the bridge.
|
|
1530
|
+
- The package ships `profiles.mjs` and `cli-args.mjs`. Both are imported by
|
|
1531
|
+
`bridge.mjs`, and `files` in `package.json` did not list them: an install from
|
|
1532
|
+
npm would have died with `ERR_MODULE_NOT_FOUND` on the first turn.
|
|
1533
|
+
- Model overlays that are materialised as profiles no longer show up in
|
|
1534
|
+
`/profile`, and they keep the base profile's plugins through a `node_modules`
|
|
1535
|
+
junction instead of booting a bare host without the steer inbox.
|
|
1536
|
+
- Photo turns work again, and so does the fallback-model path: both passed
|
|
1537
|
+
`--patch` to `dsh` *after* `--json`, and the launcher hands everything from
|
|
1538
|
+
the first flag it does not know to the app, which rejected it with
|
|
1539
|
+
`unknown option '--patch'` and exited 1 in about five seconds ("CLI exited
|
|
1540
|
+
with code 1 and no output"). Launcher options now come first; `turnArgs()` in
|
|
1541
|
+
`cli-args.mjs` builds the argument list and a test pins the order.
|
|
1542
|
+
- A button press answers in the topic's language. A callback carries no message,
|
|
1543
|
+
so `resolveLang` only had the config default there and answered in English
|
|
1544
|
+
under a Russian card ("Send /doctor — it collects the full report."). The
|
|
1545
|
+
first message in a topic now teaches the bridge what it speaks, the choice is
|
|
1546
|
+
kept in `state.lang`, and an explicit `/lang` still wins.
|
|
1547
|
+
- The whole surface speaks en / ru / zh, not just the menu and the greeting:
|
|
1548
|
+
every `/command` reply in `control.mjs` (98 `ctrl.*` keys) and every runtime
|
|
1549
|
+
line in `bridge.mjs` — progress steps, the fallback-model notice, the failure
|
|
1550
|
+
explainer, approval buttons and callback answers (38 `bridge.*` keys). The
|
|
1551
|
+
Russian wording is unchanged; English and Chinese are new. A `/logs errors`
|
|
1552
|
+
filter keeps its Russian alternatives because it matches the bridge's own log
|
|
1553
|
+
text, not user output.
|
|
1554
|
+
- An album is one hand-over, not ten. Telegram sends one update per file with a
|
|
1555
|
+
shared `media_group_id`; `albums.mjs` collects the group (1.2 s quiet, 4 s
|
|
1556
|
+
ceiling) and delivers it as one steer into a running turn or one turn when the
|
|
1557
|
+
topic is idle. Four tests cover ordering, separate albums, the ceiling and a
|
|
1558
|
+
single-item group.
|
|
1559
|
+
- A turn stopped by the time ceiling is now a pause, not a dead end: the status
|
|
1560
|
+
message shows `⏱` with the localised explanation and a **Continue** button,
|
|
1561
|
+
which enqueues a continuation prompt in the same session instead of re-running
|
|
1562
|
+
the whole task from scratch (that is what Retry does). `runTurnLive` reports
|
|
1563
|
+
`reason: 'timeout'` so the button choice is made on a fact, not on parsing an
|
|
1564
|
+
error string.
|
|
1565
|
+
- Attachments are a first-class part of a running turn, not just typed text.
|
|
1566
|
+
- A caption no longer downgrades a file to a text-only message. `handleMessage`
|
|
1567
|
+
only called the media helper when the message had no text, so every
|
|
1568
|
+
captioned document was silently dropped — idle and mid-turn alike.
|
|
1569
|
+
- Small text files (`.md`, `.json`, `.csv`, `.py`, `.log`, source, config, up
|
|
1570
|
+
to 60 KB) are pasted into the prompt as content, so a steer can use them
|
|
1571
|
+
without a tool round-trip; bigger or binary files keep the path.
|
|
1572
|
+
- Audio sent as a document is transcribed like a voice note; video, video
|
|
1573
|
+
notes and animations are saved under `inbox/` and handed over by path.
|
|
1574
|
+
- A photo steered mid-turn now carries one honest line: a running turn cannot
|
|
1575
|
+
apply the vision overlay, so the model says it cannot see the image instead
|
|
1576
|
+
of quietly ignoring it.
|
|
1577
|
+
- `inlineText()` lives in `media-text.mjs` with six tests.
|
|
1578
|
+
- `/reasoning on|off` controls the `💭` decision trail per topic. On by default:
|
|
1579
|
+
each turn carries one instruction to leave a line at each decision point. Off
|
|
1580
|
+
removes both the instruction and the display, so nothing is written either.
|
|
1581
|
+
New i18n keys (`prompt.reasoning`, `msg.reasoning*`) in en/ru/zh.
|
|
1582
|
+
- `/profile` ports the app's profile switcher into a topic: list, switch
|
|
1583
|
+
(`/profile research`), create from a shipped template
|
|
1584
|
+
(`/profile new research from web`), and return to the install default
|
|
1585
|
+
(`/profile default`). Turns, `/model`, `/plugins`, `/prices` and steering pick
|
|
1586
|
+
the topic's profile instead of the global one. A created profile is written
|
|
1587
|
+
with `dsh <name> --from-default-profile <template> --dump-config`, so nothing
|
|
1588
|
+
boots at creation time.
|
|
1589
|
+
- Fixed a latent bug: `handleControl` destructured `profile` from its context but
|
|
1590
|
+
the bridge never passed it, so every profile-aware command silently used the
|
|
1591
|
+
install default.
|
|
1592
|
+
- Steering covers attachments, not just typed text. A voice note sent while a
|
|
1593
|
+
turn runs is transcribed (`🎤 <transcript>` is echoed first) and the transcript
|
|
1594
|
+
is handed to the live agent; a photo or a file is downloaded and its local
|
|
1595
|
+
path is steered. Both go through the same helper an idle turn uses, so the
|
|
1596
|
+
agent sees the same text either way.
|
|
1597
|
+
- The voice/photo/document conversion moved out of `handleMessage` into
|
|
1598
|
+
`mediaPrompt()`, which returns `{ text, extraArgs }`. A steer cannot apply the
|
|
1599
|
+
vision patch to a turn that is already running, so a photo steered mid-turn
|
|
1600
|
+
carries only its path.
|
|
1601
|
+
|
|
1602
|
+
## 2026-10-25 — v1.5.4
|
|
1603
|
+
|
|
1604
|
+
- Portability: no command depends on one provider any more.
|
|
1605
|
+
- `/prices` reads the public models.dev catalog; a provider page is optional
|
|
1606
|
+
and configured with `pricesUrl` (default `""`). The vendor was previously
|
|
1607
|
+
hardcoded.
|
|
1608
|
+
- Provider keys passed to a turn are declared per install with
|
|
1609
|
+
`"providerKeys": ["NAME"]` and read from `~/.dsh/.credentials.yaml`. The
|
|
1610
|
+
four fixed provider names are gone, so a fresh install sends no foreign keys.
|
|
1611
|
+
- `config.example.json` ships with `fallbackModels: []` and an empty vision
|
|
1612
|
+
patch instead of one vendor's free models and vision model.
|
|
1613
|
+
- README: the command menu is installed by `init`/`setup`, not refreshed by a
|
|
1614
|
+
plain restart; run `dsh-tg menu` after upgrading.
|
|
1615
|
+
|
|
1616
|
+
## 2026-10-24 — v1.5.3
|
|
1617
|
+
|
|
1618
|
+
- `say.mjs --thought` no longer depends on environment variables: tool shells
|
|
1619
|
+
do not inherit the bridge's env, so it falls back to the newest active
|
|
1620
|
+
thought file and needs no chat/thread ids.
|
|
1621
|
+
|
|
1622
|
+
## 2026-10-24 — v1.5.2
|
|
1623
|
+
|
|
1624
|
+
- Fix a crash window in v1.5.1: the thought poller could fire before the
|
|
1625
|
+
progress scheduler was initialized. `schedule` is now a hoisted function.
|
|
1626
|
+
|
|
1627
|
+
## 2026-10-24 — v1.5.1
|
|
1628
|
+
|
|
1629
|
+
- Live thoughts: `say.mjs --thought "..."` appends a note to the turn's thought
|
|
1630
|
+
file, and the progress message shows the last two as `💭` lines. No extra
|
|
1631
|
+
Telegram messages, and chat/thread come from the turn environment.
|
|
1632
|
+
|
|
1633
|
+
## 2026-10-24 — v1.5.0
|
|
1634
|
+
|
|
1635
|
+
- Desktop-style goals per topic: `/goal <text>`, `/goal`, `/goal done`,
|
|
1636
|
+
`/goal clear`; `/task <text>`, `/task done <n>`, `/task rm <n>`.
|
|
1637
|
+
- The goal and checklist are prepended to every turn, so they survive `/new`
|
|
1638
|
+
and a restart. The agent ticks tasks through `goal.mjs`; job files keep the
|
|
1639
|
+
bridge the only writer of `state.json`.
|
|
1640
|
+
- `/status` shows goal progress; the Telegram command menu lists both commands.
|
|
1641
|
+
|
|
1642
|
+
## 2026-10-24 — v1.4.1
|
|
1643
|
+
|
|
1644
|
+
- Manifest corrected against DSH's actual compatibility gate: only
|
|
1645
|
+
`engines.dsh` is read, and it now carries an explicit `0.2.2-*` prerelease
|
|
1646
|
+
branch. The inert `dsh.manifestVersion` / `dsh.compatibility` fields are
|
|
1647
|
+
gone. Docs no longer present the market's display cache as the install gate.
|
|
1648
|
+
|
|
1649
|
+
## 2026-10-24 — v1.4.0
|
|
1650
|
+
|
|
1651
|
+
- The package is now a valid DSH bundle: `engines.dsh` declares the supported
|
|
1652
|
+
harness range, `dsh.bundle.patch` points at `cordis.patch.yml`, and
|
|
1653
|
+
`plugin-bridge.mjs` starts one bridge when DSH boots and stops it on
|
|
1654
|
+
shutdown. A live `bridge.pid` wins, so the plugin and the scheduled task
|
|
1655
|
+
never poll the same bot twice.
|
|
1656
|
+
- Installation no longer embeds a GitHub account: `init` and `setup` run
|
|
1657
|
+
through `npx dsh-tg-bridge@latest`, and `install.sh` / `install.ps1`
|
|
1658
|
+
download the npm tarball instead of cloning a repository.
|
|
1659
|
+
- README: supported harness range, ecosystem links to the Chinese DSH plugin
|
|
1660
|
+
catalogs, corrected autostart description (one guarded task, five-minute
|
|
1661
|
+
tick), no raw personal URLs.
|
|
1662
|
+
- `docs/MARKETPLACE.md`: what the catalog checks, the exact listing entry, and
|
|
1663
|
+
the remaining blockers.
|
|
1664
|
+
|
|
1665
|
+
## 2026-10-24 — v1.3.5
|
|
1666
|
+
|
|
1667
|
+
- Supervisor fix: `bridge-kick.mjs` starts the bridge with `spawn()` +
|
|
1668
|
+
`unref()` instead of `spawnSync()`. The blocking call kept the tick alive
|
|
1669
|
+
for as long as the bridge ran, held `restart.lock` for hours and left the
|
|
1670
|
+
supervisor skipping every tick; the bridge was then started by a second
|
|
1671
|
+
timer without the lock, producing Telegram 409 conflicts.
|
|
1672
|
+
- The restart lock now expires after 180 s even if its holder is alive, and a
|
|
1673
|
+
late holder only deletes a lock that still carries its own pid.
|
|
1674
|
+
- Healthy ticks cost one `kill(0)`; the PowerShell process scan runs only when
|
|
1675
|
+
the pid file is missing or stale.
|
|
1676
|
+
- `setup` points the scheduled task at the guarded hidden launcher
|
|
1677
|
+
(`wscript` + `bridge-kick.mjs`) instead of starting `node` directly, so
|
|
1678
|
+
starts go through the lock and no console window appears at logon.
|
|
1679
|
+
|
|
1680
|
+
## 2026-10-24 — v1.3.4
|
|
1681
|
+
|
|
1682
|
+
- `/prices` no longer assumes one provider: it merges the provider catalog and
|
|
1683
|
+
models.dev, prices the model of the configured profile, answers in the
|
|
1684
|
+
topic language, and does not crash when both catalogs are unusable.
|
|
1685
|
+
- `/plugins add|remove|disable|enable` launch the DSH CLI the same way turns
|
|
1686
|
+
do (Electron + `cli.js`); spawning the `dsh.cmd` shim failed with `EINVAL`
|
|
1687
|
+
on Node 20 and newer.
|
|
1688
|
+
- `/status`, `/models` and `/model` read and write `config.profile` instead of
|
|
1689
|
+
a hardcoded `headless`; the desktop line appears only when that profile
|
|
1690
|
+
exists.
|
|
1691
|
+
- `/sessions` follows the topic's `/cd` directory.
|
|
1692
|
+
- Turn telemetry reports the real model instead of a hardcoded id.
|
|
1693
|
+
- `init` writes absolute voice and vision paths, and existing configs are
|
|
1694
|
+
repaired at bridge start. Relative paths silently disabled voice and photos
|
|
1695
|
+
after a fresh install.
|
|
1696
|
+
|
|
1697
|
+
## 2026-10-24 — v1.3.3
|
|
1698
|
+
|
|
1699
|
+
- All documentation is now English: README, setup, cost, roadmap, release
|
|
1700
|
+
criteria, UX analysis, injection notes and changelog.
|
|
1701
|
+
- Removed personal data from the public repo: example Telegram ids are now
|
|
1702
|
+
`123456789`, project examples use `my-app`, the internal status log and
|
|
1703
|
+
archive notes are out of the tree, and `LICENSE` names the contributors.
|
|
1704
|
+
- `allowedUserIds` defaults to an empty list, so a config-less bridge answers
|
|
1705
|
+
nobody instead of one hardcoded id.
|
|
1706
|
+
- `/cd` lists projects from `projectsDir` (default `~/Projects`) instead of a
|
|
1707
|
+
hardcoded Windows path.
|
|
1708
|
+
|
|
1709
|
+
## 2026-10-24 — v1.3.2
|
|
1710
|
+
|
|
1711
|
+
- A steer message is now accepted by DSH: the bridge sends a full message with
|
|
1712
|
+
`id: randomUUID()` and `role: 'user'`. Without them every later turn failed
|
|
1713
|
+
with `event at seq N lacks an identified message` and the topic stayed dead
|
|
1714
|
+
until the session log was repaired by hand.
|
|
1715
|
+
- The session log backup lives next to the session file.
|
|
1716
|
+
|
|
1717
|
+
## 2026-10-24 — v1.3.1
|
|
1718
|
+
|
|
1719
|
+
- A steer message is no longer lost when a turn ends before the plugin picks
|
|
1720
|
+
the job up. If the job is still unclaimed 90 seconds after the turn ended,
|
|
1721
|
+
the bridge runs it as a separate turn. Previously it expired after 10 minutes
|
|
1722
|
+
and the user got nothing.
|
|
1723
|
+
- While the turn is running the bridge rechecks once a minute and does not post
|
|
1724
|
+
extra messages.
|
|
1725
|
+
|
|
1726
|
+
## 2026-10-24 — v1.3.0
|
|
1727
|
+
|
|
1728
|
+
- Steer while a turn is running: a message sent mid-turn is handed to the live
|
|
1729
|
+
agent on its next step (`dsh-steer-inbox`) instead of waiting in the queue.
|
|
1730
|
+
The agent posts a short line in the topic saying what it is doing now and
|
|
1731
|
+
where the addition went.
|
|
1732
|
+
- `say.mjs` sends that line; with `--steer <id>` it takes chat and topic from
|
|
1733
|
+
the job and marks it so the bridge does not duplicate the confirmation.
|
|
1734
|
+
- If the mark is missing after 90 seconds the bridge posts one neutral line in
|
|
1735
|
+
the topic language (ru/en/zh), so silence never happens.
|
|
1736
|
+
- Without the plugin in the profile the bridge does not write the job (it would
|
|
1737
|
+
expire) and behaves as before: the message joins the queue. Guarded by
|
|
1738
|
+
`steerAvailable()`. The plugin ships in the repo at `plugin/steer-inbox`.
|
|
1739
|
+
- Tests: 12, three of them new (steer job write).
|
|
1740
|
+
|
|
1741
|
+
## 2026-10-24 — v1.2.10
|
|
1742
|
+
|
|
1743
|
+
- Informational commands no longer wait for a turn: `/plugins`, `/models`,
|
|
1744
|
+
`/sessions`, `/skills`, `/prices`, plus `/soul` and `/lang` without arguments,
|
|
1745
|
+
answer immediately during a long turn. Previously they queued and arrived
|
|
1746
|
+
twenty minutes later, which looked like a failure.
|
|
1747
|
+
- `/plugins add|remove|disable|enable` stay queued: they change the profile and
|
|
1748
|
+
must not run concurrently with a turn.
|
|
1749
|
+
- The rule lives in `immediate.mjs` and is covered by `npm test` (9 tests).
|
|
1750
|
+
|
|
1751
|
+
## 2026-10-24 — v1.2.9
|
|
1752
|
+
|
|
1753
|
+
- Fixed a race when removing the queue notice. If a turn started exactly while
|
|
1754
|
+
"⏳ Previous turn is running…" was being sent, the notice stayed until the
|
|
1755
|
+
turn ended. The staleness rule moved to `queue-notice.mjs` and has a test
|
|
1756
|
+
(`npm test`, 4 cases).
|
|
1757
|
+
- `queue-notice.mjs` added to the npm package files.
|
|
1758
|
+
|
|
1759
|
+
## 2026-10-24 — v1.2.8
|
|
1760
|
+
|
|
1761
|
+
- "⏳ Previous turn is running…" no longer clutters the chat. A topic now gets
|
|
1762
|
+
one such message instead of one per queued message, and the bridge deletes it
|
|
1763
|
+
once a turn picks up the user's message.
|
|
1764
|
+
- `send()` returns the sent message id, which is required to remove the notice.
|
|
1765
|
+
- If deletion fails (no rights in a group) it is logged and does not affect the
|
|
1766
|
+
turn.
|
|
1767
|
+
|
|
1768
|
+
## 2026-10-24 — v1.2.7
|
|
1769
|
+
|
|
1770
|
+
- Localization extended to automatic messages: restart confirmation, the queue
|
|
1771
|
+
notice, the cache line and "…and N more" in progress, new-topic log,
|
|
1772
|
+
"Transcribing…" and the unknown-command hint now come from i18n (ru/en/zh).
|
|
1773
|
+
- Removed the duplicate Russian `CONTROL_COMMAND_HINT`: the hint is built from
|
|
1774
|
+
`help.body` in the topic language. Dead import in `bridge.mjs` dropped.
|
|
1775
|
+
- Dictionary audit: 53 keys × 3 languages with no missing keys or placeholder
|
|
1776
|
+
mismatches; the command menu holds the same 20 commands in all languages.
|
|
1777
|
+
- Long reports (`/status`, `/sessions`, `/models`, `/plugins`, `/prices`) are
|
|
1778
|
+
still Russian — a planned next step.
|
|
1779
|
+
|
|
1780
|
+
## 2026-10-24 — documentation
|
|
1781
|
+
|
|
1782
|
+
- **docs/TELEGRAM-SETUP.md**: what must be enabled in Telegram for the bridge
|
|
1783
|
+
to behave as designed — privacy mode, topics, bot rights, `allowedUserIds`,
|
|
1784
|
+
a single instance, a one-minute check, and what does not need configuring.
|
|
1785
|
+
- README: short "Telegram bot setup" block linking to the document.
|
|
1786
|
+
|
|
1787
|
+
## 2026-10-24 — v1.2.6
|
|
1788
|
+
|
|
1789
|
+
- The progress message no longer has "Stop" and "Logs" buttons: `/stop` and
|
|
1790
|
+
`/logs` work during a turn now, so buttons would only duplicate them. The
|
|
1791
|
+
"Retry", "Doctor" and permission-confirmation buttons remain.
|
|
1792
|
+
- Handlers for the old buttons are kept so pressing a button in an already sent
|
|
1793
|
+
message does not fail silently.
|
|
1794
|
+
|
|
1795
|
+
## 2026-10-24 — v1.2.5
|
|
1796
|
+
|
|
1797
|
+
- No more silence after `/restart confirm`: the old process wrote "Restarting
|
|
1798
|
+
the bridge…", exited and said nothing. It now leaves `restart-notice.json`
|
|
1799
|
+
with chat and topic, and the new process replies there first with
|
|
1800
|
+
"✅ Bridge restarted — online (pid N)". If the replacement never starts there
|
|
1801
|
+
is no reply, which is the honest signal.
|
|
1802
|
+
- The notice is deleted right after sending and ignored if older than 10 minutes.
|
|
1803
|
+
|
|
1804
|
+
## 2026-10-24 — v1.2.3
|
|
1805
|
+
|
|
1806
|
+
- `/stop` now stops a turn instead of waiting for it. Commands used the topic
|
|
1807
|
+
queue, so `/stop` sent during a 26-minute turn reached the handler when there
|
|
1808
|
+
was nothing left to stop. Six commands — `stop`, `logs`, `status`, `help`,
|
|
1809
|
+
`doctor`, `restart` (including glued forms) — run off-queue and do not get a
|
|
1810
|
+
"message queued" notice.
|
|
1811
|
+
- Commands that change session state (`/new`, `/model`, `/lang`) still go
|
|
1812
|
+
through the queue.
|
|
1813
|
+
|
|
1814
|
+
## 2026-10-24 — v1.2.2
|
|
1815
|
+
|
|
1816
|
+
- The queue no longer looks like a hang: if a turn is already running, the
|
|
1817
|
+
notice states how long ("running for 24 min") and mentions `/stop`. It now
|
|
1818
|
+
arrives after 30 s instead of 45 s.
|
|
1819
|
+
- Hard turn limit raised from none to 40 minutes (`turnTimeoutMs`), so a hung
|
|
1820
|
+
child process cannot hold a topic forever; the 2-minute inactivity watchdog
|
|
1821
|
+
remains.
|
|
1822
|
+
|
|
1823
|
+
## 2026-10-24 — v1.2.1
|
|
1824
|
+
|
|
1825
|
+
- Menu and `/plugins` changes are now in the repository. Edits that merged
|
|
1826
|
+
`/plugin` into `/plugins` existed only in the working directory
|
|
1827
|
+
`~/.dsh/tg-bridge`, while npm still shipped the old version. `control.mjs`
|
|
1828
|
+
and `bot-menu.mjs` were moved into the repo: 21 commands in the dispatcher
|
|
1829
|
+
(alias `/plugin`), 20 in the menu, `/plugins` described as
|
|
1830
|
+
"List and manage: add/remove/disable/enable".
|
|
1831
|
+
- `setup` code sync can no longer revert these changes: the repository is the
|
|
1832
|
+
source of truth.
|
|
1833
|
+
|
|
1834
|
+
## 2026-10-24 — v1.2.0
|
|
1835
|
+
|
|
1836
|
+
- One-command install: `dsh-tg init --token <t> --user <id>` writes the token to
|
|
1837
|
+
`~/.dsh/.credentials.yaml` (`refs.DSH_TELEGRAM_BOT_TOKEN`), creates
|
|
1838
|
+
`config.json` with the user id and working directory, and checks the
|
|
1839
|
+
`headless` profile. Also `--cwd`, `--voice`, `--dry-run`. Other sections of
|
|
1840
|
+
credentials are untouched and `config.json` is never overwritten.
|
|
1841
|
+
- Token lookup accepts any `DSH_TELEGRAM_BOT_TOKEN*` name and the environment;
|
|
1842
|
+
a fresh install no longer fails with "token not found" right after `init`.
|
|
1843
|
+
- `cli.mjs` copies the code to `~/.dsh/tg-bridge` from any clone location, so
|
|
1844
|
+
`setup` no longer answers "bridge not found".
|
|
1845
|
+
- Autostart in `install.sh`: `launchd` (macOS) and `systemd --user` (Linux) with
|
|
1846
|
+
`--no-autostart`; Windows keeps the `DSH-TG-Bridge` task and `DSH-Bridge-Kick`.
|
|
1847
|
+
- Error codes `INSUFFICIENT_QUOTA`, `TG_CONFLICT`, `MISSING_CREDENTIAL`,
|
|
1848
|
+
`NO_DSH_CLI`, `NETWORK`, `SANDBOX_DENY`, `UNKNOWN_MODEL`, `EMPTY_RESPONSE`,
|
|
1849
|
+
`TURN_FAILED`, each with a single action at the end of the failure message.
|
|
1850
|
+
- `/plugins` is a single command: `add/remove/disable/enable` are forwarded to
|
|
1851
|
+
`/plugin`, which was removed from the Telegram menu (20 commands per language).
|
|
1852
|
+
- `/lang` added to `CONTROL_COMMANDS` (it was reported as unknown) and to the
|
|
1853
|
+
command hint.
|
|
1854
|
+
- `bridgePids` compares the full script path, so a second installation with its
|
|
1855
|
+
own `DSH_HOME` and bot is not treated as a duplicate bridge and killed.
|
|
1856
|
+
`DSH_HOME`/`DSH_TG_HOME` are honoured in `bridge.mjs`, `setup.mjs` and
|
|
1857
|
+
`bot-menu.mjs`.
|
|
1858
|
+
|
|
1859
|
+
## 2026-10-24 — v1.1.0
|
|
1860
|
+
|
|
1861
|
+
- Three languages: `i18n.mjs` (en/ru/zh), `t()`, normalization of `zh-hans → zh`.
|
|
1862
|
+
- Menu in three languages: `setMyCommands` for default, `en` and `zh` (Telegram
|
|
1863
|
+
rejects `zh-hans`).
|
|
1864
|
+
- `/lang en|ru|zh`: language is stored per topic; a new user gets one from
|
|
1865
|
+
`language_code`, anything outside ru/zh falls back to `en`.
|
|
1866
|
+
- Localized: start message, progress headers, turn failure, `/cd`, `/new`,
|
|
1867
|
+
`/stop`, unknown-command reply and the Stop/Logs, Retry/Doctor buttons.
|
|
1868
|
+
- An unknown command no longer starts the model — it returns a hint.
|
|
1869
|
+
- Watchdog: 25 s pause and pid recheck before alerting; `requireDesktop: false`
|
|
1870
|
+
and the alert mentions the bridge, not the desktop app.
|
|
1871
|
+
- Fixed the i18n import in `bridge.mjs` (`resolveLang is not defined` left the
|
|
1872
|
+
message stuck).
|
|
1873
|
+
|
|
1874
|
+
## 2026-10-23
|
|
1875
|
+
|
|
1876
|
+
- Timeouts reworked: the hard ceiling is gone (`turnTimeoutMs: 0`), silence no
|
|
1877
|
+
longer kills a turn, any stdout/stderr byte extends the window, and a
|
|
1878
|
+
heartbeat refreshes the status every 2 idle minutes.
|
|
1879
|
+
- Fallback chain extended to 7 models (opus-5-5, glm-5.3-flash:free,
|
|
1880
|
+
qwen3.6-35b-a3b, free-mimo, deepseek-v4.1-flash:free, opus-4-7, sonnet-4-7
|
|
1881
|
+
across the configured providers).
|
|
1882
|
+
- New switch triggers `AUTH`, `403`, `insufficient_user_quota`, `UNKNOWN_MODEL`,
|
|
1883
|
+
`MISSING_CREDENTIAL`, with a chat message when falling back to a free model.
|
|
1884
|
+
- Extra providers added to the headless profile; keys live in
|
|
1885
|
+
`.credentials.yaml` and are passed to the CLI child environment.
|
|
1886
|
+
Subagents run on a cheaper model than the topic.
|
|
1887
|
+
- Commands come from the single `CONTROL_COMMANDS` list; `/cd`, `/prices` and
|
|
1888
|
+
`/seed` were missing from the old hardcoded whitelist and were sent to the
|
|
1889
|
+
model as plain text.
|
|
1890
|
+
- `restart.lock` prevents `setup` and the kick from starting two pollers at once
|
|
1891
|
+
(the cause of 409s).
|
|
1892
|
+
- On a "was recorded in … not …" session error the bridge resets the session and
|
|
1893
|
+
starts a new one.
|
|
1894
|
+
- Docs: UX-ANALYSIS.md and ROADMAP.md updated.
|
|
1895
|
+
|
|
1896
|
+
## 2026-10-22
|
|
1897
|
+
|
|
1898
|
+
- Turn journal in `pending/` with ack after send and replay on start.
|
|
1899
|
+
- Two-phase restart: `restart.pending` → exit(75) → supervisor; one-minute
|
|
1900
|
+
`DSH-Bridge-Kick`.
|
|
1901
|
+
- `/cd` binds a topic to a project; `setup.mjs` finds bridges by pid file (an
|
|
1902
|
+
elevated process has an empty cmdline).
|
|
1903
|
+
- Files: `/send` (sendDocument) and incoming documents saved to `inbox/`.
|
|
1904
|
+
- IPv4 forced (`dns` + `net`), polling backoff, error codes `TG_NET`/`TG_POLL`.
|
|
1905
|
+
- Sandbox: `workspace-write` with an explicit `permission` preset (the service id
|
|
1906
|
+
is `permission`, not `permission-presets`).
|
|
1907
|
+
- Progress: single status message, step list, cache stats in the final message.
|
|
1908
|
+
- Vision: gemini declares `input: [text, image]`; canary test with "red, 42".
|
|
1909
|
+
- Config and project backups to private GitHub repositories.
|