cursor-feedback 1.2.0 → 2.0.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.
@@ -1,422 +0,0 @@
1
- * {
2
- box-sizing: border-box;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- body {
8
- font-family: var(--vscode-font-family);
9
- font-size: var(--vscode-font-size);
10
- color: var(--vscode-foreground);
11
- background-color: var(--vscode-sideBar-background);
12
- padding: 12px;
13
- min-height: 100vh;
14
- }
15
-
16
- .container {
17
- display: flex;
18
- flex-direction: column;
19
- gap: 12px;
20
- }
21
-
22
- .section {
23
- background: var(--vscode-input-background);
24
- border: 1px solid var(--vscode-input-border);
25
- border-radius: 6px;
26
- padding: 12px;
27
- }
28
-
29
- .section-title {
30
- font-weight: 600;
31
- margin-bottom: 8px;
32
- color: var(--vscode-foreground);
33
- display: flex;
34
- align-items: center;
35
- gap: 6px;
36
- }
37
-
38
- .summary-content {
39
- word-break: break-word;
40
- max-height: 300px;
41
- overflow-y: auto;
42
- font-size: 13px;
43
- line-height: 1.6;
44
- background: var(--vscode-textBlockQuote-background);
45
- padding: 12px;
46
- border-radius: 4px;
47
- }
48
-
49
- /* Markdown 样式 */
50
- .summary-content h1, .summary-content h2, .summary-content h3 {
51
- margin-top: 12px;
52
- margin-bottom: 8px;
53
- font-weight: 600;
54
- color: var(--vscode-foreground);
55
- }
56
- .summary-content h1 { font-size: 1.4em; border-bottom: 1px solid var(--vscode-panel-border); padding-bottom: 4px; }
57
- .summary-content h2 { font-size: 1.2em; }
58
- .summary-content h3 { font-size: 1.1em; }
59
- .summary-content h1:first-child, .summary-content h2:first-child, .summary-content h3:first-child { margin-top: 0; }
60
-
61
- .summary-content p { margin: 8px 0; }
62
- .summary-content ul, .summary-content ol { margin: 8px 0; padding-left: 20px; }
63
- .summary-content li { margin: 4px 0; }
64
-
65
- .summary-content code {
66
- background: var(--vscode-textCodeBlock-background);
67
- padding: 2px 6px;
68
- border-radius: 3px;
69
- font-family: var(--vscode-editor-font-family), monospace;
70
- font-size: 0.9em;
71
- }
72
-
73
- .summary-content pre {
74
- background: var(--vscode-textCodeBlock-background);
75
- padding: 10px;
76
- border-radius: 4px;
77
- overflow-x: auto;
78
- margin: 8px 0;
79
- }
80
- .summary-content pre code {
81
- background: none;
82
- padding: 0;
83
- }
84
-
85
- .summary-content blockquote {
86
- border-left: 3px solid var(--vscode-textLink-foreground);
87
- margin: 8px 0;
88
- padding: 4px 12px;
89
- color: var(--vscode-descriptionForeground);
90
- }
91
-
92
- .summary-content table {
93
- border-collapse: collapse;
94
- margin: 8px 0;
95
- width: 100%;
96
- }
97
- .summary-content th, .summary-content td {
98
- border: 1px solid var(--vscode-panel-border);
99
- padding: 6px 10px;
100
- text-align: left;
101
- }
102
- .summary-content th {
103
- background: var(--vscode-textCodeBlock-background);
104
- }
105
-
106
- .summary-content strong { font-weight: 600; }
107
- .summary-content em { font-style: italic; }
108
- .summary-content a { color: var(--vscode-textLink-foreground); }
109
- .summary-content hr { border: none; border-top: 1px solid var(--vscode-panel-border); margin: 12px 0; }
110
-
111
- .feedback-input {
112
- width: 100%;
113
- min-height: 120px;
114
- resize: vertical;
115
- background: var(--vscode-input-background);
116
- color: var(--vscode-input-foreground);
117
- border: 1px solid var(--vscode-input-border);
118
- border-radius: 4px;
119
- padding: 10px;
120
- font-family: inherit;
121
- font-size: 13px;
122
- line-height: 1.5;
123
- }
124
-
125
- .feedback-input:focus {
126
- outline: none;
127
- border-color: var(--vscode-focusBorder);
128
- }
129
-
130
-
131
- .submit-group {
132
- display: flex;
133
- gap: 8px;
134
- }
135
-
136
- .submit-btn {
137
- flex: 1;
138
- padding: 10px 12px;
139
- background: var(--vscode-button-background);
140
- color: var(--vscode-button-foreground);
141
- border: none;
142
- border-radius: 6px;
143
- cursor: pointer;
144
- font-weight: 500;
145
- font-size: 12px;
146
- transition: background 0.15s;
147
- }
148
-
149
- .submit-btn:hover {
150
- background: var(--vscode-button-hoverBackground);
151
- }
152
-
153
- .submit-btn:disabled {
154
- opacity: 0.5;
155
- cursor: not-allowed;
156
- }
157
-
158
- .toggle-key-mode-btn {
159
- width: 44px;
160
- padding: 12px 8px;
161
- background: var(--vscode-button-secondaryBackground);
162
- color: var(--vscode-button-secondaryForeground);
163
- border: none;
164
- border-radius: 6px;
165
- cursor: pointer;
166
- font-size: 16px;
167
- transition: background 0.15s;
168
- position: relative;
169
- }
170
-
171
- .toggle-key-mode-btn:hover {
172
- background: var(--vscode-button-secondaryHoverBackground);
173
- }
174
-
175
- .toggle-key-mode-btn.enter-mode {
176
- background: var(--vscode-button-background);
177
- color: var(--vscode-button-foreground);
178
- }
179
-
180
- .toggle-key-mode-btn.enter-mode:hover {
181
- background: var(--vscode-button-hoverBackground);
182
- }
183
-
184
- .status {
185
- text-align: center;
186
- padding: 30px 20px;
187
- color: var(--vscode-descriptionForeground);
188
- }
189
-
190
- .status-icon {
191
- font-size: 32px;
192
- margin-bottom: 12px;
193
- }
194
-
195
- .status.waiting .status-icon {
196
- animation: pulse 2s ease-in-out infinite;
197
- }
198
-
199
- @keyframes pulse {
200
- 0%, 100% { opacity: 1; }
201
- 50% { opacity: 0.5; }
202
- }
203
-
204
- .server-status {
205
- display: flex;
206
- align-items: center;
207
- gap: 6px;
208
- font-size: 11px;
209
- padding: 6px 10px;
210
- position: relative;
211
- background: var(--vscode-textBlockQuote-background);
212
- border-radius: 4px;
213
- margin-bottom: 12px;
214
- }
215
-
216
- .server-status .dot {
217
- width: 8px;
218
- height: 8px;
219
- border-radius: 50%;
220
- background: var(--vscode-errorForeground);
221
- }
222
-
223
- .server-status.connected .dot {
224
- background: var(--vscode-notificationsInfoIcon-foreground);
225
- }
226
-
227
- .lang-switch-btn {
228
- margin-left: auto;
229
- padding: 2px 6px;
230
- background: transparent;
231
- border: 1px solid var(--vscode-input-border);
232
- border-radius: 3px;
233
- cursor: pointer;
234
- font-size: 12px;
235
- opacity: 0.7;
236
- transition: opacity 0.15s, background 0.15s;
237
- }
238
-
239
- .lang-switch-btn:hover {
240
- opacity: 1;
241
- background: var(--vscode-button-secondaryBackground);
242
- }
243
-
244
- .debug-icon {
245
- cursor: pointer;
246
- opacity: 0.6;
247
- font-size: 12px;
248
- }
249
-
250
- .debug-icon:hover {
251
- opacity: 1;
252
- }
253
-
254
- .debug-tooltip {
255
- display: none;
256
- position: fixed;
257
- top: 50px;
258
- right: 10px;
259
- padding: 8px 10px;
260
- background: var(--vscode-editorWidget-background);
261
- border: 1px solid var(--vscode-editorWidget-border);
262
- border-radius: 4px;
263
- font-size: 11px;
264
- white-space: pre-wrap;
265
- z-index: 1000;
266
- min-width: 180px;
267
- max-width: 280px;
268
- box-shadow: 0 2px 8px rgba(0,0,0,0.3);
269
- }
270
-
271
- .debug-icon:hover + .debug-tooltip,
272
- .debug-tooltip:hover {
273
- display: block;
274
- }
275
-
276
- .attachments-area {
277
- margin-top: 10px;
278
- }
279
-
280
- .attachment-buttons {
281
- display: flex;
282
- justify-content: flex-end;
283
- gap: 4px;
284
- }
285
-
286
- .attachment-btn {
287
- display: inline-flex;
288
- align-items: center;
289
- justify-content: center;
290
- width: 28px;
291
- height: 28px;
292
- padding: 0;
293
- background: var(--vscode-button-secondaryBackground);
294
- color: var(--vscode-button-secondaryForeground);
295
- border: none;
296
- border-radius: 4px;
297
- cursor: pointer;
298
- font-size: 14px;
299
- }
300
-
301
- .attachment-btn:hover {
302
- background: var(--vscode-button-secondaryHoverBackground);
303
- }
304
-
305
- .attachment-btn[data-tooltip] {
306
- position: relative;
307
- }
308
-
309
- .attachment-btn[data-tooltip]:hover::after {
310
- content: attr(data-tooltip);
311
- position: absolute;
312
- bottom: 100%;
313
- right: 0;
314
- padding: 4px 8px;
315
- background: var(--vscode-editorWidget-background);
316
- color: var(--vscode-editorWidget-foreground);
317
- border: 1px solid var(--vscode-editorWidget-border);
318
- border-radius: 4px;
319
- font-size: 11px;
320
- white-space: nowrap;
321
- margin-bottom: 4px;
322
- z-index: 100;
323
- }
324
-
325
- .file-list {
326
- margin-top: 8px;
327
- }
328
-
329
- .file-item {
330
- display: flex;
331
- align-items: center;
332
- gap: 6px;
333
- padding: 4px 8px;
334
- background: var(--vscode-textBlockQuote-background);
335
- border-radius: 4px;
336
- margin-bottom: 4px;
337
- font-size: 11px;
338
- }
339
-
340
- .file-item .file-icon {
341
- flex-shrink: 0;
342
- }
343
-
344
- .file-item .file-path {
345
- flex: 1;
346
- overflow: hidden;
347
- text-overflow: ellipsis;
348
- white-space: nowrap;
349
- color: var(--vscode-descriptionForeground);
350
- }
351
-
352
- .file-item .file-remove {
353
- flex-shrink: 0;
354
- width: 16px;
355
- height: 16px;
356
- border-radius: 50%;
357
- background: var(--vscode-errorForeground);
358
- color: white;
359
- border: none;
360
- cursor: pointer;
361
- font-size: 10px;
362
- display: flex;
363
- align-items: center;
364
- justify-content: center;
365
- }
366
-
367
- .image-preview {
368
- display: flex;
369
- flex-wrap: wrap;
370
- gap: 8px;
371
- margin-top: 10px;
372
- }
373
-
374
- .image-preview-item {
375
- position: relative;
376
- }
377
-
378
- .image-preview img {
379
- max-width: 80px;
380
- max-height: 80px;
381
- border-radius: 4px;
382
- object-fit: cover;
383
- border: 1px solid var(--vscode-input-border);
384
- }
385
-
386
- .image-remove {
387
- position: absolute;
388
- top: -6px;
389
- right: -6px;
390
- width: 18px;
391
- height: 18px;
392
- border-radius: 50%;
393
- background: var(--vscode-errorForeground);
394
- color: white;
395
- border: none;
396
- cursor: pointer;
397
- font-size: 12px;
398
- display: flex;
399
- align-items: center;
400
- justify-content: center;
401
- }
402
-
403
- .hidden {
404
- display: none !important;
405
- }
406
-
407
- .project-info {
408
- font-size: 11px;
409
- color: var(--vscode-descriptionForeground);
410
- margin-top: 6px;
411
- padding: 6px 8px;
412
- background: var(--vscode-textBlockQuote-background);
413
- border-radius: 4px;
414
- word-break: break-all;
415
- }
416
-
417
- .timeout-info {
418
- font-size: 11px;
419
- color: var(--vscode-descriptionForeground);
420
- text-align: right;
421
- margin-top: 6px;
422
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "target": "ES2020",
5
- "outDir": "dist",
6
- "lib": ["ES2020"],
7
- "sourceMap": true,
8
- "rootDir": "src",
9
- "strict": true,
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "resolveJsonModule": true
14
- },
15
- "include": ["src/**/*"],
16
- "exclude": ["node_modules", "dist"]
17
- }