dsh-tg-bridge 1.47.0 → 1.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat/commands-registry.mjs +1 -1
- package/chat/control.mjs +2 -1
- package/chat/handle-message.mjs +499 -497
- package/chat/help-sections.mjs +1 -1
- package/chat/menu-card.mjs +223 -223
- package/chat/subagents-card.mjs +47 -0
- package/control/cmd-subagents.mjs +34 -0
- package/docs/CHANGELOG.md +23 -1
- package/docs/COMMANDS.md +3 -0
- package/i18n/en/core.mjs +11 -0
- package/i18n/en/cost.mjs +1 -1
- package/i18n/ru/core.mjs +11 -0
- package/i18n/ru/cost.mjs +1 -1
- package/i18n/zh/core.mjs +11 -0
- package/i18n/zh/cost.mjs +1 -1
- package/package.json +1 -1
- package/plugin-bridge.mjs +26 -6
- package/turn/progress.mjs +472 -459
- package/work/subagents.mjs +68 -0
|
@@ -20,7 +20,7 @@ export const CONTROL_COMMANDS = [
|
|
|
20
20
|
'prices', 'cost', 'help', 'doctor', 'logs', 'report', 'lang', 'reasoning', 'pin', 'goal', 'task', 'tasks',
|
|
21
21
|
'thoughts', 'version', 'update', 'crew', 'agentset', 'subscribe', 'settings',
|
|
22
22
|
'rewind', 'fork', 'branches', 'menu', 'fallback', 'load', 'diff', 'endpoint', 'dsh', 'compact', 'card', 'find', 'start',
|
|
23
|
-
'ls', 'view', 'edit',
|
|
23
|
+
'ls', 'view', 'edit', 'subagents',
|
|
24
24
|
];
|
|
25
25
|
|
|
26
26
|
/**
|
package/chat/control.mjs
CHANGED
|
@@ -37,6 +37,7 @@ import { handlePluginCommands } from '../control/cmd-plugin.mjs';
|
|
|
37
37
|
import { handleSessionCommands } from '../control/cmd-session.mjs';
|
|
38
38
|
import { handleStartCommands } from '../control/cmd-start.mjs';
|
|
39
39
|
import { handleSkillCommands } from '../control/cmd-skills.mjs';
|
|
40
|
+
import { handleSubagentCommands } from '../control/cmd-subagents.mjs';
|
|
40
41
|
import { handleTaskCommands } from '../control/cmd-task.mjs';
|
|
41
42
|
import { handleViewCommands } from '../control/cmd-views.mjs';
|
|
42
43
|
import { handleEndpointCommands } from '../control/cmd-endpoint.mjs';
|
|
@@ -119,7 +120,7 @@ export async function handleControl(ctx) {
|
|
|
119
120
|
// that is not its job. The order is alphabetical, not meaningful: no two
|
|
120
121
|
// groups claim the same command, so a miss falls through to `default` below.
|
|
121
122
|
const child = { ...ctx, effective, command, arg: effectiveArgText, send, reply, log, profile, state, key, config, lang };
|
|
122
|
-
for (const handler of [handleAgentCommands, handleBridgeCommands, handleCardCommands, handleCompactCommands, handleDiffCommands, handleEditCommands, handleEveryCommands, handleDshCommands, handleFallbackCommands, handleFileCommands, handleFindCommands, handleLoadCommands, handleMcpCommands, handlePlanCommands, handlePluginCommands, handleSessionCommands, handleSkillCommands, handleStartCommands, handleTaskCommands, handleViewCommands, handleEndpointCommands]) {
|
|
123
|
+
for (const handler of [handleAgentCommands, handleBridgeCommands, handleCardCommands, handleCompactCommands, handleDiffCommands, handleEditCommands, handleEveryCommands, handleDshCommands, handleFallbackCommands, handleFileCommands, handleFindCommands, handleLoadCommands, handleMcpCommands, handlePlanCommands, handlePluginCommands, handleSessionCommands, handleSkillCommands, handleStartCommands, handleSubagentCommands, handleTaskCommands, handleViewCommands, handleEndpointCommands]) {
|
|
123
124
|
if (await handler(child)) return true;
|
|
124
125
|
}
|
|
125
126
|
// Nothing claimed it: the bridge answers an unknown `/` command itself, with
|