cursor-feedback 2.1.2 → 2.3.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/CHANGELOG.md +14 -0
- package/README.md +1 -0
- package/README_CN.md +1 -0
- package/dist/extension.js +250 -18
- package/dist/feishu.js +132 -2
- package/dist/i18n/en.json +23 -1
- package/dist/i18n/index.js +23 -1
- package/dist/i18n/zh-CN.json +23 -1
- package/dist/mcp-server.js +422 -13
- package/dist/webview/index.html +40 -4
- package/dist/webview/script.js +412 -21
- package/dist/webview/styles.css +215 -19
- package/package.json +4 -1
package/dist/webview/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/></svg>
|
|
21
21
|
</button>
|
|
22
22
|
<button id="autoRetryBtn" class="iconbtn" type="button" aria-label="Timeout keep-waiting / 超时续期" data-tip="Timeout keep-waiting / 超时续期">
|
|
23
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="
|
|
23
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 22h14"/><path d="M5 2h14"/><path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"/><path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"/></svg>
|
|
24
24
|
</button>
|
|
25
25
|
<button id="themeAccentBtn" class="iconbtn" type="button" aria-label="Accent color / 主题色" data-tip="Accent color / 主题色">
|
|
26
26
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.555C21.965 6.012 17.461 2 12 2z"/></svg>
|
|
@@ -37,13 +37,20 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</header>
|
|
39
39
|
|
|
40
|
-
<!--
|
|
40
|
+
<!-- 等待态(排队模式下排队消息列表内嵌在此卡片中,整体高度由分隔条控制) -->
|
|
41
41
|
<section id="waitingStatus" class="empty">
|
|
42
42
|
<div class="empty__icon" aria-hidden="true">
|
|
43
43
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
|
44
44
|
</div>
|
|
45
45
|
<p class="empty__title">{{i18n.waitingForAI}}</p>
|
|
46
46
|
<p class="empty__hint">{{i18n.waitingHint}}</p>
|
|
47
|
+
<div id="queueCard" class="waiting-queue hidden">
|
|
48
|
+
<div class="waiting-queue__head">
|
|
49
|
+
<span class="waiting-queue__title">{{i18n.queuedTitle}}</span>
|
|
50
|
+
<span id="queueCount" class="queue-count"></span>
|
|
51
|
+
</div>
|
|
52
|
+
<div id="queueList" class="queue-list"></div>
|
|
53
|
+
</div>
|
|
47
54
|
</section>
|
|
48
55
|
|
|
49
56
|
<!-- 反馈表单 -->
|
|
@@ -55,6 +62,16 @@
|
|
|
55
62
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/></svg>
|
|
56
63
|
</span>
|
|
57
64
|
<h2 class="card__title">{{i18n.aiSummary}}</h2>
|
|
65
|
+
<!-- 历史摘要导航:存过 2 条以上时显示,可回看之前轮次的 AI 摘要 -->
|
|
66
|
+
<div id="summaryNav" class="summary-nav" hidden>
|
|
67
|
+
<button id="summaryPrevBtn" class="iconbtn summary-nav__btn" type="button" aria-label="{{i18n.summaryPrevTip}}" data-tip="{{i18n.summaryPrevTip}}">
|
|
68
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg>
|
|
69
|
+
</button>
|
|
70
|
+
<span id="summaryNavPos" class="summary-nav__pos"></span>
|
|
71
|
+
<button id="summaryNextBtn" class="iconbtn summary-nav__btn" type="button" aria-label="{{i18n.summaryNextTip}}" data-tip="{{i18n.summaryNextTip}}">
|
|
72
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg>
|
|
73
|
+
</button>
|
|
74
|
+
</div>
|
|
58
75
|
</div>
|
|
59
76
|
<div id="summaryContent" class="summary markdown-body"></div>
|
|
60
77
|
<div id="projectInfo" class="project-chip"></div>
|
|
@@ -183,7 +200,17 @@
|
|
|
183
200
|
</div>
|
|
184
201
|
</div>
|
|
185
202
|
|
|
186
|
-
<!--
|
|
203
|
+
<!-- 区块②:忙时消息排队(全局开关:飞书与面板消息共用忙时队列) -->
|
|
204
|
+
<div class="feishu-section">
|
|
205
|
+
<label class="feishu-switch">
|
|
206
|
+
<span class="feishu-switch__label feishu-switch__label--strong">{{i18n.queueWhenBusyLabel}}</span>
|
|
207
|
+
<input id="queueWhenBusyToggle" type="checkbox" class="feishu-switch__input">
|
|
208
|
+
<span class="feishu-switch__track"><span class="feishu-switch__thumb"></span></span>
|
|
209
|
+
</label>
|
|
210
|
+
<p class="feishu-modal__desc">{{i18n.queueWhenBusyDesc}}</p>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<!-- 区块③:飞书通知(推送开关 + 凭证 + 绑定状态) -->
|
|
187
214
|
<div class="feishu-section">
|
|
188
215
|
<label class="feishu-switch">
|
|
189
216
|
<span class="feishu-switch__label feishu-switch__label--strong">{{i18n.feishuSettings}}</span>
|
|
@@ -218,7 +245,16 @@
|
|
|
218
245
|
<span id="feishuStatusText" class="feishu-status__text">{{i18n.feishuStatusUnconfigured}}</span>
|
|
219
246
|
</div>
|
|
220
247
|
<div class="feishu-modal__actions">
|
|
221
|
-
<button id="
|
|
248
|
+
<button id="feishuRegisterBtn" class="feishu-link feishu-link--primary" type="button">{{i18n.feishuRegisterBtn}}</button>
|
|
249
|
+
</div>
|
|
250
|
+
<!-- 扫码一键创建应用:点击上方按钮后展开,展示验证二维码与流程状态 -->
|
|
251
|
+
<div id="feishuRegisterPanel" class="feishu-register hidden">
|
|
252
|
+
<img id="feishuRegisterQr" class="feishu-register__qr hidden" alt="QR code">
|
|
253
|
+
<p id="feishuRegisterHint" class="feishu-register__hint"></p>
|
|
254
|
+
<div class="feishu-register__actions">
|
|
255
|
+
<button id="feishuRegisterOpenBtn" class="feishu-link hidden" type="button">{{i18n.registerOpenLink}}</button>
|
|
256
|
+
<button id="feishuRegisterRetryBtn" class="feishu-link hidden" type="button">{{i18n.registerRetry}}</button>
|
|
257
|
+
</div>
|
|
222
258
|
</div>
|
|
223
259
|
<p class="feishu-modal__hint">{{i18n.feishuHint}}</p>
|
|
224
260
|
</div>
|