@fefeding/aicmd 0.1.15 → 0.1.16

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.
@@ -66,7 +66,7 @@
66
66
  background-color: rgba(137, 180, 250, 0.1);
67
67
  }
68
68
 
69
- .audit-panel[data-v-6149c4f8] {
69
+ .audit-panel[data-v-88945d8c] {
70
70
  display: flex;
71
71
  flex-direction: column;
72
72
  height: 100%;
@@ -74,7 +74,7 @@
74
74
  font-size: 12px;
75
75
  color: var(--text-primary);
76
76
  }
77
- .audit-header[data-v-6149c4f8] {
77
+ .audit-header[data-v-88945d8c] {
78
78
  display: flex;
79
79
  align-items: center;
80
80
  justify-content: space-between;
@@ -83,11 +83,11 @@
83
83
  font-size: 13px;
84
84
  font-weight: 500;
85
85
  }
86
- .audit-header-left[data-v-6149c4f8] { display: flex; align-items: center; gap: 6px;
86
+ .audit-header-left[data-v-88945d8c] { display: flex; align-items: center; gap: 6px;
87
87
  }
88
- .audit-header-right[data-v-6149c4f8] { display: flex; gap: 4px;
88
+ .audit-header-right[data-v-88945d8c] { display: flex; gap: 4px;
89
89
  }
90
- .audit-badge[data-v-6149c4f8] {
90
+ .audit-badge[data-v-88945d8c] {
91
91
  background: var(--accent);
92
92
  color: #fff;
93
93
  font-size: 10px;
@@ -95,7 +95,7 @@
95
95
  border-radius: 8px;
96
96
  font-weight: 400;
97
97
  }
98
- .btn-audit[data-v-6149c4f8] {
98
+ .btn-audit[data-v-88945d8c] {
99
99
  background: none;
100
100
  border: none;
101
101
  color: var(--text-secondary);
@@ -104,15 +104,15 @@
104
104
  border-radius: 4px;
105
105
  font-size: 13px;
106
106
  }
107
- .btn-audit[data-v-6149c4f8]:hover { background: var(--bg-hover); color: var(--text-primary);
107
+ .btn-audit[data-v-88945d8c]:hover { background: var(--bg-hover); color: var(--text-primary);
108
108
  }
109
- .audit-filters[data-v-6149c4f8] {
109
+ .audit-filters[data-v-88945d8c] {
110
110
  display: flex;
111
111
  gap: 6px;
112
112
  padding: 6px 12px;
113
113
  border-bottom: 1px solid var(--border-color);
114
114
  }
115
- .filter-input[data-v-6149c4f8] {
115
+ .filter-input[data-v-88945d8c] {
116
116
  background: var(--bg-input, var(--bg-dark));
117
117
  border: 1px solid var(--border-color);
118
118
  color: var(--text-primary);
@@ -121,9 +121,9 @@
121
121
  font-size: 11px;
122
122
  outline: none;
123
123
  }
124
- .filter-input[data-v-6149c4f8]:focus { border-color: var(--accent);
124
+ .filter-input[data-v-88945d8c]:focus { border-color: var(--accent);
125
125
  }
126
- .audit-stats[data-v-6149c4f8] {
126
+ .audit-stats[data-v-88945d8c] {
127
127
  display: flex;
128
128
  gap: 10px;
129
129
  padding: 4px 12px;
@@ -131,39 +131,39 @@
131
131
  border-bottom: 1px solid var(--border-color);
132
132
  color: var(--text-secondary);
133
133
  }
134
- .stat-success[data-v-6149c4f8] { color: #4caf50;
134
+ .stat-success[data-v-88945d8c] { color: #4caf50;
135
135
  }
136
- .stat-error[data-v-6149c4f8] { color: #f44336;
136
+ .stat-error[data-v-88945d8c] { color: #f44336;
137
137
  }
138
- .stat-blocked[data-v-6149c4f8] { color: #ff9800;
138
+ .stat-blocked[data-v-88945d8c] { color: #ff9800;
139
139
  }
140
- .audit-list[data-v-6149c4f8] {
140
+ .audit-list[data-v-88945d8c] {
141
141
  flex: 1;
142
142
  overflow-y: auto;
143
143
  padding: 4px 0;
144
144
  }
145
- .audit-empty[data-v-6149c4f8] {
145
+ .audit-empty[data-v-88945d8c] {
146
146
  text-align: center;
147
147
  padding: 40px 20px;
148
148
  color: var(--text-secondary);
149
149
  }
150
- .audit-empty i[data-v-6149c4f8] { font-size: 24px; display: block; margin-bottom: 8px;
150
+ .audit-empty i[data-v-88945d8c] { font-size: 24px; display: block; margin-bottom: 8px;
151
151
  }
152
- .audit-entry[data-v-6149c4f8] {
152
+ .audit-entry[data-v-88945d8c] {
153
153
  padding: 6px 12px;
154
154
  border-bottom: 1px solid rgba(255,255,255,0.04);
155
155
  cursor: pointer;
156
156
  }
157
- .audit-entry[data-v-6149c4f8]:hover { background: var(--bg-hover);
157
+ .audit-entry[data-v-88945d8c]:hover { background: var(--bg-hover);
158
158
  }
159
- .entry-header[data-v-6149c4f8] {
159
+ .entry-header[data-v-88945d8c] {
160
160
  display: flex;
161
161
  align-items: center;
162
162
  gap: 6px;
163
163
  }
164
- .entry-status[data-v-6149c4f8] { font-size: 12px; flex-shrink: 0;
164
+ .entry-status[data-v-88945d8c] { font-size: 12px; flex-shrink: 0;
165
165
  }
166
- .entry-command[data-v-6149c4f8] {
166
+ .entry-command[data-v-88945d8c] {
167
167
  flex: 1;
168
168
  overflow: hidden;
169
169
  text-overflow: ellipsis;
@@ -171,31 +171,31 @@
171
171
  font-size: 11px;
172
172
  color: var(--text-primary);
173
173
  }
174
- .entry-meta[data-v-6149c4f8] {
174
+ .entry-meta[data-v-88945d8c] {
175
175
  display: flex;
176
176
  gap: 8px;
177
177
  flex-shrink: 0;
178
178
  font-size: 10px;
179
179
  color: var(--text-secondary);
180
180
  }
181
- .entry-detail[data-v-6149c4f8] {
181
+ .entry-detail[data-v-88945d8c] {
182
182
  margin-top: 6px;
183
183
  padding: 8px;
184
184
  background: rgba(0,0,0,0.2);
185
185
  border-radius: 4px;
186
186
  font-size: 11px;
187
187
  }
188
- .detail-row[data-v-6149c4f8] {
188
+ .detail-row[data-v-88945d8c] {
189
189
  margin-bottom: 4px;
190
190
  display: flex;
191
191
  gap: 6px;
192
192
  }
193
- .detail-label[data-v-6149c4f8] {
193
+ .detail-label[data-v-88945d8c] {
194
194
  color: var(--text-secondary);
195
195
  flex-shrink: 0;
196
196
  min-width: 60px;
197
197
  }
198
- .detail-code[data-v-6149c4f8] {
198
+ .detail-code[data-v-88945d8c] {
199
199
  background: rgba(0,0,0,0.3);
200
200
  padding: 4px 8px;
201
201
  border-radius: 3px;
@@ -206,12 +206,12 @@
206
206
  max-height: 200px;
207
207
  overflow-y: auto;
208
208
  }
209
- .detail-actions[data-v-6149c4f8] {
209
+ .detail-actions[data-v-88945d8c] {
210
210
  display: flex;
211
211
  gap: 8px;
212
212
  margin-top: 6px;
213
213
  }
214
- .btn-copy[data-v-6149c4f8] {
214
+ .btn-copy[data-v-88945d8c] {
215
215
  background: none;
216
216
  border: 1px solid var(--border-color);
217
217
  color: var(--text-secondary);
@@ -220,15 +220,15 @@
220
220
  cursor: pointer;
221
221
  font-size: 10px;
222
222
  }
223
- .btn-copy[data-v-6149c4f8]:hover { background: var(--bg-hover); color: var(--text-primary);
223
+ .btn-copy[data-v-88945d8c]:hover { background: var(--bg-hover); color: var(--text-primary);
224
224
  }
225
- .text-success[data-v-6149c4f8] { color: #4caf50;
225
+ .text-success[data-v-88945d8c] { color: #4caf50;
226
226
  }
227
- .text-danger[data-v-6149c4f8] { color: #f44336;
227
+ .text-danger[data-v-88945d8c] { color: #f44336;
228
228
  }
229
- .text-warning[data-v-6149c4f8] { color: #ff9800;
229
+ .text-warning[data-v-88945d8c] { color: #ff9800;
230
230
  }
231
- .text-info[data-v-6149c4f8] { color: #2196f3;
231
+ .text-info[data-v-88945d8c] { color: #2196f3;
232
232
  }
233
233
 
234
234
  .monitor-panel[data-v-0a240680] {
@@ -1119,21 +1119,21 @@
1119
1119
  margin-bottom: 4px;
1120
1120
  }
1121
1121
 
1122
- .terminal-wrapper[data-v-3f00519a] {
1122
+ .terminal-wrapper[data-v-04092869] {
1123
1123
  width: 100%;
1124
1124
  height: 100%;
1125
1125
  position: relative;
1126
1126
  overflow: hidden;
1127
1127
  display: flex;
1128
1128
  }
1129
- .terminal-container[data-v-3f00519a] {
1129
+ .terminal-container[data-v-04092869] {
1130
1130
  flex: 1;
1131
1131
  height: 100%;
1132
1132
  padding: 4px;
1133
1133
  min-width: 0;
1134
1134
  overflow: hidden;
1135
1135
  }
1136
- .terminal-status[data-v-3f00519a] {
1136
+ .terminal-status[data-v-04092869] {
1137
1137
  position: absolute;
1138
1138
  top: 50%;
1139
1139
  left: 50%;
@@ -1148,7 +1148,7 @@
1148
1148
  }
1149
1149
 
1150
1150
  /* AI 按钮 */
1151
- .ai-toggle-btn[data-v-3f00519a] {
1151
+ .ai-toggle-btn[data-v-04092869] {
1152
1152
  position: absolute;
1153
1153
  top: 12px;
1154
1154
  right: 12px;
@@ -1167,18 +1167,18 @@
1167
1167
  z-index: 20;
1168
1168
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
1169
1169
  }
1170
- .ai-toggle-btn[data-v-3f00519a]:hover {
1170
+ .ai-toggle-btn[data-v-04092869]:hover {
1171
1171
  background: rgba(69, 71, 90, 0.95);
1172
1172
  color: var(--accent);
1173
1173
  transform: scale(1.05);
1174
1174
  }
1175
- .ai-toggle-btn.active[data-v-3f00519a] {
1175
+ .ai-toggle-btn.active[data-v-04092869] {
1176
1176
  background: var(--accent);
1177
1177
  color: white;
1178
1178
  }
1179
1179
 
1180
1180
  /* AI 对话面板包装器 */
1181
- .ai-chat-wrapper[data-v-3f00519a] {
1181
+ .ai-chat-wrapper[data-v-04092869] {
1182
1182
  position: relative;
1183
1183
  width: 380px;
1184
1184
  min-width: 280px;
@@ -1190,7 +1190,7 @@
1190
1190
  }
1191
1191
 
1192
1192
  /* AI 拖拽调整宽度的手柄 */
1193
- .ai-resize-handle[data-v-3f00519a] {
1193
+ .ai-resize-handle[data-v-04092869] {
1194
1194
  position: absolute;
1195
1195
  left: 0;
1196
1196
  top: 0;
@@ -1201,8 +1201,8 @@
1201
1201
  background: transparent;
1202
1202
  transition: background 0.2s;
1203
1203
  }
1204
- .ai-resize-handle[data-v-3f00519a]:hover,
1205
- .ai-resize-handle[data-v-3f00519a]:active {
1204
+ .ai-resize-handle[data-v-04092869]:hover,
1205
+ .ai-resize-handle[data-v-04092869]:active {
1206
1206
  background: var(--accent, #89b4fa);
1207
1207
  opacity: 0.6;
1208
1208
  }
@@ -1225,7 +1225,7 @@
1225
1225
  margin-top: 4px;
1226
1226
  }
1227
1227
 
1228
- .batch-panel[data-v-2a808712] {
1228
+ .batch-panel[data-v-3a165556] {
1229
1229
  display: flex;
1230
1230
  flex-direction: column;
1231
1231
  height: 100%;
@@ -1233,16 +1233,16 @@
1233
1233
  font-size: 12px;
1234
1234
  color: var(--text-primary);
1235
1235
  }
1236
- .batch-controls[data-v-2a808712] {
1236
+ .batch-controls[data-v-3a165556] {
1237
1237
  padding: 8px 12px;
1238
1238
  border-bottom: 1px solid var(--border-color);
1239
1239
  }
1240
- .batch-input-row[data-v-2a808712] {
1240
+ .batch-input-row[data-v-3a165556] {
1241
1241
  display: flex;
1242
1242
  gap: 8px;
1243
1243
  align-items: flex-start;
1244
1244
  }
1245
- .batch-command[data-v-2a808712] {
1245
+ .batch-command[data-v-3a165556] {
1246
1246
  flex: 1;
1247
1247
  background: rgba(0, 0, 0, 0.2);
1248
1248
  border: 1px solid var(--border-color);
@@ -1254,11 +1254,11 @@
1254
1254
  resize: none;
1255
1255
  outline: none;
1256
1256
  }
1257
- .batch-command[data-v-2a808712]:focus { border-color: var(--accent);
1257
+ .batch-command[data-v-3a165556]:focus { border-color: var(--accent);
1258
1258
  }
1259
- .batch-command[data-v-2a808712]:disabled { opacity: 0.6;
1259
+ .batch-command[data-v-3a165556]:disabled { opacity: 0.6;
1260
1260
  }
1261
- .btn-batch[data-v-2a808712] {
1261
+ .btn-batch[data-v-3a165556] {
1262
1262
  background: var(--accent);
1263
1263
  border: none;
1264
1264
  color: white;
@@ -1272,11 +1272,11 @@
1272
1272
  white-space: nowrap;
1273
1273
  transition: all 0.15s;
1274
1274
  }
1275
- .btn-batch[data-v-2a808712]:hover:not(:disabled) { opacity: 0.9;
1275
+ .btn-batch[data-v-3a165556]:hover:not(:disabled) { opacity: 0.9;
1276
1276
  }
1277
- .btn-batch[data-v-2a808712]:disabled { opacity: 0.4; cursor: not-allowed;
1277
+ .btn-batch[data-v-3a165556]:disabled { opacity: 0.4; cursor: not-allowed;
1278
1278
  }
1279
- .batch-info[data-v-2a808712] {
1279
+ .batch-info[data-v-3a165556] {
1280
1280
  display: flex;
1281
1281
  align-items: center;
1282
1282
  gap: 8px;
@@ -1284,9 +1284,9 @@
1284
1284
  font-size: 11px;
1285
1285
  color: var(--text-secondary);
1286
1286
  }
1287
- .session-count[data-v-2a808712] { display: flex; align-items: center; gap: 4px;
1287
+ .session-count[data-v-3a165556] { display: flex; align-items: center; gap: 4px;
1288
1288
  }
1289
- .btn-select-sessions[data-v-2a808712] {
1289
+ .btn-select-sessions[data-v-3a165556] {
1290
1290
  background: none;
1291
1291
  border: 1px solid var(--border-color);
1292
1292
  color: var(--text-secondary);
@@ -1299,16 +1299,16 @@
1299
1299
  gap: 4px;
1300
1300
  margin-left: auto;
1301
1301
  }
1302
- .btn-select-sessions[data-v-2a808712]:hover { background: rgba(255,255,255,0.05); color: var(--text-primary);
1302
+ .btn-select-sessions[data-v-3a165556]:hover { background: rgba(255,255,255,0.05); color: var(--text-primary);
1303
1303
  }
1304
1304
 
1305
1305
  /* 服务器选择器 */
1306
- .session-selector[data-v-2a808712] {
1306
+ .session-selector[data-v-3a165556] {
1307
1307
  border-bottom: 1px solid var(--border-color);
1308
1308
  max-height: 200px;
1309
1309
  overflow-y: auto;
1310
1310
  }
1311
- .selector-header[data-v-2a808712] {
1311
+ .selector-header[data-v-3a165556] {
1312
1312
  display: flex;
1313
1313
  align-items: center;
1314
1314
  justify-content: space-between;
@@ -1317,9 +1317,9 @@
1317
1317
  color: var(--text-secondary);
1318
1318
  border-bottom: 1px solid rgba(255,255,255,0.04);
1319
1319
  }
1320
- .selector-actions[data-v-2a808712] { display: flex; gap: 4px;
1320
+ .selector-actions[data-v-3a165556] { display: flex; gap: 4px;
1321
1321
  }
1322
- .btn-small[data-v-2a808712] {
1322
+ .btn-small[data-v-3a165556] {
1323
1323
  background: none;
1324
1324
  border: none;
1325
1325
  color: var(--accent);
@@ -1327,11 +1327,11 @@
1327
1327
  font-size: 10px;
1328
1328
  padding: 1px 4px;
1329
1329
  }
1330
- .btn-small[data-v-2a808712]:hover { text-decoration: underline;
1330
+ .btn-small[data-v-3a165556]:hover { text-decoration: underline;
1331
1331
  }
1332
- .session-list[data-v-2a808712] { padding: 4px 0;
1332
+ .session-list[data-v-3a165556] { padding: 4px 0;
1333
1333
  }
1334
- .session-item[data-v-2a808712] {
1334
+ .session-item[data-v-3a165556] {
1335
1335
  display: flex;
1336
1336
  align-items: center;
1337
1337
  gap: 8px;
@@ -1339,24 +1339,24 @@
1339
1339
  cursor: pointer;
1340
1340
  transition: background 0.12s;
1341
1341
  }
1342
- .session-item[data-v-2a808712]:hover { background: rgba(255,255,255,0.04);
1342
+ .session-item[data-v-3a165556]:hover { background: rgba(255,255,255,0.04);
1343
1343
  }
1344
- .session-item.selected[data-v-2a808712] { background: rgba(137, 180, 250, 0.08);
1344
+ .session-item.selected[data-v-3a165556] { background: rgba(137, 180, 250, 0.08);
1345
1345
  }
1346
- .session-item i[data-v-2a808712] { font-size: 13px; color: var(--text-secondary);
1346
+ .session-item i[data-v-3a165556] { font-size: 13px; color: var(--text-secondary);
1347
1347
  }
1348
- .session-item.selected i[data-v-2a808712] { color: var(--accent);
1348
+ .session-item.selected i[data-v-3a165556] { color: var(--accent);
1349
1349
  }
1350
- .session-name[data-v-2a808712] { flex: 1; font-size: 12px;
1350
+ .session-name[data-v-3a165556] { flex: 1; font-size: 12px;
1351
1351
  }
1352
- .session-type[data-v-2a808712] {
1352
+ .session-type[data-v-3a165556] {
1353
1353
  font-size: 10px;
1354
1354
  color: var(--text-secondary);
1355
1355
  background: rgba(255,255,255,0.06);
1356
1356
  padding: 1px 5px;
1357
1357
  border-radius: 3px;
1358
1358
  }
1359
- .session-empty[data-v-2a808712] {
1359
+ .session-empty[data-v-3a165556] {
1360
1360
  padding: 16px;
1361
1361
  text-align: center;
1362
1362
  color: var(--text-secondary);
@@ -1364,11 +1364,11 @@
1364
1364
  }
1365
1365
 
1366
1366
  /* 执行结果 */
1367
- .batch-results[data-v-2a808712] {
1367
+ .batch-results[data-v-3a165556] {
1368
1368
  flex: 1;
1369
1369
  overflow-y: auto;
1370
1370
  }
1371
- .results-header[data-v-2a808712] {
1371
+ .results-header[data-v-3a165556] {
1372
1372
  display: flex;
1373
1373
  align-items: center;
1374
1374
  justify-content: space-between;
@@ -1376,64 +1376,64 @@
1376
1376
  border-bottom: 1px solid var(--border-color);
1377
1377
  font-size: 12px;
1378
1378
  }
1379
- .results-title[data-v-2a808712] {
1379
+ .results-title[data-v-3a165556] {
1380
1380
  display: flex;
1381
1381
  align-items: center;
1382
1382
  gap: 8px;
1383
1383
  }
1384
- .results-title code[data-v-2a808712] {
1384
+ .results-title code[data-v-3a165556] {
1385
1385
  font-size: 11px;
1386
1386
  color: #89b4fa;
1387
1387
  background: rgba(0,0,0,0.2);
1388
1388
  padding: 1px 6px;
1389
1389
  border-radius: 3px;
1390
1390
  }
1391
- .results-status[data-v-2a808712] {
1391
+ .results-status[data-v-3a165556] {
1392
1392
  font-size: 10px;
1393
1393
  padding: 1px 6px;
1394
1394
  border-radius: 3px;
1395
1395
  }
1396
- .status-completed[data-v-2a808712] { background: rgba(166, 227, 161, 0.15); color: #a6e3a1;
1396
+ .status-completed[data-v-3a165556] { background: rgba(166, 227, 161, 0.15); color: #a6e3a1;
1397
1397
  }
1398
- .status-running[data-v-2a808712] { background: rgba(250, 176, 5, 0.15); color: #fab387;
1398
+ .status-running[data-v-3a165556] { background: rgba(250, 176, 5, 0.15); color: #fab387;
1399
1399
  }
1400
- .status-failed[data-v-2a808712] { background: rgba(243, 139, 168, 0.15); color: #f38ba8;
1400
+ .status-failed[data-v-3a165556] { background: rgba(243, 139, 168, 0.15); color: #f38ba8;
1401
1401
  }
1402
- .results-summary[data-v-2a808712] {
1402
+ .results-summary[data-v-3a165556] {
1403
1403
  display: flex;
1404
1404
  gap: 10px;
1405
1405
  font-size: 11px;
1406
1406
  color: var(--text-secondary);
1407
1407
  }
1408
- .summary-success[data-v-2a808712] { color: #a6e3a1;
1408
+ .summary-success[data-v-3a165556] { color: #a6e3a1;
1409
1409
  }
1410
- .summary-fail[data-v-2a808712] { color: #f38ba8;
1410
+ .summary-fail[data-v-3a165556] { color: #f38ba8;
1411
1411
  }
1412
- .results-list[data-v-2a808712] { padding: 4px 0;
1412
+ .results-list[data-v-3a165556] { padding: 4px 0;
1413
1413
  }
1414
- .result-item[data-v-2a808712] {
1414
+ .result-item[data-v-3a165556] {
1415
1415
  border-bottom: 1px solid rgba(255,255,255,0.04);
1416
1416
  cursor: pointer;
1417
1417
  }
1418
- .result-item[data-v-2a808712]:hover { background: rgba(255,255,255,0.03);
1418
+ .result-item[data-v-3a165556]:hover { background: rgba(255,255,255,0.03);
1419
1419
  }
1420
- .result-header[data-v-2a808712] {
1420
+ .result-header[data-v-3a165556] {
1421
1421
  display: flex;
1422
1422
  align-items: center;
1423
1423
  gap: 8px;
1424
1424
  padding: 6px 12px;
1425
1425
  }
1426
- .result-name[data-v-2a808712] { flex: 1; font-size: 12px;
1426
+ .result-name[data-v-3a165556] { flex: 1; font-size: 12px;
1427
1427
  }
1428
- .result-duration[data-v-2a808712] { font-size: 10px; color: var(--text-secondary);
1428
+ .result-duration[data-v-3a165556] { font-size: 10px; color: var(--text-secondary);
1429
1429
  }
1430
- .result-expand[data-v-2a808712] { font-size: 10px; color: var(--text-secondary);
1430
+ .result-expand[data-v-3a165556] { font-size: 10px; color: var(--text-secondary);
1431
1431
  }
1432
- .result-output[data-v-2a808712] {
1432
+ .result-output[data-v-3a165556] {
1433
1433
  padding: 6px 12px 10px 32px;
1434
1434
  background: rgba(0,0,0,0.15);
1435
1435
  }
1436
- .result-output pre[data-v-2a808712] {
1436
+ .result-output pre[data-v-3a165556] {
1437
1437
  margin: 0;
1438
1438
  font-family: 'JetBrains Mono', monospace;
1439
1439
  font-size: 11px;
@@ -1443,12 +1443,12 @@
1443
1443
  max-height: 200px;
1444
1444
  overflow-y: auto;
1445
1445
  }
1446
- .result-actions[data-v-2a808712] {
1446
+ .result-actions[data-v-3a165556] {
1447
1447
  margin-top: 4px;
1448
1448
  display: flex;
1449
1449
  gap: 6px;
1450
1450
  }
1451
- .btn-copy[data-v-2a808712] {
1451
+ .btn-copy[data-v-3a165556] {
1452
1452
  background: none;
1453
1453
  border: 1px solid var(--border-color);
1454
1454
  color: var(--text-secondary);
@@ -1457,15 +1457,15 @@
1457
1457
  cursor: pointer;
1458
1458
  font-size: 10px;
1459
1459
  }
1460
- .btn-copy[data-v-2a808712]:hover { background: rgba(255,255,255,0.05); color: var(--text-primary);
1460
+ .btn-copy[data-v-3a165556]:hover { background: rgba(255,255,255,0.05); color: var(--text-primary);
1461
1461
  }
1462
- .text-success[data-v-2a808712] { color: #a6e3a1;
1462
+ .text-success[data-v-3a165556] { color: #a6e3a1;
1463
1463
  }
1464
- .text-danger[data-v-2a808712] { color: #f38ba8;
1464
+ .text-danger[data-v-3a165556] { color: #f38ba8;
1465
1465
  }
1466
1466
 
1467
1467
  /* 空状态 */
1468
- .batch-empty[data-v-2a808712] {
1468
+ .batch-empty[data-v-3a165556] {
1469
1469
  flex: 1;
1470
1470
  display: flex;
1471
1471
  flex-direction: column;
@@ -1474,9 +1474,9 @@
1474
1474
  color: var(--text-secondary);
1475
1475
  gap: 8px;
1476
1476
  }
1477
- .batch-empty i[data-v-2a808712] { font-size: 32px; opacity: 0.4;
1477
+ .batch-empty i[data-v-3a165556] { font-size: 32px; opacity: 0.4;
1478
1478
  }
1479
- .batch-empty p[data-v-2a808712] { font-size: 12px; margin: 0;
1479
+ .batch-empty p[data-v-3a165556] { font-size: 12px; margin: 0;
1480
1480
  }
1481
1481
 
1482
1482
  .aicmd-layout[data-v-c7fee8c8] {
@@ -3353,12 +3353,52 @@ var init_audit = __esmMin((() => {
3353
3353
  init_base();
3354
3354
  }));
3355
3355
  //#endregion
3356
+ //#region src/utils/clipboard.ts
3357
+ function copyText(text) {
3358
+ const clip = window.electronAPI?.clipboard;
3359
+ if (clip) try {
3360
+ clip.writeText(text);
3361
+ return true;
3362
+ } catch {
3363
+ return false;
3364
+ }
3365
+ const textarea = document.createElement("textarea");
3366
+ textarea.value = text;
3367
+ textarea.setAttribute("readonly", "");
3368
+ document.body.appendChild(textarea);
3369
+ textarea.select();
3370
+ try {
3371
+ return document.execCommand("copy");
3372
+ } catch {
3373
+ return false;
3374
+ } finally {
3375
+ document.body.removeChild(textarea);
3376
+ }
3377
+ }
3378
+ async function copy(text) {
3379
+ const clip = window.electronAPI?.clipboard;
3380
+ if (clip) try {
3381
+ clip.writeText(text);
3382
+ return true;
3383
+ } catch {
3384
+ return false;
3385
+ }
3386
+ try {
3387
+ await navigator.clipboard.writeText(text);
3388
+ return true;
3389
+ } catch {
3390
+ return copyText(text);
3391
+ }
3392
+ }
3393
+ var init_clipboard = __esmMin((() => {}));
3394
+ //#endregion
3356
3395
  //#region src/components/audit-panel/index.vue?vue&type=script&setup=true&lang.ts
3357
3396
  var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _hoisted_6$7, _hoisted_7$7, _hoisted_8$7, _hoisted_9$7, _hoisted_10$7, _hoisted_11$7, _hoisted_12$7, _hoisted_13$7, _hoisted_14$7, _hoisted_15$7, _hoisted_16$7, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, _hoisted_21$5, _hoisted_22$5, _hoisted_23$4, _hoisted_24$4, _hoisted_25$3, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, _hoisted_31$3, _hoisted_32$2, _hoisted_33$2, _hoisted_34$2, _hoisted_35$2, _hoisted_36$2, _hoisted_37$2, _hoisted_38$2, _hoisted_39$2, _hoisted_40$2, _hoisted_41$2, index_vue_vue_type_script_setup_true_lang_default$6;
3358
3397
  var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3359
3398
  init_vue_runtime_esm_bundler();
3360
3399
  init_vue_i18n();
3361
3400
  init_audit();
3401
+ init_clipboard();
3362
3402
  _hoisted_1$8 = { class: "audit-panel" };
3363
3403
  _hoisted_2$8 = { class: "audit-header" };
3364
3404
  _hoisted_3$8 = { class: "audit-header-left" };
@@ -3494,7 +3534,7 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3494
3534
  }
3495
3535
  }
3496
3536
  function copyText(text) {
3497
- navigator.clipboard.writeText(text).catch(() => {});
3537
+ copy(text);
3498
3538
  }
3499
3539
  /** 添加实时审计条目(从 WebSocket 调用) */
3500
3540
  function addRealtimeEntry(entry) {
@@ -3593,17 +3633,17 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3593
3633
  });
3594
3634
  }));
3595
3635
  //#endregion
3596
- //#region src/components/audit-panel/index.vue?vue&type=style&index=0&scoped=6149c4f8&lang.css
3597
- var init_index_vue_vue_type_style_index_0_scoped_6149c4f8_lang = __esmMin((() => {}));
3636
+ //#region src/components/audit-panel/index.vue?vue&type=style&index=0&scoped=88945d8c&lang.css
3637
+ var init_index_vue_vue_type_style_index_0_scoped_88945d8c_lang = __esmMin((() => {}));
3598
3638
  //#endregion
3599
3639
  //#region src/components/audit-panel/index.vue
3600
3640
  var audit_panel_default;
3601
3641
  var init_audit_panel = __esmMin((() => {
3602
3642
  init_index_vue_vue_type_script_setup_true_lang$6();
3603
3643
  init_index_vue_vue_type_script_setup_true_lang$6();
3604
- init_index_vue_vue_type_style_index_0_scoped_6149c4f8_lang();
3644
+ init_index_vue_vue_type_style_index_0_scoped_88945d8c_lang();
3605
3645
  init__plugin_vue_export_helper();
3606
- audit_panel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$6, [["__scopeId", "data-v-6149c4f8"]]);
3646
+ audit_panel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$6, [["__scopeId", "data-v-88945d8c"]]);
3607
3647
  }));
3608
3648
  //#endregion
3609
3649
  //#region src/service/monitor.ts
@@ -5348,6 +5388,31 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5348
5388
  }
5349
5389
  });
5350
5390
  });
5391
+ terminal.attachCustomKeyEventHandler((event) => {
5392
+ const isMac = window.electronAPI?.platform === "darwin" || navigator.platform.includes("Mac");
5393
+ const isCopy = isMac && event.metaKey && event.key === "c" || !isMac && event.ctrlKey && event.shiftKey && event.key.toLowerCase() === "c";
5394
+ const isPaste = isMac && event.metaKey && event.key === "v" || !isMac && event.ctrlKey && event.shiftKey && event.key.toLowerCase() === "v";
5395
+ if (isCopy && terminal) {
5396
+ const selection = terminal.getSelection();
5397
+ if (selection) {
5398
+ const clip = window.electronAPI?.clipboard;
5399
+ if (clip) clip.writeText(selection);
5400
+ else navigator.clipboard?.writeText(selection).catch(() => {});
5401
+ }
5402
+ return false;
5403
+ }
5404
+ if (isPaste) {
5405
+ const clip = window.electronAPI?.clipboard;
5406
+ const text = clip ? clip.readText() : "";
5407
+ if (text && terminal) sendToServer({
5408
+ type: "terminal",
5409
+ sessionId: sessionId || void 0,
5410
+ data: text
5411
+ });
5412
+ return false;
5413
+ }
5414
+ return true;
5415
+ });
5351
5416
  initSentry();
5352
5417
  }
5353
5418
  function initSentry() {
@@ -5955,17 +6020,17 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5955
6020
  });
5956
6021
  }));
5957
6022
  //#endregion
5958
- //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=3f00519a&lang.css
5959
- var init_terminal_tab_vue_vue_type_style_index_0_scoped_3f00519a_lang = __esmMin((() => {}));
6023
+ //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=04092869&lang.css
6024
+ var init_terminal_tab_vue_vue_type_style_index_0_scoped_04092869_lang = __esmMin((() => {}));
5960
6025
  //#endregion
5961
6026
  //#region src/components/terminal-tab.vue
5962
6027
  var terminal_tab_default;
5963
6028
  var init_terminal_tab = __esmMin((() => {
5964
6029
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
5965
6030
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
5966
- init_terminal_tab_vue_vue_type_style_index_0_scoped_3f00519a_lang();
6031
+ init_terminal_tab_vue_vue_type_style_index_0_scoped_04092869_lang();
5967
6032
  init__plugin_vue_export_helper();
5968
- terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3f00519a"]]);
6033
+ terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-04092869"]]);
5969
6034
  }));
5970
6035
  //#endregion
5971
6036
  //#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
@@ -6637,6 +6702,7 @@ var init_index_vue_vue_type_script_setup_true_lang$1 = __esmMin((() => {
6637
6702
  init_vue_i18n();
6638
6703
  init_batch();
6639
6704
  init_terminal$1();
6705
+ init_clipboard();
6640
6706
  _hoisted_1$1 = { class: "batch-panel" };
6641
6707
  _hoisted_2$1 = { class: "batch-controls" };
6642
6708
  _hoisted_3$1 = { class: "batch-input-row" };
@@ -6755,7 +6821,7 @@ var init_index_vue_vue_type_script_setup_true_lang$1 = __esmMin((() => {
6755
6821
  return `${(ms / 1e3).toFixed(1)}s`;
6756
6822
  }
6757
6823
  function copyText(text) {
6758
- navigator.clipboard.writeText(text).catch(() => {});
6824
+ copy(text);
6759
6825
  }
6760
6826
  onMounted(async () => {
6761
6827
  await loadSessions();
@@ -6834,17 +6900,17 @@ var init_index_vue_vue_type_script_setup_true_lang$1 = __esmMin((() => {
6834
6900
  });
6835
6901
  }));
6836
6902
  //#endregion
6837
- //#region src/components/batch-panel/index.vue?vue&type=style&index=0&scoped=2a808712&lang.css
6838
- var init_index_vue_vue_type_style_index_0_scoped_2a808712_lang = __esmMin((() => {}));
6903
+ //#region src/components/batch-panel/index.vue?vue&type=style&index=0&scoped=3a165556&lang.css
6904
+ var init_index_vue_vue_type_style_index_0_scoped_3a165556_lang = __esmMin((() => {}));
6839
6905
  //#endregion
6840
6906
  //#region src/components/batch-panel/index.vue
6841
6907
  var batch_panel_default;
6842
6908
  var init_batch_panel = __esmMin((() => {
6843
6909
  init_index_vue_vue_type_script_setup_true_lang$1();
6844
6910
  init_index_vue_vue_type_script_setup_true_lang$1();
6845
- init_index_vue_vue_type_style_index_0_scoped_2a808712_lang();
6911
+ init_index_vue_vue_type_style_index_0_scoped_3a165556_lang();
6846
6912
  init__plugin_vue_export_helper();
6847
- batch_panel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$1, [["__scopeId", "data-v-2a808712"]]);
6913
+ batch_panel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$1, [["__scopeId", "data-v-3a165556"]]);
6848
6914
  }));
6849
6915
  //#endregion
6850
6916
  //#region src/views/index.vue?vue&type=script&setup=true&lang.ts
@@ -3,7 +3,7 @@
3
3
  * @description 通过 contextBridge 向渲染进程暴露最小 IPC 通信接口
4
4
  */
5
5
 
6
- const { contextBridge, ipcRenderer } = require('electron');
6
+ const { contextBridge, ipcRenderer, clipboard } = require('electron');
7
7
 
8
8
  // 终端 IPC 通道(替代 WebSocket)
9
9
  const terminalIPC = {
@@ -53,11 +53,22 @@ const api = {
53
53
  },
54
54
  };
55
55
 
56
+ // 剪贴板操作(contextIsolation 下渲染进程无法直接访问 navigator.clipboard)
57
+ const clip = {
58
+ writeText(text) {
59
+ clipboard.writeText(text);
60
+ },
61
+ readText() {
62
+ return clipboard.readText();
63
+ },
64
+ };
65
+
56
66
  contextBridge.exposeInMainWorld('electronAPI', {
57
67
  isElectron: true,
58
68
  isPackaged: !process.env.ELECTRON_DEV,
59
69
  platform: process.platform,
60
70
  api,
71
+ clipboard: clip,
61
72
  terminalIPC,
62
73
  updater,
63
74
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fefeding/aicmd",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "AI-powered web SSH terminal with autonomous agent, skills, and file transfer",