dsh-tg-bridge 1.20.5 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -180,8 +180,7 @@ Send the bot:
180
180
  | Command | Expected |
181
181
  |---|---|
182
182
  | `/doctor` | report: pid, Telegram, disk, directory, session |
183
- | `/version` | bridge version, the latest on npm, bridge directory |
184
- | `/update` | says whether a newer release exists (`/update confirm` installs it) |
183
+ | `/update` | which bridge runs, what npm has, and whether a newer release exists (`/update confirm` installs it) |
185
184
  | `/thoughts [file\|all\|off]` | the last turn's reasoning as a message; `file`/`all` send the full log as a Markdown document, `off` hides the block |
186
185
  | `/help` | commands grouped by category |
187
186
  | `/cd my-app` | topic bound to the project |
@@ -192,14 +191,14 @@ Send the bot:
192
191
  ```
193
192
  Work: /cd · /new · /stop · /send · /seed
194
193
  Goals: /goal (plan + checklist) · /goal reopen · /tasks (checklist only) · /tasks done|rm|edit <n>
195
- Sessions: /status · /sessions · /resume
194
+ Sessions: /status · /sessions · /sessions <id> · /rewind [n|undo|fork [n]|branches]
196
195
  Agents: /agents · /agents <id> · /agents set model|depth|filter
197
196
  Models: /model · /model <id> · /prices
198
197
  Tuning: /effort · /permissions · /preset · /plan · /jobs · /remind
199
198
  Profiles: /profile · /profile <name> · /profile new <name> from <template>
200
199
  Sets: /crew · /crew use|off|new|copy|rm · /crew model <v>
201
200
  Extensions: /skills · /plugins · /plugins search <word> · /plugins disable|enable <id> · /soul
202
- Updates: /version · /update · /update confirm · /update on|off|check|auto · /subscribe on|off
201
+ Updates: /update · /update confirm · /update on|off|check|auto · /subscribe on|off
203
202
  Diagnostics: /doctor · /logs [errors|N|text]
204
203
  Service: /app · /restart · /help
205
204
  Settings: /settings — the same switches as buttons, grouped in four tabs
@@ -27,6 +27,15 @@ export const COMMAND_ALIASES = {
27
27
  plugin: 'plugins',
28
28
  agentset: 'crew',
29
29
  task: 'tasks',
30
+ // One verb per job: going back is `/rewind` with a word (`fork`, `branches`),
31
+ // switching a session is `/sessions <id>`, and "am I current?" is `/update`.
32
+ // The old names still work — `control.mjs` rewrites them into the verb and its
33
+ // argument — and none of them is advertised, so `/help` stops teaching four
34
+ // commands where two do the work.
35
+ fork: 'rewind',
36
+ branches: 'rewind',
37
+ resume: 'sessions',
38
+ version: 'update',
30
39
  };
31
40
 
32
41
  /**
@@ -33,6 +33,35 @@ import { fmt, AGENTSETS, agentset, agentsetOf, profileRowOf, bindAgentset, agent
33
33
  import { taskKeyboard, goalView, taskView, reasoningOf, filterLogLines } from './tasks.mjs';
34
34
  import { updatePolicy, bridgeRoot, copyRelease, installRelease, bridgeVersion, newestModuleMtime, npmLatest, npmLatestAsync } from './release.mjs';
35
35
 
36
+ /**
37
+ * Which bridge is running, which one npm has, and whether this install can
38
+ * update itself. A report, so it answers even in the middle of a turn.
39
+ *
40
+ * It lives in a function because `/update` without an argument now opens with
41
+ * the same lines: "am I current?" used to be two commands and two messages.
42
+ */
43
+ function versionCard(lang) {
44
+ const installed = bridgeVersion();
45
+ const latest = npmLatest('dsh-tg-bridge');
46
+ const where = process.env.DSH_BRIDGE_ROOT || join(DSH_HOME, 'tg-bridge');
47
+ const lines = [t(lang, 'ctrl.version.title')];
48
+ lines.push(t(lang, 'ctrl.version.installed', { v: installed || t(lang, 'ctrl.version.unknown') }));
49
+ lines.push(t(lang, 'ctrl.version.latest', { v: latest || t(lang, 'ctrl.version.offline') }));
50
+ if (installed && latest && installed !== latest) lines.push(t(lang, 'ctrl.version.update', { v: latest }));
51
+ lines.push(t(lang, 'ctrl.version.root', { path: where }));
52
+ lines.push(t(lang, 'ctrl.version.hint'));
53
+ // The number above comes from package.json on disk; the code actually
54
+ // answering this came from the files as they were at process start. When
55
+ // ./sync-runtime.mjs (or /update) has since replaced them, saying so beats a
56
+ // version that reads as live while it is not.
57
+ const started = Date.now() - process.uptime() * 1000;
58
+ const newest = newestModuleMtime(where);
59
+ if (newest && newest > started + 2000) {
60
+ lines.push(t(lang, 'ctrl.version.stale', { when: stamp(newest) }));
61
+ }
62
+ return lines.join('\n');
63
+ }
64
+
36
65
  export async function handleBridgeCommands(ctx) {
37
66
  const { command, arg, send, reply, log, profile, state, key, config, lang: rawLang } = ctx;
38
67
  // The topic's language, then the config default, then English. Never Russian:
@@ -244,27 +273,10 @@ export async function handleBridgeCommands(ctx) {
244
273
  return true;
245
274
  }
246
275
  case '/version': {
247
- // Which bridge is running, which one npm has, and whether this install can
248
- // update itself. A report, so it answers even in the middle of a turn.
249
- const installed = bridgeVersion();
250
- const latest = npmLatest('dsh-tg-bridge');
251
- const where = process.env.DSH_BRIDGE_ROOT || join(DSH_HOME, 'tg-bridge');
252
- const lines = [t(lang, 'ctrl.version.title')];
253
- lines.push(t(lang, 'ctrl.version.installed', { v: installed || t(lang, 'ctrl.version.unknown') }));
254
- lines.push(t(lang, 'ctrl.version.latest', { v: latest || t(lang, 'ctrl.version.offline') }));
255
- if (installed && latest && installed !== latest) lines.push(t(lang, 'ctrl.version.update', { v: latest }));
256
- lines.push(t(lang, 'ctrl.version.root', { path: where }));
257
- lines.push(t(lang, 'ctrl.version.hint'));
258
- // The number above comes from package.json on disk; the code actually
259
- // answering this came from the files as they were at process start. When
260
- // ./sync-runtime.mjs (or /update) has since replaced them, saying so
261
- // beats a version that reads as live while it is not.
262
- const started = Date.now() - process.uptime() * 1000;
263
- const newest = newestModuleMtime(where);
264
- if (newest && newest > started + 2000) {
265
- lines.push(t(lang, 'ctrl.version.stale', { when: stamp(newest) }));
266
- }
267
- say(lines.join('\n'));
276
+ // Kept as the body `/update` uses: the old spelling is rewritten to
277
+ // `/update` before dispatch, so this only answers if something calls it
278
+ // directly. One card, one source of the numbers.
279
+ say(versionCard(lang));
268
280
  return true;
269
281
  }
270
282
  case '/update': {
@@ -311,8 +323,11 @@ export async function handleBridgeCommands(ctx) {
311
323
  say(t(lang, 'ctrl.update.done', { v: latest }) + `\n${t(lang, 'ctrl.update.backup', { path: join(bridgeRoot(), backup) })}`);
312
324
  return true;
313
325
  }
314
- // No argument: where this install stands, in one sentence.
315
- say(describeUpdate(updateState({ installed, latest, mode: policy.mode, notified: policy.notified })));
326
+ // No argument: which bridge is running and where this install stands.
327
+ // This used to be two commands (`/version` for the numbers, `/update` for
328
+ // the state), which meant "am I current?" took two messages. One card
329
+ // answers both, and `/version` still arrives here rewritten.
330
+ say(versionCard(lang) + '\n\n' + describeUpdate(updateState({ installed, latest, mode: policy.mode, notified: policy.notified })));
316
331
  return true;
317
332
  }
318
333
  default:
@@ -53,7 +53,7 @@ export async function handleSessionCommands(ctx) {
53
53
  const id = bareId(row.id);
54
54
  const current = bareId(state.sessions[key] || '') === id ? '*' : ' ';
55
55
  const when = new Date(row.mtime).toISOString().slice(5, 16).replace('T', ' ');
56
- return `${current} ${when} ${row.title.slice(0, 48)}\n /resume ${id}`;
56
+ return `${current} ${when} ${row.title.slice(0, 48)}\n /sessions ${id}`;
57
57
  });
58
58
  say([t(lang, 'ctrl.sessions.title'), ...lines].join('\n'));
59
59
  return true;
package/control.mjs CHANGED
@@ -56,11 +56,19 @@ export async function handleControl(ctx) {
56
56
  // without one it follows the install default.
57
57
  const activeProfile = profile || config.profile || 'headless';
58
58
 
59
- // Old spellings of a command route to the one name that owns the job, before
60
- // anything else looks at the argument.
59
+ // One verb per job, and the argument picks the variant. Stepping back has
60
+ // three shapes — cut the session, copy it, or list the copies — and they used
61
+ // to be three commands a person had to remember separately. They are now one
62
+ // command with a word: `/rewind`, `/rewind fork [n]`, `/rewind branches`.
63
+ // Switching a session is `/sessions <id>`, and "am I current?" is `/update`.
64
+ // The old spellings still arrive here and are rewritten, so a stale
65
+ // instruction in someone's notes keeps working.
61
66
  const bare = command.startsWith('/') ? command.slice(1) : command;
62
- const canonical = COMMAND_ALIASES[bare];
63
- let effective = canonical ? `/${canonical}` : command;
67
+ const canonical = COMMAND_ALIASES[bare] || bare;
68
+ // The word `/rewind` needs in front of the argument the old name carried.
69
+ const VERB = { fork: 'fork', branches: 'branches' };
70
+ let effective = `/${canonical}`;
71
+ let effectiveArgText = VERB[bare] ? [VERB[bare], arg].filter(Boolean).join(' ').trim() : arg;
64
72
 
65
73
  // One command for one job: `/plugins` is both the list and the way to change
66
74
  // things. Two near-identical names (`/plugin` / `/plugins`) invited the exact
@@ -75,10 +83,28 @@ export async function handleControl(ctx) {
75
83
  }
76
84
  }
77
85
 
86
+ if (canonical !== bare) log(`command rewrite: /${bare} ${arg} -> ${effective} ${effectiveArgText}`.trim());
87
+
88
+ // `/rewind` is the one name for "go back": cutting the session, copying it,
89
+ // and listing the copies are its verbs, not three commands to remember.
90
+ if (effective === '/rewind') {
91
+ const [word, ...rest] = String(effectiveArgText || '').trim().split(/\s+/);
92
+ const verb = (word || '').toLowerCase();
93
+ if (verb === 'fork' || verb === 'branch') { effective = '/fork'; effectiveArgText = rest.join(' '); }
94
+ else if (verb === 'branches' || verb === 'list') { effective = '/branches'; effectiveArgText = rest.join(' '); }
95
+ }
96
+ // `/sessions <id>` switches, `/sessions 5` still means "show five". A bare
97
+ // number is a count; anything id-shaped is a session, and the list itself
98
+ // prints the form to copy, so nobody has to know the difference in advance.
99
+ if (effective === '/sessions') {
100
+ const first = String(effectiveArgText || '').trim().split(/\s+/)[0] || '';
101
+ if (first && !/^\d+$/.test(first)) { effective = '/resume'; effectiveArgText = first; }
102
+ }
103
+
78
104
  // Each group owns one slice of the surface and answers `false` for anything
79
105
  // that is not its job. The order is alphabetical, not meaningful: no two
80
106
  // groups claim the same command, so a miss falls through to `default` below.
81
- const child = { ...ctx, effective, command, arg, send, reply, log, profile, state, key, config, lang };
107
+ const child = { ...ctx, effective, command, arg: effectiveArgText, send, reply, log, profile, state, key, config, lang };
82
108
  for (const handler of [handleAgentCommands, handleBridgeCommands, handlePluginCommands, handleSessionCommands, handleSkillCommands, handleTaskCommands, handleViewCommands]) {
83
109
  if (await handler(child)) return true;
84
110
  }
package/help-explain.mjs CHANGED
@@ -11,12 +11,11 @@ import { t } from './i18n.mjs';
11
11
  const SECTION = {
12
12
  cd: 'Work', new: 'Work', stop: 'Work', send: 'Work', seed: 'Work',
13
13
  goal: 'Goals', task: 'Goals', tasks: 'Goals',
14
- status: 'Sessions', sessions: 'Sessions', resume: 'Sessions', rewind: 'Sessions', fork: 'Sessions',
15
- branches: 'Sessions', profile: 'Sessions',
14
+ status: 'Sessions', sessions: 'Sessions', rewind: 'Sessions', profile: 'Sessions',
16
15
  agents: 'Agents', model: 'Models', prices: 'Models', thoughts: 'Models',
17
16
  effort: 'Tuning', permissions: 'Tuning', preset: 'Tuning', crew: 'Tuning', plan: 'Tuning', jobs: 'Tuning', remind: 'Tuning',
18
17
  skills: 'Extensions', plugins: 'Extensions', soul: 'Extensions',
19
- version: 'Versions', update: 'Versions', subscribe: 'Versions',
18
+ update: 'Versions', subscribe: 'Versions',
20
19
  settings: 'Other', lang: 'Other', reasoning: 'Other', doctor: 'Other', logs: 'Other',
21
20
  app: 'Other', restart: 'Other', help: 'Other', menu: 'Panels',
22
21
  };
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 · /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.",
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 [\u003cid\u003e] · /rewind [n|undo|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: /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)',
package/i18n/en/ctrl.mjs CHANGED
@@ -1,17 +1,15 @@
1
1
  // EN strings the commands answer with, keyed `ctrl.<command>.<what>`.
2
2
  export default {
3
3
  'ctrl.help.about.status': "Where this topic stands: session, model, effort, running turns. Read-only.",
4
- 'ctrl.help.about.new': "Starts a fresh session in this topic. The old one stays on disk and can be resumed with /resume.",
4
+ 'ctrl.help.about.new': "Starts a fresh session in this topic. The old one stays on disk and can be resumed with /sessions <id>.",
5
5
  'ctrl.help.about.cd': "Binds the topic to a project folder: /cd my-app. Every turn in the topic then runs there.",
6
6
  'ctrl.help.about.stop': "Stops the turn that is running in this topic right now (the button under the progress message does the same).",
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.tasks': "\"The checklist with a button per task: one tap marks it done or undone, and the card is redrawn in place.\"",
11
- 'ctrl.help.about.resume': "Continues an older session: /resume <id>. The id comes from /sessions.",
12
- '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.",
13
- '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.",
14
- 'ctrl.help.about.branches': "The branches of this topic, newest last, each with how many turns it holds. A press moves the topic onto that branch; the one in use is marked • and is not replaced until you pick another.",
10
+ '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.",
11
+ 'ctrl.help.about.sessions': "The sessions of this topic. /sessions lists the last few with the id to copy; /sessions <id> continues an older one here. /new starts a fresh one and leaves the old on disk.",
12
+ 'ctrl.help.about.rewind': "Going back, one command with three words. /rewind 2 removes the last two turns so you can word the task differently: it shows a card of what will go and cuts only on the button; /rewind undo puts it back. /rewind fork [n] copies the session as it stood n turns back and moves this topic onto the copy — nothing is cut. /rewind branches lists the copies, a press switches.",
15
13
  'ctrl.help.about.profile': "The profile this topic runs on, and how to change it: /profile <name>, /profile new.",
16
14
  'ctrl.help.about.agents': "Agents and subagents: who is configured, on which model, and who was actually spawned.",
17
15
  'ctrl.help.about.crew': "A named bundle of model, permissions and preset for this topic: /crew use <id> switches the whole thing, /crew off goes back to the profile, /crew new|copy|rm and /crew model <v> edit one.",
@@ -25,7 +23,7 @@ export default {
25
23
  'ctrl.help.about.skills': "Installed skills, or the text of one.",
26
24
  'ctrl.help.about.plugins': "The plugin list and the changes: /plugins, /plugins add|remove|disable|enable <id>.",
27
25
  'ctrl.help.about.soul': "The persona file of the profile: show or set.",
28
26
  'ctrl.help.about.version': "The bridge version you run and the latest one on npm.",
29
- 'ctrl.help.about.update': "Updates and their mode: /update, /update on|off|confirm|auto.",
27
+ 'ctrl.help.about.update': "Which bridge you run, what npm has, and the mode of update notices: /update, /update on|off|confirm|auto.",
30
28
  'ctrl.help.about.subscribe': "Whether this install is announced as a user of the plugin, /subscribe on|off.",
31
29
  'ctrl.help.about.settings': "Every switch on one card with pages: /settings, /settings agent, /settings updates.",
32
30
  'ctrl.help.about.lang': "The language of the bot in this topic: /lang en|ru|zh.",
@@ -101,12 +99,12 @@ export default {
101
99
  'ctrl.rewind.refused.too-many-steps': "The session has {total} turn(s); going back {dropped} would leave nothing to continue from. Use /new for a fresh session.",
102
100
  'ctrl.rewind.refused.would-leave-open-turn': "The session boundary does not fall where a turn ends; nothing was removed.",
103
101
  'ctrl.rewind.refused.no-header': "The session file has no header record to keep; nothing was removed.",
104
- 'ctrl.fork.done': "Branched: this topic now continues in {id}, keeping {kept} turn(s). The old session is untouched — /branches lists both.",
102
+ 'ctrl.fork.done': "Branched: this topic now continues in {id}, keeping {kept} turn(s). The old session is untouched — /rewind branches lists both.",
105
103
  'ctrl.fork.noSession': "This topic has no session yet: the first message starts one.",
106
104
  'ctrl.fork.busy': "A turn is running in this topic. A run writes its session, so branch after it finishes.",
107
- 'ctrl.fork.usage': "Usage: /fork — a copy from here, or /fork 2 — a copy from two turns back.",
105
+ 'ctrl.fork.usage': "Usage: /rewind fork — a copy from here, or /rewind fork 2 — a copy from two turns back.",
108
106
  'ctrl.fork.failed': "Could not branch: {error}",
109
- 'ctrl.fork.none': "No branches in this topic yet. /fork makes one.",
107
+ 'ctrl.fork.none': "No branches in this topic yet. /rewind fork makes one.",
110
108
  'ctrl.fork.list': "{n} branch(es) of this topic:",
111
109
  'ctrl.fork.current': "This topic is on {id}.",
112
110
  'ctrl.fork.turns': "{n} turn(s)",
@@ -181,14 +179,14 @@ export default {
181
179
  'ctrl.agents.oneName': 'Name: {label}',
182
180
  'ctrl.agents.oneMode': 'Mode: {mode}',
183
181
  'ctrl.agents.oneCreated': 'Created: {when}',
184
- 'ctrl.agents.resume': 'Continue it here: /resume {id}',
182
+ 'ctrl.agents.resume': 'Continue it here: /sessions {id}',
185
183
  'ctrl.agents.hint': 'A profile owns its agents: edit delegation in ~/.dsh/profiles/<name>/cordis.patch.yml, switch a topic with /profile <name>.',
186
184
  'ctrl.agents.lead': 'A subagent is the model calling itself with a narrower job: it gets its own context, works while this topic waits, and returns a report. The list below is what this profile lets it do.',
187
185
  'ctrl.agents.toolsNone': 'This profile gives the model no delegation tools: every turn runs here, in one context. To turn them on, add @deepseek-ai/dsh-tool-subagent to the profile.',
188
186
  'ctrl.agents.depthHint': ' depth = how many levels deep a child may delegate again (a child of a child); "host default" follows the profile. Change: /agents set depth 2 @{sample}',
189
187
  'ctrl.agents.filterHint': ' filter = tools a child may NOT use, so a research helper cannot write files. Change: /agents set filter write @{sample}',
190
188
  'ctrl.agents.routesHint': ' = the models a child may be given; the model of this topic stays above. Pick one: /agents set model <id> @{sample}',
191
- 'ctrl.agents.childHint': 'Open one: /agents {id} · continue it in this chat: /resume {id}',
189
+ 'ctrl.agents.childHint': 'Open one: /agents {id} · continue it in this chat: /sessions {id}',
192
190
  'ctrl.models.current': 'Current model: {model}',
193
191
  'ctrl.models.none': 'Profile {name} has no model list',
194
192
  'ctrl.models.available': 'Available:',
@@ -199,7 +197,7 @@ export default {
199
197
  'ctrl.sessions.empty': 'No sessions found.',
200
198
  'ctrl.sessions.title': '🗂 Recent sessions:',
201
199
  'ctrl.sessions.untitled': '(untitled)',
202
- 'ctrl.resume.usage': 'Usage: /resume <id> (/sessions — list)',
200
+ 'ctrl.resume.usage': 'Usage: /sessions <id> (/sessions alone — list)',
203
201
  'ctrl.resume.done': 'This topic will continue session {id}.',
204
202
  'ctrl.plugins.title': 'Plugins of profile {name}: {n}',
205
203
  'ctrl.plugins.disabledSuffix': ' (disabled)',
@@ -261,7 +259,7 @@ export default {
261
259
  'ctrl.version.backup': 'Old files kept in {path}',
262
260
  'ctrl.subscribe.title': 'New releases and failures',
263
261
  'ctrl.subscribe.stateOn': 'Notices are on: one message per new version, checked at most once a day.',
264
- 'ctrl.subscribe.stateOff': 'Notices are off. /version still shows what is published.',
262
+ 'ctrl.subscribe.stateOff': 'Notices are off. /update still shows what is published.',
265
263
  'ctrl.subscribe.on': 'Will tell you once about each new release. Nothing installs by itself.',
266
264
  'ctrl.subscribe.notice': 'Version {v} is out. /update confirm installs it; the new code loads on /restart confirm.',
267
265
  'ctrl.subscribe.off': 'No more notices. This install stays on {v}.',
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 · /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 добавляет четыре клавиши под полем ввода.",
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 [\u003cid\u003e] · /rewind [n|undo|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Версии: /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': 'Новые версии (эта установка, не тема)',
package/i18n/ru/ctrl.mjs CHANGED
@@ -1,17 +1,15 @@
1
1
  // RU strings the commands answer with, keyed `ctrl.<command>.<what>`.
2
2
  export default {
3
3
  'ctrl.help.about.status': "Где тема сейчас: сессия, модель, усилие, идущие ходы. Ничего не меняет.",
4
- 'ctrl.help.about.new': "Начинает новую сессию в теме. Старая остаётся на диске, в неё можно вернуться: /resume.",
4
+ 'ctrl.help.about.new': "Начинает новую сессию в теме. Старая остаётся на диске, вернуться можно так: /sessions <id>.",
5
5
  'ctrl.help.about.cd': "Привязывает тему к папке проекта: /cd my-app. Ходы темы идут уже там.",
6
6
  'ctrl.help.about.stop': "Останавливает ход, который идёт в теме прямо сейчас (кнопка под сообщением о ходе делает то же).",
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.tasks': "\"Список задач кнопками: одно нажатие отмечает задачу выполненной или снимает отметку, карточка перерисовывается на месте.\"",
11
- 'ctrl.help.about.resume': "Продолжает старую сессию: /resume <id>. Идентификатор берётся из /sessions.",
12
- 'ctrl.help.about.rewind': "Откатывает на n ходов и даёт сформулировать иначе: /rewind 2. Показывает карточку того, что уйдёт, и режет только по кнопке. /rewind undo возвращает.",
13
- 'ctrl.help.about.fork': "Ветвит тему так же, как десктоп: /fork копирует сессию целиком в новую и переводит тему на копию, /fork 2 — копия в том виде, каким она была два хода назад. Ничего не отрезается: прежняя сессия остаётся как была, а переключиться обратно — /branches.",
14
- 'ctrl.help.about.branches': "Ветки этой темы, новые ниже, у каждой число ходов. Нажатие переводит тему на эту ветку; текущая помечена • и не пропадает, пока не выберешь другую.",
10
+ 'ctrl.help.about.tasks': "Список задач кнопками: одно нажатие отмечает задачу выполненной или снимает отметку, карточка перерисовывается на месте.",
11
+ 'ctrl.help.about.sessions': "Сессии этой темы. /sessions показывает последние и id, который можно скопировать; /sessions <id> продолжает старую сессию здесь же. /new начинает новую, старая остаётся на диске.",
12
+ 'ctrl.help.about.rewind': "Откат — одна команда с тремя словами. /rewind 2 убирает два последних хода, чтобы сформулировать иначе: сначала карточка того, что уйдёт, режет только кнопка; /rewind undo возвращает. /rewind fork [n] копирует сессию в том виде, каким она была n ходов назад, и переводит тему на копию — ничего не отрезается. /rewind branches показывает копии, нажатие переключает.",
15
13
  'ctrl.help.about.profile': "Профиль, на котором идёт тема, и как его сменить: /profile <имя>, /profile new.",
16
14
  'ctrl.help.about.agents': "Агенты и субагенты: кто настроен, на какой модели, кого реально запускали.",
17
15
  'ctrl.help.about.crew': "Именованный набор «модель + права + пресет» для этой темы: /crew use <id> включает целиком, /crew off возвращает профиль, /crew new|copy|rm и /crew model <v> правят набор.",
@@ -25,7 +23,7 @@ export default {
25
23
  'ctrl.help.about.skills': "Установленные скиллы или текст одного.",
26
24
  'ctrl.help.about.plugins': "Список плагинов и изменения: /plugins, /plugins add|remove|disable|enable \u003cid\u003e.",
27
25
  'ctrl.help.about.soul': "Файл персоны профиля: показать или задать.",
28
26
  'ctrl.help.about.version': "Версия моста, которая работает, и последняя на npm.",
29
- 'ctrl.help.about.update': "Обновления и их режим: /update, /update on|off|confirm|auto.",
27
+ 'ctrl.help.about.update': "Какая версия моста работает, что есть на npm, и режим уведомлений: /update, /update on|off|confirm|auto.",
30
28
  'ctrl.help.about.subscribe': "Сообщается ли о нас как о пользователе плагина: /subscribe on|off.",
31
29
  'ctrl.help.about.settings': "Все переключатели одной карточкой по страницам: /settings, /settings agent, /settings updates.",
32
30
  'ctrl.help.about.lang': "Язык бота в теме: /lang en|ru|zh.",
@@ -101,12 +99,12 @@ export default {
101
99
  'ctrl.rewind.refused.too-many-steps': "В сессии {total} ход(ов); откат на {dropped} не оставит ничего. Для чистой сессии — /new.",
102
100
  'ctrl.rewind.refused.would-leave-open-turn': "Граница сессии не совпала с концом хода; ничего не удалено.",
103
101
  'ctrl.rewind.refused.no-header': "В файле сессии нет шапки, которую надо сохранить; ничего не удалено.",
104
- 'ctrl.fork.done': "Ветка создана: тема продолжается в {id}, сохранено {kept} ход(ов). Старая сессия цела — обе видны в /branches.",
102
+ 'ctrl.fork.done': "Ветка создана: тема продолжается в {id}, сохранено {kept} ход(ов). Старая сессия цела — обе видны в /rewind branches.",
105
103
  'ctrl.fork.noSession': "В этой теме ещё нет сессии: её начнёт первое сообщение.",
106
104
  'ctrl.fork.busy': "В теме идёт ход. Он пишет свою сессию — ветвить надо после него.",
107
- 'ctrl.fork.usage': "Как это работает: /fork — копия отсюда, /fork 2 — копия с двух ходов назад.",
105
+ 'ctrl.fork.usage': "Как это работает: /rewind fork — копия отсюда, /rewind fork 2 — копия с двух ходов назад.",
108
106
  'ctrl.fork.failed': "Ветку создать не удалось: {error}",
109
- 'ctrl.fork.none': "В этой теме ещё нет веток. Создать: /fork.",
107
+ 'ctrl.fork.none': "В этой теме ещё нет веток. Создать: /rewind fork.",
110
108
  'ctrl.fork.list': "Ветки этой темы: {n}",
111
109
  'ctrl.fork.current': "Тема сейчас на {id}.",
112
110
  'ctrl.fork.turns': "{n} ход(ов)",
@@ -181,14 +179,14 @@ export default {
181
179
  'ctrl.agents.oneName': 'Название: {label}',
182
180
  'ctrl.agents.oneMode': 'Режим: {mode}',
183
181
  'ctrl.agents.oneCreated': 'Создан: {when}',
184
- 'ctrl.agents.resume': 'Продолжить здесь: /resume {id}',
182
+ 'ctrl.agents.resume': 'Продолжить здесь: /sessions {id}',
185
183
  'ctrl.agents.hint': 'Агентами владеет профиль: делегирование правится в ~/.dsh/profiles/<имя>/cordis.patch.yml, профиль темы переключается /profile <имя>.',
186
184
  'ctrl.agents.lead': 'Субагент — это та же модель, которой дали узкую задачу: у него свой контекст, он работает, пока тема ждёт, и возвращает отчёт. Ниже — что этому профилю разрешено.',
187
185
  'ctrl.agents.toolsNone': 'Этот профиль не даёт модели инструментов делегирования: весь ход идёт здесь, в одном контексте. Включить — добавить @deepseek-ai/dsh-tool-subagent в профиль.',
188
186
  'ctrl.agents.depthHint': ' глубина — на сколько уровней ребёнок может делегировать дальше (ребёнок ребёнка); «по умолчанию хоста» — как в профиле. Менять: /agents set depth 2 @{sample}',
189
187
  'ctrl.agents.filterHint': ' фильтр — инструменты, которые ребёнку нельзя: помощнику по поиску нечего писать на диск. Менять: /agents set filter write @{sample}',
190
188
  'ctrl.agents.routesHint': ' — модели, из которых можно выбрать ребёнку; модель темы остаётся выше. Выбрать: /agents set model <id> @{sample}',
191
- 'ctrl.agents.childHint': 'Открыть одного: /agents {id} · продолжить его здесь: /resume {id}',
189
+ 'ctrl.agents.childHint': 'Открыть одного: /agents {id} · продолжить его здесь: /sessions {id}',
192
190
  'ctrl.models.current': 'Модель сейчас: {model}',
193
191
  'ctrl.models.none': 'В профиле {name} нет списка моделей',
194
192
  'ctrl.models.available': 'Доступные:',
@@ -199,10 +197,10 @@ export default {
199
197
  'ctrl.sessions.empty': 'Сессий не нашёл.',
200
198
  'ctrl.sessions.title': '🗂 Последние сессии:',
201
199
  'ctrl.sessions.untitled': '(без названия)',
202
- 'ctrl.resume.usage': 'Использование: /resume <id> (/sessions — список)',
200
+ 'ctrl.resume.usage': 'Использование: /sessions <id> (/sessions без аргумента — список)',
203
201
  'ctrl.resume.done': 'Эта ветка продолжит сессию {id}.',
204
202
  'ctrl.plugins.title': 'Плагины профиля {name}: {n}',
205
- 'ctrl.plugins.disabledSuffix': ' (disabled)',
203
+ 'ctrl.plugins.disabledSuffix': ' (отключён)',
206
204
  'ctrl.plugins.orphans': 'Установлены, но не в bundles:',
207
205
  'ctrl.plugins.disabledRows': 'Отключены строки: {list}',
208
206
  'ctrl.plugins.disabledNone': 'нет',
@@ -261,7 +259,7 @@ export default {
261
259
  'ctrl.version.backup': 'Старые файлы сохранены в {path}',
262
260
  'ctrl.subscribe.title': 'Новые версии и сбои',
263
261
  'ctrl.subscribe.stateOn': 'Уведомления включены: одно сообщение на новую версию, проверка не чаще раза в сутки.',
264
- 'ctrl.subscribe.stateOff': 'Уведомления выключены. /version по-прежнему показывает, что опубликовано.',
262
+ 'ctrl.subscribe.stateOff': 'Уведомления выключены. /update по-прежнему показывает, что опубликовано.',
265
263
  'ctrl.subscribe.on': 'Сообщу один раз о каждой новой версии. Сама ничего не ставится.',
266
264
  'ctrl.subscribe.notice': 'Вышла версия {v}. /update confirm её поставит, новый код включится после /restart confirm.',
267
265
  'ctrl.subscribe.off': 'Больше не уведомляю. Установка останется на {v}.',
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 · /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 在输入框下方加四个键。",
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 [\u003cid\u003e] · /rewind [n|undo|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版本: /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': '新版本(针对本次安装,而非话题)',
package/i18n/zh/ctrl.mjs CHANGED
@@ -1,17 +1,15 @@
1
1
  // ZH strings the commands answer with, keyed `ctrl.<command>.<what>`.
2
2
  export default {
3
3
  'ctrl.help.about.status': "本话题的状态:会话、模型、力度、进行中的轮次。不改变任何东西。",
4
- 'ctrl.help.about.new': "在本话题开始新会话。旧的留在磁盘上,可用 /resume 回来。",
4
+ 'ctrl.help.about.new': "在本话题开始新会话。旧的留在磁盘上,用 /sessions <id> 回来。",
5
5
  'ctrl.help.about.cd': "把话题绑定到项目文件夹:/cd my-app。之后本话题的轮次都在那里执行。",
6
6
  'ctrl.help.about.stop': "停止本话题正在进行的轮次(进度消息下的按钮效果相同)。",
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.tasks': "\"带按钮的任务清单:点一下即完成或取消完成,卡片原地重绘。\"",
11
- 'ctrl.help.about.resume': "继续较早的会话:/resume <id>。编号来自 /sessions。",
12
- 'ctrl.help.about.rewind': "回退 n 轮并换种说法:/rewind 2。先显示将移除内容的卡片,只有按按钮才裁切。/rewind undo 可恢复。",
13
- 'ctrl.help.about.fork': "像桌面版一样分叉本话题:/fork 把整个会话复制成新会话并把本话题切到副本,/fork 2 复制两轮前的样子。不会切断任何东西:原来的会话保持原样,用 /branches 切回去。",
14
- 'ctrl.help.about.branches': "本话题的分支,新的在后面,各带轮数。按一下就切到那条分支;当前使用的带 • 标记,在你选别的之前一直保留。",
10
+ 'ctrl.help.about.tasks': "带按钮的任务清单:点一下即完成或取消完成,卡片原地重绘。",
11
+ 'ctrl.help.about.sessions': "本话题的会话。/sessions 列出最近几个和可复制的编号;/sessions <id> 就在这里继续较早的会话。/new 开始新的,旧的留在磁盘上。",
12
+ 'ctrl.help.about.rewind': "回退只有一条命令、三种说法。/rewind 2 去掉最后两轮以便换种说法:先显示将移除内容的卡片,只有按按钮才裁切;/rewind undo 可恢复。/rewind fork [n] 把会话复制成 n 轮前的样子并把本话题切到副本,不切断任何东西。/rewind branches 列出副本,按一下就切换。",
15
13
  'ctrl.help.about.profile': "本话题使用的配置档,以及如何更换:/profile <名称>、/profile new。",
16
14
  'ctrl.help.about.agents': "智能体与子智能体:配置了谁、用什么模型、实际启动了谁。",
17
15
  'ctrl.help.about.crew': "本话题的命名组合「模型 + 权限 + 预设」:/crew use <id> 整套启用,/crew off 回到配置档,/crew new|copy|rm 与 /crew model <v> 编辑组合。",
@@ -25,7 +23,7 @@ export default {
25
23
  'ctrl.help.about.skills': "已安装的技能,或某个技能的内容。",
26
24
  'ctrl.help.about.plugins': "插件列表与修改:/plugins、/plugins add|remove|disable|enable \u003cid\u003e。",
27
25
  'ctrl.help.about.soul': "配置档的人格文件:查看或设置。",
28
26
  'ctrl.help.about.version': "正在运行的桥接版本,以及 npm 上的最新版本。",
29
- 'ctrl.help.about.update': "更新及其模式:/update、/update on|off|confirm|auto。",
27
+ 'ctrl.help.about.update': "你运行的桥接版本、npm 上的版本,以及更新通知模式:/update、/update on|off|confirm|auto。",
30
28
  'ctrl.help.about.subscribe': "是否公开本安装为该插件的使用者:/subscribe on|off。",
31
29
  'ctrl.help.about.settings': "所有开关在一张卡片上,分页显示:/settings、/settings agent、/settings updates。",
32
30
  'ctrl.help.about.lang': "本话题中机器人的语言:/lang en|ru|zh。",
@@ -101,12 +99,12 @@ export default {
101
99
  'ctrl.rewind.refused.too-many-steps': "本会话共有 {total} 轮;回退 {dropped} 轮将没有可继续的内容。需要全新的会话请用 /new。",
102
100
  'ctrl.rewind.refused.would-leave-open-turn': "会话边界不在轮次结束处;没有删除任何内容。",
103
101
  'ctrl.rewind.refused.no-header': "会话文件没有可保留的头部记录;没有删除任何内容。",
104
- 'ctrl.fork.done': "已建立分支:本话题继续在 {id},保留 {kept} 轮。原会话完好——用 /branches 查看两者。",
102
+ 'ctrl.fork.done': "已建立分支:本话题继续在 {id},保留 {kept} 轮。原会话完好——用 /rewind branches 查看两者。",
105
103
  'ctrl.fork.noSession': "本话题还没有会话:第一条消息会开启它。",
106
104
  'ctrl.fork.busy': "本话题正在进行一轮。它会写入会话,请在结束后再分支。",
107
- 'ctrl.fork.usage': "用法:/fork 从这里复制,/fork 2 从两轮前复制。",
105
+ 'ctrl.fork.usage': "用法:/rewind fork 从这里复制,/rewind fork 2 从两轮前复制。",
108
106
  'ctrl.fork.failed': "无法建立分支:{error}",
109
- 'ctrl.fork.none': "本话题还没有分支。用 /fork 创建。",
107
+ 'ctrl.fork.none': "本话题还没有分支。用 /rewind fork 创建。",
110
108
  'ctrl.fork.list': "本话题的分支:{n}",
111
109
  'ctrl.fork.current': "本话题当前在 {id}。",
112
110
  'ctrl.fork.turns': "{n} 轮",
@@ -181,14 +179,14 @@ export default {
181
179
  'ctrl.agents.oneName': '名称:{label}',
182
180
  'ctrl.agents.oneMode': '模式:{mode}',
183
181
  'ctrl.agents.oneCreated': '创建时间:{when}',
184
- 'ctrl.agents.resume': '在此继续:/resume {id}',
182
+ 'ctrl.agents.resume': '在此继续:/sessions {id}',
185
183
  'ctrl.agents.hint': '智能体由配置决定:委派设置位于 ~/.dsh/profiles/<名称>/cordis.patch.yml,用 /profile <名称> 切换会话配置。',
186
184
  'ctrl.agents.lead': '子智能体就是把同一个模型派去做一件更窄的活:它有自己的上下文,在本话题等待时干活,然后交回报告。下面列出这个配置档允许它做什么。',
187
185
  'ctrl.agents.toolsNone': '这个配置档没有给模型委派工具:每一轮都在这里、在同一个上下文里完成。要开启,把 @deepseek-ai/dsh-tool-subagent 加进配置档。',
188
186
  'ctrl.agents.depthHint': ' 深度 = 子智能体还能再往下委派几层(孙辈);「主机默认」即跟随配置档。修改:/agents set depth 2 @{sample}',
189
187
  'ctrl.agents.filterHint': ' 过滤 = 子智能体不能用的工具,这样负责调研的帮手不会去写文件。修改:/agents set filter write @{sample}',
190
188
  'ctrl.agents.routesHint': ' = 可以分给子智能体的模型;话题自己的模型仍是上面那个。选一个:/agents set model <id> @{sample}',
191
- 'ctrl.agents.childHint': '打开一个:/agents {id} · 在这里继续它:/resume {id}',
189
+ 'ctrl.agents.childHint': '打开一个:/agents {id} · 在这里继续它:/sessions {id}',
192
190
  'ctrl.models.current': '当前模型:{model}',
193
191
  'ctrl.models.none': '配置档 {name} 中没有模型列表',
194
192
  'ctrl.models.available': '可用:',
@@ -199,7 +197,7 @@ export default {
199
197
  'ctrl.sessions.empty': '没有找到会话。',
200
198
  'ctrl.sessions.title': '🗂 最近的会话:',
201
199
  'ctrl.sessions.untitled': '(无标题)',
202
- 'ctrl.resume.usage': '用法:/resume <id> (/sessions 查看列表)',
200
+ 'ctrl.resume.usage': '用法:/sessions <id> (不带参数则列出列表)',
203
201
  'ctrl.resume.done': '本话题将接着使用会话 {id}。',
204
202
  'ctrl.plugins.title': '配置档 {name} 的插件:{n}',
205
203
  'ctrl.plugins.disabledSuffix': '(已停用)',
@@ -261,7 +259,7 @@ export default {
261
259
  'ctrl.version.backup': '旧文件保存在 {path}',
262
260
  'ctrl.subscribe.title': '新版本与故障',
263
261
  'ctrl.subscribe.stateOn': '通知开启:每个新版本只发一条,每天最多检查一次。',
264
- 'ctrl.subscribe.stateOff': '通知已关闭。/version 仍会显示已发布的内容。',
262
+ 'ctrl.subscribe.stateOff': '通知已关闭。/update 仍会显示已发布的内容。',
265
263
  'ctrl.subscribe.on': '每个新版本会通知一次,不会自行安装。',
266
264
  'ctrl.subscribe.notice': '新版本 {v} 已发布。/update confirm 安装,/restart confirm 后生效。',
267
265
  'ctrl.subscribe.off': '不再通知。此安装保持在 {v}。',
package/menu-card.mjs CHANGED
@@ -15,12 +15,12 @@ import { CONTROL_COMMANDS, DOCUMENTED_COMMANDS } from './commands-registry.mjs';
15
15
  * a panel that hides half the bot sends people back to typing.
16
16
  */
17
17
  const SECTIONS = {
18
- work: ['cd', 'seed', 'send', 'sessions', 'rewind', 'fork', 'branches'],
19
- session: ['resume', 'profile', 'agents'],
18
+ work: ['cd', 'seed', 'send'],
19
+ session: ['sessions', 'rewind', 'profile', 'agents'],
20
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
- house: ['settings', 'update', 'version', 'subscribe', 'doctor', 'logs', 'restart', 'app', 'help'],
23
+ house: ['settings', 'update', 'subscribe', 'doctor', 'logs', 'restart', 'app', 'help'],
24
24
  };
25
25
 
26
26
  /**
@@ -60,11 +60,8 @@ const LABELS = {
60
60
  seed: '/seed <text>',
61
61
  send: '/send <file>',
62
62
  stop: '/stop',
63
- sessions: '/sessions [n]',
64
- resume: '/resume <id>',
65
- rewind: '/rewind [n]',
66
- fork: '/fork [n]',
67
- branches: '/branches',
63
+ sessions: '/sessions [<id>]',
64
+ rewind: '/rewind [n|fork|branches]',
68
65
  profile: '/profile <name>',
69
66
  agents: '/agents',
70
67
  goal: '/goal <text>',
@@ -87,7 +84,6 @@ const LABELS = {
87
84
  crew: '/crew use <id>',
88
85
  settings: '/settings',
89
86
  update: '/update [confirm]',
90
- version: '/version',
91
87
  subscribe: '/subscribe on|off',
92
88
  doctor: '/doctor',
93
89
  logs: '/logs [N]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tg-bridge",
3
- "version": "1.20.5",
3
+ "version": "1.21.0",
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/prices.mjs CHANGED
@@ -2,10 +2,10 @@
2
2
  //
3
3
  // The one source is OpenRouter's public model list: it is JSON, it carries a
4
4
  // price for every model it serves, and it is the market rate a person can check
5
- // in one click. A private route (unorouter, wikivibe, any reseller) rarely
6
- // publishes its own numbers, so a card built from the route's own page is empty
7
- // or wrong. Every card therefore says whose price it shows: OpenRouter's rate
8
- // for the same model, as a reference — not the invoice.
5
+ // in one click. A private route or reseller rarely publishes its own numbers, so
6
+ // a card built from the route's own page is empty or wrong. Every card therefore
7
+ // says whose price it shows: OpenRouter's rate for the same model, as a
8
+ // reference — not the invoice.
9
9
 
10
10
  const OPENROUTER = 'https://openrouter.ai/api/v1/models';
11
11
  const UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36';