@ww_nero/mini-cli 1.0.100 → 1.0.102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ww_nero/mini-cli",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "极简的 AI 命令行助手",
5
5
  "bin": {
6
6
  "mini": "bin/mini.js"
package/src/chat.js CHANGED
@@ -208,7 +208,7 @@ const getReadableErrorMessage = (error) => {
208
208
  const buildEmptyAssistantResponseNotice = (usage) => {
209
209
  const usageText = formatUsageTokens(usage);
210
210
  const usageSuffix = usageText ? `(${usageText})` : '';
211
- return `本次请求已结束,但模型未返回可显示内容${usageSuffix}。可能是接口返回空响应、只返回了空白内容,或流式输出在正文前结束。请重试,必要时检查模型服务日志。`;
211
+ return `本次请求已结束,但模型未返回可显示内容${usageSuffix}。`;
212
212
  };
213
213
 
214
214
  const indentToolResult = (text = '') => splitDisplayLines(text)
@@ -46,6 +46,9 @@ const formatHeader = (name, args, options = {}) => {
46
46
  }
47
47
  } else if (name === 'read') {
48
48
  if (args.filePath) metaParts.push(args.filePath);
49
+ } else if (name === 'skills') {
50
+ if (args.skillName) metaParts.push(args.skillName);
51
+ if (args.filePath) metaParts.push(args.filePath);
49
52
  } else if (name === 'convert') {
50
53
  if (typeof args.input === 'string') {
51
54
  metaParts.push(`input=${truncateText(args.input, 160)}`);