iflow-feishu 1.1.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iflow-feishu",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "iFlow CLI 飞书插件 - 将 iFlow AI 助手接入飞书机器人",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -55,9 +55,9 @@ class CardBuilder {
55
55
 
56
56
  let titleContent = '';
57
57
  if (modelName) titleContent += `<font color='blue'>${modelName}</font>`;
58
- // 始终显示剩余上下文,默认为100%
59
- // const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
60
- // titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
58
+ // 显示剩余上下文
59
+ const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
60
+ titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
61
61
  if (thinkingStatus) titleContent += (titleContent ? ' <font color=\'grey\'>|</font> ' : '') + thinkingStatus;
62
62
 
63
63
  if (titleContent) {
@@ -84,9 +84,9 @@ class CardBuilder {
84
84
 
85
85
  let titleContent = '';
86
86
  if (modelName) titleContent += `<font color='blue'>${modelName}</font>`;
87
- // 始终显示剩余上下文,默认为100%
88
- // const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
89
- // titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
87
+ // 显示剩余上下文
88
+ const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
89
+ titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
90
90
  const statusColor = isGenerating ? 'orange' : 'green';
91
91
  titleContent += (titleContent ? ' <font color=\'grey\'>|</font> ' : '') + `<font color='${statusColor}'>${responseTitle}</font>`;
92
92