dsh-tg-bridge 1.20.1 → 1.20.3

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/QUICKSTART.md CHANGED
@@ -82,7 +82,7 @@ Everything below is typed in the chat, not in a terminal.
82
82
  | Cheaper or stronger model | `/model` then pick, or `/model <id>` |
83
83
  | More freedom for commands | `/permissions` |
84
84
  | See what it is doing | it posts a live progress message; `/thoughts` toggles the 💭 notes |
85
- | A plan you can tick off | `/goal <what done looks like>`, then `/task <step>`, then bare `/task` to tap items |
85
+ | A plan you can tick off | `/goal <what done looks like>`, then `/tasks <step>`, then bare `/tasks` to tap items |
86
86
  | Stop a long answer | `/stop` |
87
87
  | Tell me about new versions, or stop | /update on / /update off — neither one installs anything |
88
88
  | Install an update, then load it | /update confirm, then /restart confirm |
package/README.md CHANGED
@@ -17,7 +17,7 @@ a bot that answers, one step at a time.
17
17
  - **Photos**: the turn's own model reads them through `read_image`, text and UI
18
18
  included; no second model is needed (a vision overlay stays opt-in).
19
19
  - **Project per topic**: `/cd my-app`, and all turns run from that directory.
20
- - **Goal and checklist per topic**: `/goal`, `/task`; both survive restarts and are prepended to every turn.
20
+ - **Goal and checklist per topic**: `/goal`, `/tasks`; both survive restarts and are prepended to every turn.
21
21
  - **Live progress**: one edited message per turn — steps, a timer and the cache hit rate, plus
22
22
  the model's reasoning in a collapsed block you can tap open. A long turn adds a second
23
23
  collapsed block with every tool call, so the whole run stays in the chat as one message.
@@ -191,7 +191,7 @@ Send the bot:
191
191
 
192
192
  ```
193
193
  Work: /cd · /new · /stop · /send · /seed
194
- Goals: /goal (plan + checklist) · /goal reopen · /task (checklist only) · /task done|rm|edit <n>
194
+ Goals: /goal (plan + checklist) · /goal reopen · /tasks (checklist only) · /tasks done|rm|edit <n>
195
195
  Sessions: /status · /sessions · /resume
196
196
  Agents: /agents · /agents <id> · /agents set model|depth|filter
197
197
  Models: /model · /model <id> · /prices
@@ -413,10 +413,10 @@ restart and a different session:
413
413
  ```
414
414
  /goal ship the release set or replace the goal
415
415
  /goal show the goal and the checklist
416
- /task write the migration add a task
417
- /task done 2 tick it off
418
- /task edit 2 shorter words rewrite it in place, same number
419
- /task rm 2 remove it
416
+ /tasks write the migration add a task
417
+ /tasks done 2 tick it off
418
+ /tasks edit 2 shorter words rewrite it in place, same number
419
+ /tasks rm 2 remove it
420
420
  /goal reopen open a closed goal again
421
421
  /goal done close the goal (all tasks done)
422
422
  /goal clear delete the goal and its tasks
package/bot-menu.mjs CHANGED
@@ -1,194 +1,91 @@
1
- // dsh-bot-menu — install the Telegram command menu that matches THIS bridge.
2
- //
3
- // Why it exists: the menu the person sees is whatever `setMyCommands` last
4
- // wrote, and another plugin (@xmanrui/dsh-im) had set a Chinese list of 31
5
- // commands that this bridge does not implement. A menu that lies is worse than
6
- // no menu, so the bridge owns its own list and re-asserts it on start.
7
- //
8
- // Usage: node bot-menu.mjs [--delete]
9
-
10
- import { readFileSync } from 'node:fs';
11
- import { join } from 'node:path';
12
- import { homedir } from 'node:os';
13
-
14
- const args = new Set(process.argv.slice(2));
15
-
16
- const token = (() => {
17
- const env = (process.env.DSH_TELEGRAM_BOT_TOKEN || '').trim();
18
- if (env) return env;
19
- try {
20
- const home = process.env.DSH_HOME || join(homedir(), '.dsh');
21
- const yaml = readFileSync(join(home, '.credentials.yaml'), 'utf8');
22
- // `dsh-tg init` writes the plain name; the DSH app adds a random suffix.
23
- const m = /^\s*(DSH_TELEGRAM_BOT_TOKEN[A-Z0-9_]*):\s*["']?([^"'\s]+)/m.exec(yaml);
24
- return m ? m[2] : '';
25
- } catch {
26
- return '';
27
- }
28
- })();
29
-
30
- /** The real, implemented surface of dsh-tg-bridge — nothing aspirational. */
31
- const COMMANDS = [
32
- { command: 'new', description: 'Новая сессия в этой теме' },
33
- { command: 'cd', description: 'Привязать тему к проекту: /cd my-app' },
34
- { command: 'status', description: 'Сессии, модель, активные ходы' },
35
- { command: 'stop', description: 'Остановить текущий ход' },
36
- { command: 'prices', description: 'Цены моделей и что стоит текущая' },
37
- { command: 'send', description: 'Прислать файл из проекта в чат' },
38
- { command: 'seed', description: 'Засеять пустую тему текстом и закрепить' },
39
- { command: 'goal', description: 'Цель темы: /goal <текст>, /goal done' },
40
- { command: 'task', description: 'Задачи: /task <текст>, /task done <n>' },
41
- { command: 'sessions', description: 'Сессии темы — обычный текст продолжает последнюю' },
42
- { command: 'resume', description: 'Продолжить сессию: /resume <id>' },
43
- { command: 'model', description: 'Показать или сменить: /model, /model <id>' },
44
- { command: 'skills', description: 'Скиллы: список или текст одного' },
45
- { command: 'soul', description: 'Персона: показать или задать' },
46
- { command: 'plugins', description: 'Список, add, remove, disable, enable — всё здесь' },
47
- { command: 'app', description: 'Приложение DSH, не мост: /app restart confirm' },
48
- { command: 'restart', description: 'Перезапуск моста: /restart confirm' },
49
- { command: 'doctor', description: 'Диагностика: мост, сеть, диск, плагины, сессия' },
50
- { command: 'logs', description: 'Лог: /logs, /logs 100, /logs errors, /logs file' },
51
- { command: 'help', description: 'Все команды и подсказки' },
52
- { command: 'settings', description: 'Настройки кнопками, по разделам' },
53
- { command: 'menu', description: 'Панель: всё кнопками, исчезает после нажатия' },
54
- { command: 'rewind', description: 'Откатить ход и сформулировать иначе: /rewind 2' },
55
- { command: 'lang', description: 'Язык интерфейса: en, ru, zh' },
56
- { command: 'reasoning', description: 'Заметки по ходу: /reasoning on|off' },
57
- { command: 'profile', description: 'Профиль темы: /profile <имя>, /profile new' },
58
- { command: 'agents', description: 'Агенты и субагенты: кто, на какой модели, кого запускали' },
59
- { command: 'effort', description: 'Усилие рассуждения модели: /effort high' },
60
- { command: 'permissions', description: 'Права профиля: пресет песочницы и подтверждений' },
61
- { command: 'preset', description: 'Пресет агента (персона и инструменты): /preset <id>' },
62
- { command: 'plan', description: 'Режим плана: состояние и как получить план без правок' },
63
- { command: 'jobs', description: 'Что мост выполняет сейчас: ходы и очередь' },
64
- { command: 'remind', description: 'Напоминание: /remind +15m текст или 09:30 текст' },
65
- { command: 'thoughts', description: 'Рассуждения хода: текстом, файлом или выкл' },
66
- { command: 'version', description: 'Версия моста и последняя на npm' },
67
- { command: 'update', description: 'Обновить мост из npm: /update confirm' },
68
- ];
69
-
70
- /** English menu (language_code: en). Same commands, translated descriptions. */
71
- const COMMANDS_EN = [
72
- { command: 'new', description: 'New session in this topic' },
73
- { command: 'cd', description: 'Bind this topic to a project: /cd my-app' },
74
- { command: 'status', description: 'Sessions, model, active turns' },
75
- { command: 'stop', description: 'Stop the current turn' },
76
- { command: 'prices', description: 'Model prices and the cost of the current one' },
77
- { command: 'send', description: 'Send a file from the project into the chat' },
78
- { command: 'seed', description: 'Seed an empty topic with text and pin it' },
79
- { command: 'goal', description: 'Topic goal: /goal <text>, /goal done' },
80
- { command: 'task', description: 'Checklist: /task <text>, /task done <n>' },
81
- { command: 'sessions', description: 'Sessions of this topic — plain text continues the last one' },
82
- { command: 'resume', description: 'Continue a session: /resume <id>' },
83
- { command: 'model', description: 'Show or switch: /model, /model <id>' },
84
- { command: 'skills', description: 'Installed skills' },
85
- { command: 'soul', description: 'Agent persona' },
86
- { command: 'plugins', description: 'List, add, remove, disable, enable — all here' },
87
- { command: 'app', description: 'DSH desktop app (not the bridge)' },
88
- { command: 'restart', description: 'Restart the bridge: /restart confirm' },
89
- { command: 'doctor', description: 'Diagnostics: bridge, network, disk, plugins, session' },
90
- { command: 'logs', description: 'Log: /logs, /logs 100, /logs errors, /logs file' },
91
- { command: 'help', description: 'All commands and hints' },
92
- { command: 'settings', description: 'Settings as buttons, grouped by topic' },
93
- { command: 'menu', description: 'Panel: everything as buttons, gone after a press' },
94
- { command: 'rewind', description: 'Go back a turn and rephrase: /rewind 2' },
95
- { command: 'lang', description: 'Interface language: en, ru, zh' },
96
- { command: 'reasoning', description: 'Working notes: /reasoning on|off' },
97
- { command: 'profile', description: 'Topic profile: /profile <name>, /profile new' },
98
- { command: 'agents', description: 'Agents and subagents: who runs, on which model, who was spawned' },
99
- { command: 'effort', description: 'Reasoning effort: /effort high' },
100
- { command: 'permissions', description: 'Profile permissions: sandbox and approval preset' },
101
- { command: 'preset', description: 'Agent preset (persona and tools): /preset <id>' },
102
- { command: 'plan', description: 'Plan mode: state and how to ask for a plan without edits' },
103
- { command: 'jobs', description: 'What the bridge runs now: turns and queue' },
104
- { command: 'remind', description: 'Reminder: /remind +15m text or 09:30 text' },
105
- { command: 'thoughts', description: 'Reasoning of the last turn (text, file or off)' },
106
- { command: 'version', description: 'Bridge version and how updates are handled' },
107
- { command: 'update', description: 'Update and its mode: /update, /update on|off|confirm' },
108
- ];
109
-
110
- /** Chinese menu (language_code: zh-hans). */
111
- const COMMANDS_ZH = [
112
- { command: 'new', description: '在本话题开始新会话' },
113
- { command: 'cd', description: '将本话题绑定到项目:/cd my-app' },
114
- { command: 'status', description: '会话、模型、进行中的任务' },
115
- { command: 'stop', description: '停止当前任务' },
116
- { command: 'prices', description: '模型价格与当前模型花费' },
117
- { command: 'send', description: '把项目中的文件发送到聊天' },
118
- { command: 'seed', description: '用文本初始化空话题并置顶' },
119
- { command: 'goal', description: '本话题目标:/goal <文本>、/goal done' },
120
- { command: 'task', description: '任务清单:/task <文本>、/task done <n>' },
121
- { command: 'sessions', description: '本主题的会话 —— 直接发文字会延续最近一个' },
122
- { command: 'resume', description: '继续会话:/resume <id>' },
123
- { command: 'model', description: '查看或切换:/model, /model <id>' },
124
- { command: 'skills', description: '已安装的技能' },
125
- { command: 'soul', description: '代理人格设定' },
126
- { command: 'plugins', description: '列表、add、remove、disable、enable 都在这里' },
127
- { command: 'app', description: 'DSH 桌面应用(不是桥接)' },
128
- { command: 'restart', description: '重启桥接:/restart confirm' },
129
- { command: 'doctor', description: '诊断:桥接、网络、磁盘、插件、会话' },
130
- { command: 'logs', description: '日志:/logs、/logs 100、/logs errors、/logs file' },
131
- { command: 'help', description: '全部命令与提示' },
132
- { command: 'settings', description: '用按钮调设置,按主题分组' },
133
- { command: 'menu', description: '面板:全部做成按钮,按一下就消失' },
134
- { command: 'rewind', description: '回退一轮并换种说法:/rewind 2' },
135
- { command: 'lang', description: '界面语言:en、ru、zh' },
136
- { command: 'reasoning', description: '工作记录:/reasoning on|off' },
137
- { command: 'profile', description: '话题配置档:/profile <名称>,/profile new' },
138
- { command: 'agents', description: '智能体与子智能体:谁在运行、用什么模型、启动过谁' },
139
- { command: 'effort', description: '推理力度:/effort high' },
140
- { command: 'permissions', description: '配置档权限:沙箱与确认预设' },
141
- { command: 'preset', description: '智能体预设(人格与工具):/preset <id>' },
142
- { command: 'plan', description: '计划模式:状态与如何只要计划不改动' },
143
- { command: 'jobs', description: '桥接器当前在跑:轮次与队列' },
144
- { command: 'remind', description: '提醒:/remind +15m 文本 或 09:30 文本' },
145
- { command: 'thoughts', description: '本轮推理:文本、文件或关闭' },
146
- { command: 'version', description: '桥接版本与 npm 上的最新版本' },
147
- { command: 'update', description: '从 npm 更新桥接:/update confirm' },
148
- ];
149
-
150
- async function api(method, body) {
151
- const res = await fetch(`https://api.telegram.org/bot${token}/${method}`, {
152
- method: 'POST',
153
- headers: { 'content-type': 'application/json' },
154
- body: JSON.stringify(body ?? {}),
155
- signal: AbortSignal.timeout(20000),
156
- });
157
- const json = await res.json().catch(() => ({}));
158
- if (!json.ok) throw new Error(`${method}: ${json.description || res.status}`);
159
- return json.result;
160
- }
161
-
162
- async function main() {
163
- if (!token) {
164
- console.error('bot token not found in ~/.dsh/.credentials.yaml');
165
- process.exit(1);
166
- }
167
- if (args.has('--delete')) {
168
- await api('deleteMyCommands', {});
169
- console.log('menu deleted');
170
- return;
171
- }
172
- // Telegram keeps one menu per language_code, so a Chinese or English user
173
- // sees the list in their own language instead of Russian.
174
- await api('setMyCommands', { commands: COMMANDS });
175
- // Telegram validates language_code against its own ISO list: 'zh-hans' is
176
- // rejected with "invalid language code", 'zh' is accepted. Each language is
177
- // installed independently — one refusal must not leave the others unset.
178
- for (const [code, list] of [['en', COMMANDS_EN], ['zh', COMMANDS_ZH]]) {
179
- try {
180
- await api('setMyCommands', { commands: list, language_code: code });
181
- console.log(`menu installed for ${code}: ${list.length} commands`);
182
- } catch (error) {
183
- console.error(`menu for ${code} failed: ${error.message}`);
184
- }
185
- }
186
- const check = await api('getMyCommands', {});
187
- console.log(`menu installed: ${check.length} commands`);
188
- for (const c of check) console.log(` /${c.command} — ${c.description}`);
189
- }
190
-
191
- main().catch((error) => {
192
- console.error(error.message);
193
- process.exit(1);
194
- });
1
+ // dsh-bot-menu — install the Telegram command menu that matches THIS bridge.
2
+ //
3
+ // Why it exists: the menu the person sees is whatever `setMyCommands` last
4
+ // wrote, and another plugin (@xmanrui/dsh-im) had set a Chinese list of 31
5
+ // commands that this bridge does not implement. A menu that lies is worse than
6
+ // no menu, so the bridge owns its own list and re-asserts it on start.
7
+ //
8
+ // What it publishes comes from `MENU_COMMANDS` in `commands-registry.mjs`, not
9
+ // from a second list kept here. That second list is how `/task` stayed in the
10
+ // menu for a release after `/task` had become an alias: the registry said one
11
+ // thing, the menu said another, and both were "the source of truth".
12
+ //
13
+ // Usage: node bot-menu.mjs [--delete]
14
+
15
+ import { readFileSync } from 'node:fs';
16
+ import { join } from 'node:path';
17
+ import { homedir } from 'node:os';
18
+ import { MENU_COMMANDS } from './commands-registry.mjs';
19
+ import { LANGS, t } from './i18n.mjs';
20
+
21
+ const args = new Set(process.argv.slice(2));
22
+
23
+ const token = (() => {
24
+ const env = (process.env.DSH_TELEGRAM_BOT_TOKEN || '').trim();
25
+ if (env) return env;
26
+ try {
27
+ const home = process.env.DSH_HOME || join(homedir(), '.dsh');
28
+ const yaml = readFileSync(join(home, '.credentials.yaml'), 'utf8');
29
+ // `dsh-tg init` writes the plain name; the DSH app adds a random suffix.
30
+ const m = /^\s*(DSH_TELEGRAM_BOT_TOKEN[A-Z0-9_]*):\s*["']?([^"'\s]+)/m.exec(yaml);
31
+ return m ? m[2] : '';
32
+ } catch {
33
+ return '';
34
+ }
35
+ })();
36
+
37
+ /** The menu rows for one language, straight from the registry. */
38
+ function rows(lang) {
39
+ return MENU_COMMANDS.map((name) => ({
40
+ // Telegram caps a description at 256 characters and a name at 32; an
41
+ // over-long row makes the whole call fail, so the cut happens here once.
42
+ command: name,
43
+ description: String(t(lang, `menu.cmd.${name}`)).slice(0, 256),
44
+ }));
45
+ }
46
+
47
+ async function api(method, body) {
48
+ const res = await fetch(`https://api.telegram.org/bot${token}/${method}`, {
49
+ method: 'POST',
50
+ headers: { 'content-type': 'application/json' },
51
+ body: JSON.stringify(body ?? {}),
52
+ signal: AbortSignal.timeout(20000),
53
+ });
54
+ const json = await res.json().catch(() => ({}));
55
+ if (!json.ok) throw new Error(`${method}: ${json.description || res.status}`);
56
+ return json.result;
57
+ }
58
+
59
+ async function main() {
60
+ if (!token) {
61
+ console.error('bot token not found in ~/.dsh/.credentials.yaml');
62
+ process.exit(1);
63
+ }
64
+ if (args.has('--delete')) {
65
+ await api('deleteMyCommands', {});
66
+ console.log('menu deleted');
67
+ return;
68
+ }
69
+ // The default list is the language the owner reads; the others are installed
70
+ // per language_code so an English or Chinese phone sees its own words.
71
+ await api('setMyCommands', { commands: rows('ru') });
72
+ // Telegram validates language_code against its own ISO list: 'zh-hans' is
73
+ // rejected with "invalid language code", 'zh' is accepted. Each language is
74
+ // installed independently — one refusal must not leave the others unset.
75
+ for (const code of LANGS.filter((lang) => lang !== 'ru')) {
76
+ try {
77
+ await api('setMyCommands', { commands: rows(code), language_code: code });
78
+ console.log(`menu installed for ${code}: ${MENU_COMMANDS.length} commands`);
79
+ } catch (error) {
80
+ console.error(`menu for ${code} failed: ${error.message}`);
81
+ }
82
+ }
83
+ const check = await api('getMyCommands', {});
84
+ console.log(`menu installed: ${check.length} commands`);
85
+ for (const c of check) console.log(` /${c.command} — ${c.description}`);
86
+ }
87
+
88
+ main().catch((error) => {
89
+ console.error(error.message);
90
+ process.exit(1);
91
+ });
@@ -26,6 +26,7 @@ export const COMMAND_ALIASES = {
26
26
  models: 'model',
27
27
  plugin: 'plugins',
28
28
  agentset: 'crew',
29
+ task: 'tasks',
29
30
  };
30
31
 
31
32
  /**
@@ -33,3 +34,23 @@ export const COMMAND_ALIASES = {
33
34
  * deliberately absent: they work, and they are never advertised.
34
35
  */
35
36
  export const DOCUMENTED_COMMANDS = CONTROL_COMMANDS.filter((name) => !COMMAND_ALIASES[name]);
37
+
38
+ /**
39
+ * What the Telegram menu shows — and it is deliberately shorter than what
40
+ * exists.
41
+ *
42
+ * Thirty-six rows is not a menu, it is a wall a phone keyboard scrolls through,
43
+ * and a wall cannot answer "which of these do I press". These are the thirteen
44
+ * things a person does from a chat; `/help` still explains every command, and
45
+ * `/menu` still draws every section as buttons. Hiding a name here costs
46
+ * nothing: nothing was removed, only unadvertised.
47
+ *
48
+ * Two rules for adding a row: it must be a documented name (an alias here would
49
+ * teach the duplication back through the menu), and it must not be one letter
50
+ * away from another row — `sessions` and `resume`, `task` and `tasks` is exactly
51
+ * the pair of names this list exists to avoid.
52
+ */
53
+ export const MENU_COMMANDS = [
54
+ 'new', 'status', 'sessions', 'goal', 'tasks', 'model', 'plugins',
55
+ 'settings', 'menu', 'rewind', 'stop', 'help', 'update',
56
+ ];
@@ -84,33 +84,45 @@ export async function handleTaskCommands(ctx) {
84
84
  return true;
85
85
  }
86
86
  case '/tasks': {
87
- // The list is the control: a tap marks a task done, and the card is
88
- // redrawn in place. `/task` keeps the typed form for adding.
87
+ // One command, one name. The card is the control — a tap marks a task
88
+ // done — and the same command takes the typed form:
89
89
  //
90
- // This case used to be unreachable: `/tasks` was an alias of `/task`, so
91
- // the advertised tap card never appeared and `/tasks 1` — the obvious way
92
- // to mean "task 1" — silently added a task called "1".
90
+ // /tasks the card, a button per task
91
+ // /tasks 3 mark task 3 done, then redraw the card
92
+ // /tasks done 3 the same, said out loud
93
+ // /tasks rm 3 remove it
94
+ // /tasks edit 3 text reword it, keeping the number
95
+ // /tasks any text add it
96
+ //
97
+ // `/task` still works as an undocumented alias: a phone keyboard turns one
98
+ // spelling into the other without the person noticing, and a name that is
99
+ // never advertised is a name nobody has to remember. The menu used to show
100
+ // both, which is what made the list look like noise.
93
101
  const L = lang;
102
+ const body = String(arg || '').trim();
94
103
  const current = goalOf(state, key);
95
104
  if (!current) { say(t(L, 'task.none')); return true; }
96
- const rows = taskKeyboard(current);
97
- const hint = String(arg || '').trim() ? `\n${t(L, 'task.tasksHint')}` : '';
98
- if (rows.length === 0) { say(`${taskView(current, L)}${hint}`); return true; }
99
- await reply(`${taskView(current, L)}${hint}`, { keyboard: rows });
100
- return true;
101
- }
102
- case '/task': {
103
- const L = lang;
104
- const body = (arg || '').trim();
105
- const current = goalOf(state, key);
106
- if (!body) {
107
- say(current ? taskView(current, L) : t(L, 'task.none'));
108
- return true;
109
- }
110
105
  if (body.toLowerCase() === 'help' || body.toLowerCase() === '?') {
111
106
  say(t(L, 'task.usage'));
112
107
  return true;
113
108
  }
109
+ if (/^\d+$/.test(body)) {
110
+ const n = Number(body);
111
+ say(t(L, doneTask(state, key, n) ? 'task.done' : 'task.bad', { n }));
112
+ ctx.saveState();
113
+ const goal = goalOf(state, key);
114
+ const rows = goal ? taskKeyboard(goal) : [];
115
+ if (rows.length) await reply(taskView(goal, L), { keyboard: rows });
116
+ else say(taskView(goal, L));
117
+ return true;
118
+ }
119
+ if (!body) {
120
+ const rows = taskKeyboard(current);
121
+ const hint = String(arg || '').trim() ? `\n${t(L, 'task.tasksHint')}` : '';
122
+ if (rows.length === 0) { say(`${taskView(current, L)}${hint}`); return true; }
123
+ await reply(`${taskView(current, L)}${hint}`, { keyboard: rows });
124
+ return true;
125
+ }
114
126
  // Editing keeps the number: the chat has been quoting "5." and a delete
115
127
  // plus an add would renumber everything below it.
116
128
  const edit = body.match(/^(?:edit|set)\s+(\d+)\s+([\s\S]+)$/i);
@@ -131,11 +143,11 @@ export async function handleTaskCommands(ctx) {
131
143
  ctx.saveState();
132
144
  return true;
133
145
  }
134
- if (!current) setGoal(state, key, t(L, 'goal.default'));
135
- const n = addTask(state, key, body);
136
- if (!n) { say(t(L, 'task.usage')); return true; }
146
+ const added = addTask(state, key, body);
147
+ if (!added) { say(t(L, 'task.usage')); return true; }
137
148
  ctx.saveState();
138
- say(`${t(L, 'task.added', { n })}\n${goalView(goalOf(state, key), L)}`);
149
+ const goal = goalOf(state, key);
150
+ say(`${t(L, 'task.added', { n: added })}\n${goalView(goal, L)}`);
139
151
  return true;
140
152
  }
141
153
  case '/jobs': {
package/control.mjs CHANGED
@@ -89,7 +89,7 @@ export async function handleControl(ctx) {
89
89
 
90
90
  // The outside world imports these from `control.mjs`, so the move into `control/`
91
91
  // keeps its promises: same names, same module, different file.
92
- export { COMMAND_ALIASES, CONTROL_COMMANDS, DOCUMENTED_COMMANDS } from './commands-registry.mjs';
92
+ export { COMMAND_ALIASES, CONTROL_COMMANDS, DOCUMENTED_COMMANDS, MENU_COMMANDS } from './commands-registry.mjs';
93
93
  export { copyRelease } from './control/release.mjs';
94
94
  export { filterLogLines, reasoningOf } from './control/tasks.mjs';
95
95
  export { DSH_HOME } from './paths.mjs';
package/i18n/en/core.mjs CHANGED
@@ -14,7 +14,7 @@ export default {
14
14
  'settings.state.on': 'on',
15
15
  'settings.state.off': 'off',
16
16
  'settings.state.auto': 'auto',
17
- '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.",
17
+ '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 · /tasks [\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.",
18
18
  'settings.reply.title': 'What the bot says',
19
19
  'settings.agent.title': 'Who answers, and how hard it works',
20
20
  'settings.updates.title': 'New releases (this install, not this topic)',
@@ -134,11 +134,11 @@ export default {
134
134
  'task.edited': "Task {n} rewritten.",
135
135
  'task.removed': 'Task {n} removed.',
136
136
  'task.bad': 'No task {n}.',
137
- 'task.empty': 'No tasks yet — /task <text>.',
137
+ 'task.empty': 'No tasks yet — /tasks <text>.',
138
138
  'task.listTitle': 'Tasks ({done}/{total}):',
139
- 'task.tasksHint': 'Tap a number to tick it; /task done|rm|edit <n> changes the list.',
139
+ 'task.tasksHint': 'Tap a number to tick it; /tasks done|rm|edit <n> changes the list.',
140
140
  'task.tapHint': 'Tap a number to mark it done, tap it again to undo.',
141
- 'task.usage': 'Usage: /task <text> | /task done <n> | /task edit <n> <text> | /task rm <n>',
141
+ 'task.usage': 'Usage: /tasks <text> | /tasks done <n> | /tasks edit <n> <text> | /tasks rm <n>',
142
142
  'status.goal': 'Goal: {done}/{total} · {text}',
143
143
  'cmd.stop.killed': 'Turn stopped.',
144
144
  'cmd.stop.nothing': 'Nothing to stop.',
@@ -215,5 +215,5 @@ export default {
215
215
  'bridge.cb.done': "Done",
216
216
  'bridge.cb.taskDone': 'Done',
217
217
  'bridge.cb.taskUndone': 'Reopened',
218
- 'bridge.cb.taskStale': 'That task is gone — /task shows the current list',
218
+ 'bridge.cb.taskStale': 'That task is gone — /tasks shows the current list',
219
219
  };
package/i18n/en/ctrl.mjs CHANGED
@@ -7,7 +7,6 @@ export default {
7
7
  'ctrl.help.about.send': "Sends a file from the project into the chat: /send report.pdf.",
8
8
  'ctrl.help.about.seed': "Puts the first text into an empty topic and pins it, for topics created before the bot joined.",
9
9
  'ctrl.help.about.goal': "The goal of this topic in one line: /goal <text>, /goal done. Tasks live under it.",
10
- '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.",
11
10
  'ctrl.help.about.sessions': "The sessions of this topic, newest first. Plain text continues the latest one.",
12
11
  '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.\"",
13
12
  'ctrl.help.about.resume': "Continues an older session: /resume <id>. The id comes from /sessions.",
14
13
  '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.",
@@ -112,7 +111,7 @@ export default {
112
111
  'ctrl.fork.current': "This topic is on {id}.",
113
112
  'ctrl.fork.turns': "{n} turn(s)",
114
113
  'ctrl.cmd.task': "Add a step to this topic's list; done <n> closes one, rm <n> drops one.",
115
- 'ctrl.cmd.tasks': "The same list as a card — a tap closes a step. Adding is /task <text>.",
114
+ 'ctrl.cmd.tasks': "The same list as a card — a tap closes a step. Adding is /tasks <text>.",
116
115
  'ctrl.cmd.model': "Which model answers. Without an id it lists what can be picked, with prices.",
117
116
  'ctrl.cmd.models': "The models this profile offers, with the current one marked.",
118
117
  'ctrl.cmd.reasoning': "Whether the 💭 working notes appear in the progress message.",
@@ -121,8 +120,21 @@ export default {
121
120
  'ctrl.cmd.plugin': "The old spelling: every form of /plugins works here too.",
122
121
  'ctrl.cmd.update': "Where this install stands, and whether new releases come by themselves.",
123
122
  'ctrl.cmd.subscribe': "The same switch as /update on|off, said plainly.",
124
- 'ctrl.cmd.goal': "The one goal this topic works toward; /task adds its steps.",
123
+ 'ctrl.cmd.goal': "The one goal this topic works toward; /tasks adds its steps.",
125
124
  'ctrl.cmd.notSettings': "Where a switch is NOT here: /settings shows them all as a card.",
125
+ 'menu.cmd.new': "A new session in this topic",
126
+ 'menu.cmd.status': "What is running: session, model, turn",
127
+ 'menu.cmd.sessions': "The sessions of this topic, and switching between them",
128
+ 'menu.cmd.goal': "This topic's goal: /goal <text>, /goal done",
129
+ 'menu.cmd.tasks': "The checklist as buttons: /tasks, /tasks 2, /tasks text",
130
+ 'menu.cmd.model': "The model of this session: /model, /model <id>",
131
+ 'menu.cmd.plugins': "Plugins: list, install, enable",
132
+ 'menu.cmd.settings': "Profile settings: language, permissions, effort",
133
+ 'menu.cmd.menu': "The button panel: sections and frequent actions",
134
+ 'menu.cmd.rewind': "Step back: /rewind <n>, files are untouched",
135
+ 'menu.cmd.stop': "Stop the current turn",
136
+ 'menu.cmd.help': "Every command with an explanation: /help <command>",
137
+ 'menu.cmd.update': "Version and update: /update confirm",
126
138
  'ctrl.settings.usage': 'Settings as buttons: /settings, /settings agent, /settings updates',
127
139
  'ctrl.settings.opened': 'Tap a setting. Each button is the command you would otherwise type.',
128
140
  'ctrl.profile.title': '🧩 Profile {name}',
package/i18n/ru/core.mjs CHANGED
@@ -14,7 +14,7 @@ export default {
14
14
  'settings.state.on': 'вкл',
15
15
  'settings.state.off': 'выкл',
16
16
  'settings.state.auto': 'авто',
17
- '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 добавляет четыре клавиши под полем ввода.",
17
+ 'help.body': "Задачу можно писать обычным текстом. Каждая ветка форума — отдельная сессия:\n\nРабота: /cd \u003cпроект\u003e · /new · /stop · /send \u003cфайл\u003e · /seed \u003cтекст\u003e\nЦели: /goal · /tasks [\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 добавляет четыре клавиши под полем ввода.",
18
18
  'settings.reply.title': 'Что бот говорит',
19
19
  'settings.agent.title': 'Кто отвечает и как старается',
20
20
  'settings.updates.title': 'Новые версии (эта установка, не тема)',
@@ -134,11 +134,11 @@ export default {
134
134
  'task.edited': "Пункт {n} переписан.",
135
135
  'task.removed': 'Задача {n} удалена.',
136
136
  'task.bad': 'Нет задачи {n}.',
137
- 'task.empty': 'Задач ещё нет — /task <текст>.',
137
+ 'task.empty': 'Задач ещё нет — /tasks <текст>.',
138
138
  'task.listTitle': 'Задачи ({done}/{total}):',
139
- 'task.tasksHint': 'Нажмите номер, чтобы отметить; /task done|rm|edit <n> меняет список.',
139
+ 'task.tasksHint': 'Нажмите номер, чтобы отметить; /tasks done|rm|edit <n> меняет список.',
140
140
  'task.tapHint': 'Нажми номер — задача закрыта, нажми ещё раз — вернуть.',
141
- 'task.usage': 'Использование: /task <текст> | /task done <n> | /task edit <n> <текст> | /task rm <n>',
141
+ 'task.usage': 'Использование: /tasks <текст> | /tasks done <n> | /tasks edit <n> <текст> | /tasks rm <n>',
142
142
  'status.goal': 'Цель: {done}/{total} · {text}',
143
143
  'cmd.stop.killed': 'Ход остановлен.',
144
144
  'cmd.stop.nothing': 'Нечего останавливать.',
@@ -215,5 +215,5 @@ export default {
215
215
  'bridge.cb.done': "Готово",
216
216
  'bridge.cb.taskDone': 'Готово',
217
217
  'bridge.cb.taskUndone': 'Снова открыта',
218
- 'bridge.cb.taskStale': 'Такой задачи уже нет — /task покажет текущий список',
218
+ 'bridge.cb.taskStale': 'Такой задачи уже нет — /tasks покажет текущий список',
219
219
  };
package/i18n/ru/ctrl.mjs CHANGED
@@ -7,7 +7,6 @@ export default {
7
7
  'ctrl.help.about.send': "Присылает файл из проекта в чат: /send report.pdf.",
8
8
  'ctrl.help.about.seed': "Кладёт первый текст в пустую тему и закрепляет — для тем, созданных до бота.",
9
9
  'ctrl.help.about.goal': "Цель темы одной строкой: /goal <текст>, /goal done. Задачи живут под ней.",
10
- 'ctrl.help.about.task': "Список задач этой темы: /task <текст> добавляет, /task done 2 закрывает, /task rm 2 убирает, голый /task печатает список. /tasks рисует тот же список кнопками — одно нажатие отмечает задачу.",
11
10
  'ctrl.help.about.sessions': "Сессии темы, новые сверху. Обычный текст продолжает последнюю.",
12
11
  'ctrl.help.about.tasks': "\"Список задач кнопками: одно нажатие отмечает задачу выполненной или снимает отметку, карточка перерисовывается на месте.\"",
13
12
  'ctrl.help.about.resume': "Продолжает старую сессию: /resume <id>. Идентификатор берётся из /sessions.",
14
13
  'ctrl.help.about.rewind': "Откатывает на n ходов и даёт сформулировать иначе: /rewind 2. Показывает карточку того, что уйдёт, и режет только по кнопке. /rewind undo возвращает.",
@@ -112,7 +111,7 @@ export default {
112
111
  'ctrl.fork.current': "Тема сейчас на {id}.",
113
112
  'ctrl.fork.turns': "{n} ход(ов)",
114
113
  'ctrl.cmd.task': "Добавить шаг в список темы; done <n> закрывает, rm <n> убирает.",
115
- 'ctrl.cmd.tasks': "Тот же список карточкой — шаг закрывается нажатием. Добавить: /task <текст>.",
114
+ 'ctrl.cmd.tasks': "Тот же список карточкой — шаг закрывается нажатием. Добавить: /tasks <текст>.",
116
115
  'ctrl.cmd.model': "Какая модель отвечает. Без id показывает что можно выбрать, с ценами.",
117
116
  'ctrl.cmd.models': "Модели этого профиля, текущая помечена.",
118
117
  'ctrl.cmd.reasoning': "Показывать ли заметки 💭 в сообщении прогресса.",
@@ -121,8 +120,21 @@ export default {
121
120
  'ctrl.cmd.plugin': "Старое написание: здесь работают все формы /plugins.",
122
121
  'ctrl.cmd.update': "Где установка и приходят ли новые версии сами.",
123
122
  'ctrl.cmd.subscribe': "Тот же переключатель, что /update on|off, простыми словами.",
124
- 'ctrl.cmd.goal': "Одна цель, к которой идёт тема; шаги к ней — /task.",
123
+ 'ctrl.cmd.goal': "Одна цель, к которой идёт тема; шаги к ней — /tasks.",
125
124
  'ctrl.cmd.notSettings': "Чего здесь нет: /settings показывает все переключатели карточкой.",
125
+ 'menu.cmd.new': "Новая сессия в этой теме",
126
+ 'menu.cmd.status': "Что сейчас: сессия, модель, активный ход",
127
+ 'menu.cmd.sessions': "Сессии этой темы и переключение между ними",
128
+ 'menu.cmd.goal': "Цель темы: /goal <текст>, /goal done",
129
+ 'menu.cmd.tasks': "Чек-лист шагами кнопками: /tasks, /tasks 2, /tasks текст",
130
+ 'menu.cmd.model': "Модель этой сессии: /model, /model <id>",
131
+ 'menu.cmd.plugins': "Плагины: список, установка, включение",
132
+ 'menu.cmd.settings': "Настройки профиля: язык, права, усилие",
133
+ 'menu.cmd.menu': "Панель кнопками: разделы и частые действия",
134
+ 'menu.cmd.rewind': "Откат назад: /rewind <n>, файлы остаются",
135
+ 'menu.cmd.stop': "Остановить текущий ход",
136
+ 'menu.cmd.help': "Все команды с пояснением: /help <команда>",
137
+ 'menu.cmd.update': "Версия и обновление: /update confirm",
126
138
  'ctrl.settings.usage': 'Настройки кнопками: /settings, /settings agent, /settings updates',
127
139
  'ctrl.settings.opened': 'Нажми на настройку. Каждая кнопка — та команда, которую иначе пришлось бы печатать.',
128
140
  'ctrl.profile.title': '🧩 Профиль {name}',
package/i18n/zh/core.mjs CHANGED
@@ -14,7 +14,7 @@ export default {
14
14
  'settings.state.on': '开',
15
15
  'settings.state.off': '关',
16
16
  'settings.state.auto': '自动',
17
- '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 在输入框下方加四个键。",
17
+ 'help.body': "任务直接以文本发送。每个论坛话题是一个独立会话:\n\n工作: /cd \u003c项目\u003e · /new · /stop · /send \u003c文件\u003e · /seed \u003c文本\u003e\n目标: /goal · /tasks [\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 在输入框下方加四个键。",
18
18
  'settings.reply.title': '机器人怎么说',
19
19
  'settings.agent.title': '谁来回答、投入多少',
20
20
  'settings.updates.title': '新版本(针对本次安装,而非话题)',
@@ -134,11 +134,11 @@ export default {
134
134
  'task.edited': "第 {n} 项已改写。",
135
135
  'task.removed': '已删除任务 {n}。',
136
136
  'task.bad': '没有任务 {n}。',
137
- 'task.empty': '还没有任务——/task <文本>。',
137
+ 'task.empty': '还没有任务——/tasks <文本>。',
138
138
  'task.listTitle': '任务({done}/{total}):',
139
- 'task.tasksHint': '点击编号即可勾选;用 /task done|rm|edit <n> 修改列表。',
139
+ 'task.tasksHint': '点击编号即可勾选;用 /tasks done|rm|edit <n> 修改列表。',
140
140
  'task.tapHint': '点数字标记完成,再点一次撤销。',
141
- 'task.usage': '用法:/task <文本> | /task done <n> | /task edit <n> <文本> | /task rm <n>',
141
+ 'task.usage': '用法:/tasks <文本> | /tasks done <n> | /tasks edit <n> <文本> | /tasks rm <n>',
142
142
  'status.goal': '目标:{done}/{total} · {text}',
143
143
  'cmd.stop.killed': '已停止当前任务。',
144
144
  'cmd.stop.nothing': '没有可停止的任务。',
@@ -215,5 +215,5 @@ export default {
215
215
  'bridge.cb.done': "完成",
216
216
  'bridge.cb.taskDone': '已完成',
217
217
  'bridge.cb.taskUndone': '已重新打开',
218
- 'bridge.cb.taskStale': '该任务已不存在——用 /task 查看当前列表',
218
+ 'bridge.cb.taskStale': '该任务已不存在——用 /tasks 查看当前列表',
219
219
  };
package/i18n/zh/ctrl.mjs CHANGED
@@ -7,7 +7,6 @@ export default {
7
7
  'ctrl.help.about.send': "把项目中的文件发到聊天:/send report.pdf。",
8
8
  'ctrl.help.about.seed': "为空话题写入首段文本并置顶,适用于机器人加入前创建的话题。",
9
9
  'ctrl.help.about.goal': "用一行说明本话题的目标:/goal <文本>、/goal done。任务在其下。",
10
- 'ctrl.help.about.task': "本话题的任务清单:/task <文本> 添加,/task done 2 完成,/task rm 2 删除,直接 /task 打印清单。/tasks 用按钮画出同一份清单,点击即可勾选。",
11
10
  'ctrl.help.about.sessions': "本话题的会话,最新的在前。直接发文字会延续最近的会话。",
12
11
  'ctrl.help.about.tasks': "\"带按钮的任务清单:点一下即完成或取消完成,卡片原地重绘。\"",
13
12
  'ctrl.help.about.resume': "继续较早的会话:/resume <id>。编号来自 /sessions。",
14
13
  'ctrl.help.about.rewind': "回退 n 轮并换种说法:/rewind 2。先显示将移除内容的卡片,只有按按钮才裁切。/rewind undo 可恢复。",
@@ -112,7 +111,7 @@ export default {
112
111
  'ctrl.fork.current': "本话题当前在 {id}。",
113
112
  'ctrl.fork.turns': "{n} 轮",
114
113
  'ctrl.cmd.task': "给本话题的清单加一步;done <n> 关闭,rm <n> 删除。",
115
- 'ctrl.cmd.tasks': "同一份清单的卡片版——点一下关闭一步。添加用 /task <文本>。",
114
+ 'ctrl.cmd.tasks': "同一份清单的卡片版——点一下关闭一步。添加用 /tasks <文本>。",
116
115
  'ctrl.cmd.model': "由哪个模型回答。不带 id 时列出可选模型与价格。",
117
116
  'ctrl.cmd.models': "本配置档提供的模型,当前那个有标记。",
118
117
  'ctrl.cmd.reasoning': "进度消息里是否显示 💭 思考备注。",
@@ -121,8 +120,21 @@ export default {
121
120
  'ctrl.cmd.plugin': "旧写法:/plugins 的所有用法在这里也一样。",
122
121
  'ctrl.cmd.update': "当前安装的状态,新版本是否自动到来。",
123
122
  'ctrl.cmd.subscribe': "与 /update on|off 同一个开关,换个说法。",
124
- 'ctrl.cmd.goal': "本话题朝哪个目标走;拆成步骤用 /task。",
123
+ 'ctrl.cmd.goal': "本话题朝哪个目标走;拆成步骤用 /tasks。",
125
124
  'ctrl.cmd.notSettings': "这里没有的东西:/settings 用一张卡片列出所有开关。",
125
+ 'menu.cmd.new': "在此话题新建会话",
126
+ 'menu.cmd.status': "当前状态:会话、模型、轮次",
127
+ 'menu.cmd.sessions': "本话题的会话与切换",
128
+ 'menu.cmd.goal': "本话题的目标:/goal <文本>、/goal done",
129
+ 'menu.cmd.tasks': "用按钮勾选步骤:/tasks、/tasks 2、/tasks 文本",
130
+ 'menu.cmd.model': "本会话的模型:/model、/model <id>",
131
+ 'menu.cmd.plugins': "插件:列表、安装、启用",
132
+ 'menu.cmd.settings': "配置档设置:语言、权限、思考力度",
133
+ 'menu.cmd.menu': "按钮面板:分区与常用操作",
134
+ 'menu.cmd.rewind': "回退:/rewind <n>,不动文件",
135
+ 'menu.cmd.stop': "停止当前轮次",
136
+ 'menu.cmd.help': "所有命令及说明:/help <命令>",
137
+ 'menu.cmd.update': "版本与更新:/update confirm",
126
138
  'ctrl.settings.usage': '用按钮调设置:/settings、/settings agent、/settings updates',
127
139
  'ctrl.settings.opened': '点一项设置即可。每个按钮就是你本来要输入的命令。',
128
140
  'ctrl.profile.title': '🧩 配置档 {name}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tg-bridge",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
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",
@@ -91,7 +91,7 @@ Type, don't explain:
91
91
 
92
92
  - `/cd /path/to/project` — all turns then run there.
93
93
  - `/model` — pick a model; `/permissions` — how much it may do.
94
- - `/goal <what done looks like>` and `/task <step>`, then bare `/task` — a plan they
94
+ - `/goal <what done looks like>` and `/tasks <step>`, then bare `/tasks` — a plan they
95
95
  can tap off as it moves.
96
96
  - `/stop` — kills a long answer; `/restart confirm` — reloads code after an update.
97
97
  - `/help` — every command.