deeper-cli 1.3.0 → 1.3.2

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.
@@ -240,7 +240,13 @@ export class DeepSeekClient {
240
240
  body.tool_choice = 'auto';
241
241
  }
242
242
 
243
- return JSON.stringify(body);
243
+ return JSON.stringify({
244
+ ...body,
245
+ messages: (body.messages as Array<Record<string, unknown>>).map(m => {
246
+ if (m.role === 'tool' && !m.name) m.name = 'tool';
247
+ return m;
248
+ }),
249
+ });
244
250
  }
245
251
 
246
252
  private async makeRequest(config: DeepSeekConfig, body: string): Promise<Response> {
@@ -82,6 +82,7 @@ export const SLASH_COMMANDS: SlashCommand[] = [
82
82
  { command: '/analyze [路径]', description: '项目架构分析' },
83
83
  { command: '/diff <文件>', description: '查看文件变更' },
84
84
  { command: '/undo', description: '撤销最近文件修改' },
85
+ { command: '/delete [name]', description: '删除保存的会话' },
85
86
  ];
86
87
 
87
88
  export type DeepSeekMessage = ChatMessage;