dsh-tg-bridge 1.19.8 → 1.19.9

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/README.md CHANGED
@@ -69,7 +69,10 @@ can be listed next to them:
69
69
 
70
70
  One command: your bot token and your numeric id. Nothing to edit by hand.
71
71
 
72
- **Any platform with Node.js ≥ 24**
72
+ **Windows, macOS or Linux — Node.js 24 or newer.** `init` and the bridge run
73
+ anywhere; `setup` (stop, autostart, restart) is **Windows-only** today, so on
74
+ macOS and Linux use `sh install.sh`, which registers `launchd` or `systemd --user`.
75
+ `node setup.mjs --check` reports state on every platform.
73
76
 
74
77
  ```bash
75
78
  npx dsh-tg-bridge@latest init --token 123456789:AA... --user 123456789
@@ -131,10 +134,12 @@ bridge restart, so after adding commands run `dsh-tg menu`. The full settings
131
134
  table, permissions, checks and common errors are in
132
135
  [docs/TELEGRAM-SETUP.md](https://github.com/aleksvega/dsh-tg-bridge/blob/master/docs/TELEGRAM-SETUP.md).
133
136
 
134
- **Autostart** is installed by the setup: `launchd` on macOS, `systemd --user` on
135
- Linux. On Windows `setup` registers the `DSH-TG-Bridge` task, which runs the
136
- guarded supervisor (the same launcher on logon and every five minutes) so a
137
- crashed bridge comes back without a second poller.
137
+ **Autostart** has two routes. `sh install.sh` writes `launchd` on macOS and
138
+ `systemd --user` on Linux; `dsh-tg setup` registers the `DSH-TG-Bridge` task on
139
+ Windows, which runs the guarded supervisor (the same launcher on logon and every
140
+ five minutes) so a crashed bridge comes back without a second poller. On macOS
141
+ and Linux `setup` declines and names `install.sh`, because it stops the old
142
+ bridge with `taskkill` and registers autostart through `schtasks`.
138
143
 
139
144
  **Manual install** (if you want full control):
140
145
 
package/cli.mjs CHANGED
@@ -176,16 +176,21 @@ function writeConfig({ userId, cwd, voice }, dryRun) {
176
176
  console.log(` config.json: создан (id ${userId}, voice ${voice ? 'вкл' : 'выкл'})`);
177
177
  }
178
178
 
179
- /** A missing headless profile cannot be invented: DSH ships its bundles. */
179
+ /**
180
+ * A missing headless profile cannot be invented: DSH ships its bundles. The
181
+ * message is a blocker, not a hint — with no profile the bridge answers every
182
+ * message with an error — so it says that, names the one command that fixes it,
183
+ * and init reports the run as failed instead of "дальше: setup".
184
+ */
180
185
  function checkProfile() {
181
186
  const profile = join(DSH_HOME, 'profiles', 'headless');
182
187
  if (existsSync(profile)) {
183
188
  console.log(' профиль headless: на месте');
184
189
  return true;
185
190
  }
186
- console.log(' профиль headless: НЕ НАЙДЕН');
187
- console.log(' создай его один раз в приложении DSH: Settings → Profiles → headless,');
188
- console.log(' либо скопируй шаблон из сборки: dsh --profile headless --dump-default-config');
191
+ console.log(' профиль headless: НЕ НАЙДЕН — без него бот не ответит ни на одно сообщение');
192
+ console.log(' создай его один раз: dsh --profile headless --dump-default-config');
193
+ console.log(' затем повтори init: npx dsh-tg-bridge@latest init --token … --user …');
189
194
  return false;
190
195
  }
191
196
 
package/control.mjs CHANGED
@@ -642,7 +642,9 @@ function agentsetKeyboard(set, lang, boundId) {
642
642
  function taskKeyboard(goal) {
643
643
  if (!goal || goal.done) return [];
644
644
  const rows = [];
645
- for (let i = 0; i + 2 < Math.min(goal.tasks.length, 90); i += 3) {
645
+ // `i + 2 < length` drew no rows at all for a goal with one or two tasks —
646
+ // exactly the goals a person has when they want to tick the first one.
647
+ for (let i = 0; i < Math.min(goal.tasks.length, 90); i += 3) {
646
648
  rows.push(goal.tasks.slice(i, i + 3).map((task, k) => {
647
649
  const n = i + k + 1;
648
650
  return { text: `${task.done ? '✅' : '⬜'} ${n}`, data: `t:${n}` };
@@ -699,7 +701,6 @@ export const CONTROL_COMMANDS = [
699
701
  * can mistype; a name that is not documented is a name nobody has to remember.
700
702
  */
701
703
  export const COMMAND_ALIASES = {
702
- tasks: 'task',
703
704
  models: 'model',
704
705
  plugin: 'plugins',
705
706
  agentset: 'crew',
@@ -1448,8 +1449,19 @@ export async function handleControl(ctx) {
1448
1449
 
1449
1450
  case '/plugin': {
1450
1451
  const [action, ...rest] = (arg || '').split(/\s+/);
1451
- const target = (rest[0] === 'headless' || rest[0] === 'desktop') && rest.length > 1 ? rest.shift() : 'desktop';
1452
- const value = rest.join(' ').trim();
1452
+ // The profile used to be the literal 'desktop' no matter which topic asked
1453
+ // and no matter which profile the install had — on a fresh machine the only
1454
+ // in-chat install therefore wrote into a profile that does not exist. The
1455
+ // topic's own profile is the default now, and an explicit `headless` or
1456
+ // `desktop` word overrides it: `/plugin add x`, `/plugin add headless x`
1457
+ // and `/plugin add x headless` all mean the same thing, because the help
1458
+ // text says "add headless or desktop at the end".
1459
+ const profileWord = (word) => word === 'headless' || word === 'desktop';
1460
+ const words = rest.filter(Boolean).slice();
1461
+ let target = activeProfile;
1462
+ if (words.length > 1 && profileWord(words[0])) target = words.shift();
1463
+ else if (words.length > 1 && profileWord(words[words.length - 1])) target = words.pop();
1464
+ const value = words.join(' ').trim();
1453
1465
  if (action === 'search' || action === 'find') {
1454
1466
  // The marketplace, from the chat. A word is optional: with none, the
1455
1467
  // registry lists what DSH plugins exist at all — the question the
@@ -1850,12 +1862,17 @@ export async function handleControl(ctx) {
1850
1862
  case '/tasks': {
1851
1863
  // The list is the control: a tap marks a task done, and the card is
1852
1864
  // redrawn in place. `/task` keeps the typed form for adding.
1865
+ //
1866
+ // This case used to be unreachable: `/tasks` was an alias of `/task`, so
1867
+ // the advertised tap card never appeared and `/tasks 1` — the obvious way
1868
+ // to mean "task 1" — silently added a task called "1".
1853
1869
  const L = lang;
1854
1870
  const current = goalOf(state, key);
1855
1871
  if (!current) { say(t(L, 'task.none')); return true; }
1856
1872
  const rows = taskKeyboard(current);
1857
- if (rows.length === 0) { say(goalView(current, L)); return true; }
1858
- await reply(goalView(current, L), { keyboard: rows });
1873
+ const hint = String(arg || '').trim() ? `\n${t(L, 'task.tasksHint')}` : '';
1874
+ if (rows.length === 0) { say(`${taskView(current, L)}${hint}`); return true; }
1875
+ await reply(`${taskView(current, L)}${hint}`, { keyboard: rows });
1859
1876
  return true;
1860
1877
  }
1861
1878
 
package/help-explain.mjs CHANGED
@@ -10,7 +10,7 @@ import { t } from './i18n.mjs';
10
10
  /** The /help group each command is listed under. */
11
11
  const SECTION = {
12
12
  cd: 'Work', new: 'Work', stop: 'Work', send: 'Work', seed: 'Work',
13
- goal: 'Goals', task: 'Goals',
13
+ goal: 'Goals', task: 'Goals', tasks: 'Goals',
14
14
  status: 'Sessions', sessions: 'Sessions', resume: 'Sessions', rewind: 'Sessions', fork: 'Sessions',
15
15
  branches: 'Sessions', profile: 'Sessions',
16
16
  agents: 'Agents', model: 'Models', prices: 'Models', thoughts: 'Models',
package/i18n/en.mjs CHANGED
@@ -16,7 +16,7 @@ export default {
16
16
  'settings.state.on': 'on',
17
17
  'settings.state.off': 'off',
18
18
  'settings.state.auto': 'auto',
19
- 'help.body': "Write the task as plain text. Each forum topic is its own session:\n\nWork: /cd \u003cproject\u003e · /new · /stop · /send \u003cfile\u003e · /seed \u003ctext\u003e\nGoals: /goal · /task [\u003ctext\u003e|done N]\nSessions: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003cname\u003e\nAgents: /agents · /agents set model|depth|filter … @tool\nModels: /model · /model \u003cid\u003e · /prices · /thoughts\nTuning: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\nExtensions: /skills · /plugins [add|remove] · /soul\nVersions: /version · /update [confirm|on|off|auto] · /subscribe on|off\nOther: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\nPanels: /menu — the same commands as buttons, page by page. /menu on puts four keys under the message field.",
19
+ 'help.body': "Write the task as plain text. Each forum topic is its own session:\n\nWork: /cd \u003cproject\u003e · /new · /stop · /send \u003cfile\u003e · /seed \u003ctext\u003e\nGoals: /goal · /task [\u003ctext\u003e|done N] · /tasks (tap to tick)\nSessions: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003cname\u003e\nAgents: /agents · /agents set model|depth|filter … @tool\nModels: /model · /model \u003cid\u003e · /prices · /thoughts\nTuning: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\nExtensions: /skills · /plugins [add|remove] · /soul\nVersions: /version · /update [confirm|on|off|auto] · /subscribe on|off\nOther: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\nPanels: /menu — the same commands as buttons, page by page. /menu on puts four keys under the message field.",
20
20
  'ctrl.help.about.status': "Where this topic stands: session, model, effort, running turns. Read-only.",
21
21
  'ctrl.help.about.new': "Starts a fresh session in this topic. The old one stays on disk and can be resumed with /resume.",
22
22
  'ctrl.help.about.cd': "Binds the topic to a project folder: /cd my-app. Every turn in the topic then runs there.",
@@ -24,7 +24,8 @@ export default {
24
24
  'ctrl.help.about.send': "Sends a file from the project into the chat: /send report.pdf.",
25
25
  'ctrl.help.about.seed': "Puts the first text into an empty topic and pins it, for topics created before the bot joined.",
26
26
  'ctrl.help.about.goal': "The goal of this topic in one line: /goal <text>, /goal done. Tasks live under it.",
27
- 'ctrl.help.about.task': "One command for the plan of this topic: /task <text> adds, /task done 2 closes one, /task rm 2 removes one, bare /task shows the list as buttons.",
28
27
  'ctrl.help.about.sessions': "The sessions of this topic, newest first. Plain text continues the latest one.",
28
+ 'ctrl.help.about.task': "The checklist of this topic: /task <text> adds, /task done 2 closes one, /task rm 2 removes one, bare /task prints the list. /tasks draws the same list as buttons — one tap ticks a task.",
29
29
  'ctrl.help.about.sessions': "The sessions of this topic, newest first. Plain text continues the latest one.",
30
+ 'ctrl.help.about.tasks': "\"The checklist with a button per task: one tap marks it done or undone, and the card is redrawn in place.\"",
30
31
  'ctrl.help.about.resume': "Continues an older session: /resume <id>. The id comes from /sessions.",
31
32
  'ctrl.help.about.rewind': "Goes back n turns and lets you rephrase: /rewind 2. Shows a card of what will go and cuts only on the button. /rewind undo puts it back.",
32
33
  'ctrl.help.about.fork': "Branches this topic the way the desktop app does: /fork copies the whole session as a new one and moves this topic onto the copy, /fork 2 copies it as it stood two turns back. Nothing is cut — the session you were in stays exactly as it was, and /branches switches back.",
@@ -466,7 +467,8 @@ export default {
466
467
  'task.removed': 'Task {n} removed.',
467
468
  'task.bad': 'No task {n}.',
468
469
  'task.empty': 'No tasks yet — /task <text>.',
469
- 'task.listTitle': 'Tasks ({done}/{total}):',
470
+ 'task.listTitle': 'Tasks ({done}/{total}):',
471
+ 'task.tasksHint': 'Tap a number to tick it; /task done|rm|edit <n> changes the list.',
470
472
  'task.tapHint': 'Tap a number to mark it done, tap it again to undo.',
471
473
  'task.usage': 'Usage: /task <text> | /task done <n> | /task edit <n> <text> | /task rm <n>',
472
474
  'status.goal': 'Goal: {done}/{total} · {text}',
package/i18n/ru.mjs CHANGED
@@ -16,7 +16,7 @@ export default {
16
16
  'settings.state.on': 'вкл',
17
17
  'settings.state.off': 'выкл',
18
18
  'settings.state.auto': 'авто',
19
- 'help.body': "Задачу можно писать обычным текстом. Каждая ветка форума — отдельная сессия:\n\nРабота: /cd \u003cпроект\u003e · /new · /stop · /send \u003cфайл\u003e · /seed \u003cтекст\u003e\nЦели: /goal · /task [\u003ctext\u003e|done N]\nСессии: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003cимя\u003e\nАгенты: /agents · /agents set model|depth|filter … @tool\nМодели: /model · /model \u003cid\u003e · /prices · /thoughts\nНастройка: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\nРасширения: /skills · /plugins [add|remove] · /soul\nВерсии: /version · /update [confirm|on|off|auto] · /subscribe on|off\nПрочее: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\nПанели: /menu — те же команды кнопками, по страницам. /menu on добавляет четыре клавиши под полем ввода.",
19
+ 'help.body': "Задачу можно писать обычным текстом. Каждая ветка форума — отдельная сессия:\n\nРабота: /cd \u003cпроект\u003e · /new · /stop · /send \u003cфайл\u003e · /seed \u003cтекст\u003e\nЦели: /goal · /task [\u003ctext\u003e|done N] · /tasks (нажать, чтобы отметить)\nСессии: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003cимя\u003e\nАгенты: /agents · /agents set model|depth|filter … @tool\nМодели: /model · /model \u003cid\u003e · /prices · /thoughts\nНастройка: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\nРасширения: /skills · /plugins [add|remove] · /soul\nВерсии: /version · /update [confirm|on|off|auto] · /subscribe on|off\nПрочее: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\nПанели: /menu — те же команды кнопками, по страницам. /menu on добавляет четыре клавиши под полем ввода.",
20
20
  'ctrl.help.about.status': "Где тема сейчас: сессия, модель, усилие, идущие ходы. Ничего не меняет.",
21
21
  'ctrl.help.about.new': "Начинает новую сессию в теме. Старая остаётся на диске, в неё можно вернуться: /resume.",
22
22
  'ctrl.help.about.cd': "Привязывает тему к папке проекта: /cd my-app. Ходы темы идут уже там.",
@@ -24,7 +24,8 @@ export default {
24
24
  'ctrl.help.about.send': "Присылает файл из проекта в чат: /send report.pdf.",
25
25
  'ctrl.help.about.seed': "Кладёт первый текст в пустую тему и закрепляет — для тем, созданных до бота.",
26
26
  'ctrl.help.about.goal': "Цель темы одной строкой: /goal <текст>, /goal done. Задачи живут под ней.",
27
- 'ctrl.help.about.task': "Одна команда для плана этой темы: /task <текст> добавляет, /task done 2 закрывает, /task rm 2 убирает, голый /task показывает список кнопками.",
28
27
  'ctrl.help.about.sessions': "Сессии темы, новые сверху. Обычный текст продолжает последнюю.",
28
+ 'ctrl.help.about.task': "Список задач этой темы: /task <текст> добавляет, /task done 2 закрывает, /task rm 2 убирает, голый /task печатает список. /tasks рисует тот же список кнопками — одно нажатие отмечает задачу.",
29
29
  'ctrl.help.about.sessions': "Сессии темы, новые сверху. Обычный текст продолжает последнюю.",
30
+ 'ctrl.help.about.tasks': "\"Список задач кнопками: одно нажатие отмечает задачу выполненной или снимает отметку, карточка перерисовывается на месте.\"",
30
31
  'ctrl.help.about.resume': "Продолжает старую сессию: /resume <id>. Идентификатор берётся из /sessions.",
31
32
  'ctrl.help.about.rewind': "Откатывает на n ходов и даёт сформулировать иначе: /rewind 2. Показывает карточку того, что уйдёт, и режет только по кнопке. /rewind undo возвращает.",
32
33
  'ctrl.help.about.fork': "Ветвит тему так же, как десктоп: /fork копирует сессию целиком в новую и переводит тему на копию, /fork 2 — копия в том виде, каким она была два хода назад. Ничего не отрезается: прежняя сессия остаётся как была, а переключиться обратно — /branches.",
@@ -466,7 +467,8 @@ export default {
466
467
  'task.removed': 'Задача {n} удалена.',
467
468
  'task.bad': 'Нет задачи {n}.',
468
469
  'task.empty': 'Задач ещё нет — /task <текст>.',
469
- 'task.listTitle': 'Задачи ({done}/{total}):',
470
+ 'task.listTitle': 'Задачи ({done}/{total}):',
471
+ 'task.tasksHint': 'Нажмите номер, чтобы отметить; /task done|rm|edit <n> меняет список.',
470
472
  'task.tapHint': 'Нажми номер — задача закрыта, нажми ещё раз — вернуть.',
471
473
  'task.usage': 'Использование: /task <текст> | /task done <n> | /task edit <n> <текст> | /task rm <n>',
472
474
  'status.goal': 'Цель: {done}/{total} · {text}',
package/i18n/zh.mjs CHANGED
@@ -16,7 +16,7 @@ export default {
16
16
  'settings.state.on': '开',
17
17
  'settings.state.off': '关',
18
18
  'settings.state.auto': '自动',
19
- 'help.body': "任务直接以文本发送。每个论坛话题是一个独立会话:\n\n工作: /cd \u003c项目\u003e · /new · /stop · /send \u003c文件\u003e · /seed \u003c文本\u003e\n目标: /goal · /task [\u003ctext\u003e|done N]\n会话: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003c名称\u003e\n智能体: /agents · /agents set model|depth|filter … @tool\n模型: /model · /model \u003cid\u003e · /prices · /thoughts\n调优: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\n扩展: /skills · /plugins [add|remove] · /soul\n版本: /version · /update [confirm|on|off|auto] · /subscribe on|off\n其他: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\n面板: /menu — 同样的命令做成按钮,分页浏览。/menu on 在输入框下方加四个键。",
19
+ 'help.body': "任务直接以文本发送。每个论坛话题是一个独立会话:\n\n工作: /cd \u003c项目\u003e · /new · /stop · /send \u003c文件\u003e · /seed \u003c文本\u003e\n目标: /goal · /task [\u003ctext\u003e|done N] · /tasks(点击勾选)\n会话: /status · /sessions [n] · /resume \u003cid\u003e · /rewind [n] · /fork [n] · /branches · /new · /profile \u003c名称\u003e\n智能体: /agents · /agents set model|depth|filter … @tool\n模型: /model · /model \u003cid\u003e · /prices · /thoughts\n调优: /effort · /permissions · /preset · /crew [use|show|off|new] · /plan · /jobs · /remind\n扩展: /skills · /plugins [add|remove] · /soul\n版本: /version · /update [confirm|on|off|auto] · /subscribe on|off\n其他: /settings · /lang · /reasoning · /doctor · /logs [errors|N] · /app · /restart · /help\n面板: /menu — 同样的命令做成按钮,分页浏览。/menu on 在输入框下方加四个键。",
20
20
  'ctrl.help.about.status': "本话题的状态:会话、模型、力度、进行中的轮次。不改变任何东西。",
21
21
  'ctrl.help.about.new': "在本话题开始新会话。旧的留在磁盘上,可用 /resume 回来。",
22
22
  'ctrl.help.about.cd': "把话题绑定到项目文件夹:/cd my-app。之后本话题的轮次都在那里执行。",
@@ -24,7 +24,8 @@ export default {
24
24
  'ctrl.help.about.send': "把项目中的文件发到聊天:/send report.pdf。",
25
25
  'ctrl.help.about.seed': "为空话题写入首段文本并置顶,适用于机器人加入前创建的话题。",
26
26
  'ctrl.help.about.goal': "用一行说明本话题的目标:/goal <文本>、/goal done。任务在其下。",
27
- 'ctrl.help.about.task': "本话题计划的一条命令:/task <文本> 添加,/task done 2 完成,/task rm 2 删除,直接 /task 用按钮显示清单。",
28
27
  'ctrl.help.about.sessions': "本话题的会话,最新的在前。直接发文字会延续最近的会话。",
28
+ 'ctrl.help.about.task': "本话题的任务清单:/task <文本> 添加,/task done 2 完成,/task rm 2 删除,直接 /task 打印清单。/tasks 用按钮画出同一份清单,点击即可勾选。",
29
29
  'ctrl.help.about.sessions': "本话题的会话,最新的在前。直接发文字会延续最近的会话。",
30
+ 'ctrl.help.about.tasks': "\"带按钮的任务清单:点一下即完成或取消完成,卡片原地重绘。\"",
30
31
  'ctrl.help.about.resume': "继续较早的会话:/resume <id>。编号来自 /sessions。",
31
32
  'ctrl.help.about.rewind': "回退 n 轮并换种说法:/rewind 2。先显示将移除内容的卡片,只有按按钮才裁切。/rewind undo 可恢复。",
32
33
  'ctrl.help.about.fork': "像桌面版一样分叉本话题:/fork 把整个会话复制成新会话并把本话题切到副本,/fork 2 复制两轮前的样子。不会切断任何东西:原来的会话保持原样,用 /branches 切回去。",
@@ -466,7 +467,8 @@ export default {
466
467
  'task.removed': '已删除任务 {n}。',
467
468
  'task.bad': '没有任务 {n}。',
468
469
  'task.empty': '还没有任务——/task <文本>。',
469
- 'task.listTitle': '任务({done}/{total}):',
470
+ 'task.listTitle': '任务({done}/{total}):',
471
+ 'task.tasksHint': '点击编号即可勾选;用 /task done|rm|edit <n> 修改列表。',
470
472
  'task.tapHint': '点数字标记完成,再点一次撤销。',
471
473
  'task.usage': '用法:/task <文本> | /task done <n> | /task edit <n> <文本> | /task rm <n>',
472
474
  'status.goal': '目标:{done}/{total} · {text}',
package/menu-card.mjs CHANGED
@@ -17,7 +17,7 @@ import { CONTROL_COMMANDS, DOCUMENTED_COMMANDS } from './control.mjs';
17
17
  const SECTIONS = {
18
18
  work: ['cd', 'seed', 'send', 'sessions', 'rewind', 'fork', 'branches'],
19
19
  session: ['resume', 'profile', 'agents'],
20
- goals: ['goal', 'task', 'plan', 'jobs', 'remind'],
20
+ goals: ['goal', 'task', 'tasks', 'plan', 'jobs', 'remind'],
21
21
  talk: ['effort', 'reasoning', 'thoughts', 'prices', 'lang'],
22
22
  ext: ['plugins', 'skills', 'soul', 'preset', 'permissions', 'crew'],
23
23
  house: ['settings', 'update', 'version', 'subscribe', 'doctor', 'logs', 'restart', 'app', 'help'],
@@ -69,6 +69,7 @@ const LABELS = {
69
69
  agents: '/agents',
70
70
  goal: '/goal <text>',
71
71
  task: '/task <text>',
72
+ tasks: '/tasks',
72
73
  plan: '/plan',
73
74
  jobs: '/jobs',
74
75
  remind: '/remind +15m',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tg-bridge",
3
- "version": "1.19.8",
3
+ "version": "1.19.9",
4
4
  "description": "Telegram bridge for DeepSeek Harness: text, voice, photos and project-per-topic sessions without opening the desktop app",
5
5
  "type": "module",
6
6
  "main": "plugin-bridge.mjs",
package/setup.mjs CHANGED
@@ -60,6 +60,24 @@ function acquireLock(owner) {
60
60
 
61
61
  const check = new Set(process.argv.slice(2)).has('--check');
62
62
 
63
+ // This script stops the bridge with taskkill and registers autostart through
64
+ // schtasks. README used to promise "any platform with Node >= 24" and launchd /
65
+ // systemd from this command, so on macOS and Linux `npx dsh-tg-bridge@latest
66
+ // setup` died on the first step with an ENOENT nobody could read. Refusing with
67
+ // the path that does work is the honest half of that promise; `--check` still
68
+ // runs everywhere because reading state never needed Windows.
69
+ if (process.platform !== 'win32' && !check) {
70
+ console.error(
71
+ [
72
+ 'setup: autostart and restart are Windows-only in this version.',
73
+ `This machine is ${process.platform}. Use the installer, which knows this platform:`,
74
+ ' sh install.sh # launchd on macOS, systemd --user on Linux',
75
+ 'Reading the current state works everywhere: node setup.mjs --check',
76
+ ].join('\n'),
77
+ );
78
+ process.exit(2);
79
+ }
80
+
63
81
  /**
64
82
  * Every step is written to setup.log as well as stdout.
65
83
  *