@wu529778790/open-im 1.10.3 → 1.10.4-beta.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/dist/shared/ai-task.js +1 -2
- package/dist/shared/utils.js +2 -0
- package/package.json +1 -1
package/dist/shared/ai-task.js
CHANGED
|
@@ -88,7 +88,6 @@ export function runAITask(deps, ctx, prompt, toolAdapter, platformAdapter) {
|
|
|
88
88
|
};
|
|
89
89
|
// 使用 aiCommand 而不是 toolAdapter.toolId,确保 sessionId 的存储和查询使用相同的 key
|
|
90
90
|
const aiCommand = resolvePlatformAiCommand(config, ctx.platform);
|
|
91
|
-
const toolId = toolAdapter.toolId;
|
|
92
91
|
const startRun = () => {
|
|
93
92
|
log.info(`[AITask] Starting: userId=${ctx.userId}, initialSessionId=${currentSessionId ?? 'new'}, prompt="${prompt.slice(0, 50)}..."`);
|
|
94
93
|
emitStructuredEvent('AITask', 'ai.task.start', {
|
|
@@ -123,7 +122,7 @@ export function runAITask(deps, ctx, prompt, toolAdapter, platformAdapter) {
|
|
|
123
122
|
}
|
|
124
123
|
wasThinking = true;
|
|
125
124
|
thinkingText = t;
|
|
126
|
-
throttledUpdate(`💭 **${getAIToolDisplayName(
|
|
125
|
+
throttledUpdate(`💭 **${getAIToolDisplayName(aiCommand)} 思考中...**\n\n${t}`);
|
|
127
126
|
},
|
|
128
127
|
onText: (accumulated) => {
|
|
129
128
|
if (!firstContentLogged) {
|
package/dist/shared/utils.js
CHANGED
|
@@ -42,6 +42,8 @@ export function escapePathForMarkdown(path) {
|
|
|
42
42
|
/** AI 工具显示名称映射(aiCommand -> 用户友好名称) */
|
|
43
43
|
export const AI_TOOL_DISPLAY_NAMES = {
|
|
44
44
|
claude: 'Claude Code',
|
|
45
|
+
/** ClaudeSDKAdapter.toolId,与 claude 相同展示名 */
|
|
46
|
+
'claude-sdk': 'Claude Code',
|
|
45
47
|
codex: 'Codex',
|
|
46
48
|
codebuddy: 'CodeBuddy',
|
|
47
49
|
};
|