dsh-im-lark 0.2.0 → 0.2.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/lib/src/host/panel-runner.js +16 -10
- package/lib/src/host/slash-panel.js +11 -10
- package/lib/src/shared/version.js +1 -1
- package/package.json +1 -1
|
@@ -11,19 +11,25 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { errorDetail } from "./host-context.js";
|
|
13
13
|
import { syncSlashPanel } from "./slash-panel.js";
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* 核心命令按功能选图标;同义功能与独立模式保持一致,没列到的用通用键。
|
|
16
|
+
* 核心 `/trace` 是追踪进展,不是独立模式的耗时查询,因此用搜索图标而非时钟。
|
|
17
|
+
* 所有键来自飞书 Slash Command 文档,见 docs/protocol 第 17 节。
|
|
18
|
+
*/
|
|
15
19
|
const CORE_ICONS = {
|
|
16
|
-
help: '
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
help: 'explanation-ai_outlined',
|
|
21
|
+
pair: 'member_outlined',
|
|
22
|
+
new: 'add-chat-ai_outlined',
|
|
23
|
+
sessions: 'folder_outlined',
|
|
24
|
+
send: 'sent_outlined',
|
|
20
25
|
stop: 'clear_outlined',
|
|
21
26
|
compact: 'ai-block_outlined',
|
|
22
|
-
status: '
|
|
23
|
-
trace: '
|
|
24
|
-
quiet: 'ai-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
status: 'diagnosis-ai_outlined',
|
|
28
|
+
trace: 'search-ai_outlined',
|
|
29
|
+
quiet: 'ai-notification_outlined',
|
|
30
|
+
intents: 'flag_outlined',
|
|
31
|
+
weekly: 'calendar-line_outlined',
|
|
32
|
+
daily: 'ai-doc_outlined',
|
|
27
33
|
};
|
|
28
34
|
/**
|
|
29
35
|
* 核心命令表 → 面板条目。
|
|
@@ -16,19 +16,20 @@ import { redactAppId, SlashCommandsClient } from "./lark/slash-commands.js";
|
|
|
16
16
|
/**
|
|
17
17
|
* 独立模式下本插件实际实现的命令,按使用频率排:会话操作用得最多,状态与说明垫底。
|
|
18
18
|
* 与 `standalone-command.ts` 的解析表一一对应(`test/unit/slash-panel.test.ts` 有契约测试)。
|
|
19
|
+
* 图标按功能区分,只用飞书 Slash Command 文档里的键(见 docs/protocol 第 17 节)。
|
|
19
20
|
*/
|
|
20
21
|
export const SLASH_COMMANDS = [
|
|
21
|
-
{ command: 'new', zh: '开一个新会话', en: 'Start a fresh session', icon: 'chat-ai_outlined' },
|
|
22
|
-
{ command: 'sessions', zh: '列出会话与序号', en: 'List sessions with numbers', icon: '
|
|
23
|
-
{ command: 'switch', zh: '切换当前会话', en: 'Switch the current session', icon: '
|
|
24
|
-
{ command: 'send', zh: '发到指定会话', en: 'Send to a session', icon: '
|
|
25
|
-
{ command: 'queue', zh: '排队到目标会话', en: 'Queue to a session', icon: '
|
|
22
|
+
{ command: 'new', zh: '开一个新会话', en: 'Start a fresh session', icon: 'add-chat-ai_outlined' },
|
|
23
|
+
{ command: 'sessions', zh: '列出会话与序号', en: 'List sessions with numbers', icon: 'folder_outlined' },
|
|
24
|
+
{ command: 'switch', zh: '切换当前会话', en: 'Switch the current session', icon: 'ai-trans-switch_outlined' },
|
|
25
|
+
{ command: 'send', zh: '发到指定会话', en: 'Send to a session', icon: 'sent_outlined' },
|
|
26
|
+
{ command: 'queue', zh: '排队到目标会话', en: 'Queue to a session', icon: 'waiting_outlined' },
|
|
26
27
|
{ command: 'stop', zh: '中止正在跑的回合', en: 'Stop the running turn', icon: 'clear_outlined' },
|
|
27
|
-
{ command: 'models', zh: '列出可用模型', en: 'List available models', icon: '
|
|
28
|
-
{ command: 'model', zh: '查看或切换当前模型', en: 'Show or switch the current model', icon: '
|
|
29
|
-
{ command: 'status', zh: '会话与运行状态', en: 'Session and runtime status', icon: '
|
|
30
|
-
{ command: 'trace', zh: '上一条回答的模型与耗时', en: 'Last answer model and duration', icon: 'ai-
|
|
31
|
-
{ command: 'help', zh: '命令说明', en: 'Show help', icon: '
|
|
28
|
+
{ command: 'models', zh: '列出可用模型', en: 'List available models', icon: 'database_outlined' },
|
|
29
|
+
{ command: 'model', zh: '查看或切换当前模型', en: 'Show or switch the current model', icon: 'robot_outlined' },
|
|
30
|
+
{ command: 'status', zh: '会话与运行状态', en: 'Session and runtime status', icon: 'diagnosis-ai_outlined' },
|
|
31
|
+
{ command: 'trace', zh: '上一条回答的模型与耗时', en: 'Last answer model and duration', icon: 'ai-reminder_outlined' },
|
|
32
|
+
{ command: 'help', zh: '命令说明', en: 'Show help', icon: 'explanation-ai_outlined' },
|
|
32
33
|
];
|
|
33
34
|
/**
|
|
34
35
|
* 核心模式命令名的**静态快照**(`dsh-my-superagent` 的 `COMMANDS`,2026-12-03 核对)。
|