@dahawa/hawa-code 1.41.1 → 1.41.3
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/cli.js +591 -591
- package/hands.js +496 -496
- package/hawa.js +3 -3
- package/package.json +1 -1
- package/webServer/app.js +54 -54
- package/webServer/style.css +214 -0
package/webServer/style.css
CHANGED
|
@@ -1174,6 +1174,220 @@ html, body {
|
|
|
1174
1174
|
margin-top: 4px;
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
+
/* Model Config 设置 */
|
|
1178
|
+
.model-config-setting {
|
|
1179
|
+
display: flex;
|
|
1180
|
+
flex-direction: column;
|
|
1181
|
+
gap: 12px;
|
|
1182
|
+
flex: 1;
|
|
1183
|
+
min-height: 0;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.model-config-tabs {
|
|
1187
|
+
display: flex;
|
|
1188
|
+
gap: 8px;
|
|
1189
|
+
border-bottom: 1px solid var(--border-color);
|
|
1190
|
+
padding-bottom: 8px;
|
|
1191
|
+
flex-shrink: 0;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.model-config-tab {
|
|
1195
|
+
background: transparent;
|
|
1196
|
+
border: 1px solid var(--border-color);
|
|
1197
|
+
color: var(--text-secondary);
|
|
1198
|
+
padding: 4px 12px;
|
|
1199
|
+
border-radius: 4px;
|
|
1200
|
+
cursor: pointer;
|
|
1201
|
+
font-family: var(--font-mono);
|
|
1202
|
+
font-size: 12px;
|
|
1203
|
+
transition: all 0.15s ease;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.model-config-tab:hover {
|
|
1207
|
+
background: var(--bg-hover);
|
|
1208
|
+
color: var(--text-primary);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.model-config-tab.active {
|
|
1212
|
+
border-color: var(--accent-blue);
|
|
1213
|
+
color: var(--accent-blue);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.model-config-json-wrapper {
|
|
1217
|
+
flex: 1;
|
|
1218
|
+
display: flex;
|
|
1219
|
+
flex-direction: column;
|
|
1220
|
+
min-height: 0;
|
|
1221
|
+
overflow: hidden;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.model-config-json-editor {
|
|
1225
|
+
flex: 1;
|
|
1226
|
+
display: flex;
|
|
1227
|
+
flex-direction: column;
|
|
1228
|
+
min-height: 0;
|
|
1229
|
+
gap: 8px;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.model-config-json-editor .setting-json-textarea {
|
|
1233
|
+
flex: 1;
|
|
1234
|
+
min-height: 500px;
|
|
1235
|
+
height: 100%;
|
|
1236
|
+
resize: none;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.model-config-form {
|
|
1240
|
+
display: flex;
|
|
1241
|
+
flex-direction: column;
|
|
1242
|
+
gap: 16px;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.model-config-section {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
flex-direction: column;
|
|
1248
|
+
gap: 10px;
|
|
1249
|
+
padding: 12px;
|
|
1250
|
+
background: var(--bg-secondary);
|
|
1251
|
+
border: 1px solid var(--border-color);
|
|
1252
|
+
border-radius: 4px;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.model-config-section-title {
|
|
1256
|
+
font-size: 13px;
|
|
1257
|
+
font-weight: 600;
|
|
1258
|
+
color: var(--text-primary);
|
|
1259
|
+
margin: 0;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.model-config-empty {
|
|
1263
|
+
color: var(--text-dimmed);
|
|
1264
|
+
font-size: 12px;
|
|
1265
|
+
font-style: italic;
|
|
1266
|
+
padding: 4px 0;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.model-config-card {
|
|
1270
|
+
display: flex;
|
|
1271
|
+
flex-direction: column;
|
|
1272
|
+
gap: 12px;
|
|
1273
|
+
padding: 12px;
|
|
1274
|
+
background: var(--bg-primary);
|
|
1275
|
+
border: 1px solid var(--border-color);
|
|
1276
|
+
border-radius: 4px;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.model-config-card-header {
|
|
1280
|
+
display: flex;
|
|
1281
|
+
align-items: flex-start;
|
|
1282
|
+
justify-content: space-between;
|
|
1283
|
+
gap: 12px;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.model-config-card-header .model-config-field {
|
|
1287
|
+
flex: 1;
|
|
1288
|
+
min-width: 0;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.model-config-card-row {
|
|
1292
|
+
display: flex;
|
|
1293
|
+
align-items: flex-end;
|
|
1294
|
+
gap: 12px;
|
|
1295
|
+
flex-wrap: wrap;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.model-config-card-row .model-config-field {
|
|
1299
|
+
flex: 1;
|
|
1300
|
+
min-width: 140px;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.model-config-field {
|
|
1304
|
+
display: flex;
|
|
1305
|
+
flex-direction: column;
|
|
1306
|
+
gap: 4px;
|
|
1307
|
+
align-items: flex-start;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.model-config-field-label {
|
|
1311
|
+
font-size: 12px;
|
|
1312
|
+
font-weight: 600;
|
|
1313
|
+
color: var(--text-primary);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.model-config-field-input {
|
|
1317
|
+
width: 100%;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
.model-config-input,
|
|
1321
|
+
.model-config-select {
|
|
1322
|
+
width: 100%;
|
|
1323
|
+
background: var(--bg-secondary);
|
|
1324
|
+
border: 1px solid var(--border-color);
|
|
1325
|
+
color: var(--text-primary);
|
|
1326
|
+
padding: 6px 8px;
|
|
1327
|
+
border-radius: 4px;
|
|
1328
|
+
font-family: var(--font-mono);
|
|
1329
|
+
font-size: 12px;
|
|
1330
|
+
box-sizing: border-box;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.model-config-input:focus,
|
|
1334
|
+
.model-config-select:focus {
|
|
1335
|
+
outline: none;
|
|
1336
|
+
border-color: var(--accent-blue);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.model-config-select {
|
|
1340
|
+
cursor: pointer;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.model-config-select:disabled {
|
|
1344
|
+
opacity: 0.5;
|
|
1345
|
+
cursor: not-allowed;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.model-config-routing-group {
|
|
1349
|
+
display: flex;
|
|
1350
|
+
flex-direction: column;
|
|
1351
|
+
gap: 8px;
|
|
1352
|
+
padding-left: 12px;
|
|
1353
|
+
border-left: 2px solid var(--border-color);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.model-config-routing-type {
|
|
1357
|
+
font-size: 12px;
|
|
1358
|
+
font-weight: 600;
|
|
1359
|
+
color: var(--accent-blue);
|
|
1360
|
+
margin: 0;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
.model-config-add-button,
|
|
1364
|
+
.model-config-remove-button {
|
|
1365
|
+
background: transparent;
|
|
1366
|
+
border: 1px solid var(--border-color);
|
|
1367
|
+
color: var(--text-secondary);
|
|
1368
|
+
padding: 4px 12px;
|
|
1369
|
+
border-radius: 4px;
|
|
1370
|
+
cursor: pointer;
|
|
1371
|
+
font-family: var(--font-mono);
|
|
1372
|
+
font-size: 12px;
|
|
1373
|
+
transition: all 0.15s ease;
|
|
1374
|
+
align-self: flex-start;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.model-config-card-row .model-config-remove-button {
|
|
1378
|
+
align-self: flex-end;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.model-config-add-button:hover {
|
|
1382
|
+
border-color: var(--accent-green);
|
|
1383
|
+
color: var(--accent-green);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.model-config-remove-button:hover {
|
|
1387
|
+
border-color: var(--accent-red);
|
|
1388
|
+
color: var(--accent-red);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1177
1391
|
/* Memo 工具结果 */
|
|
1178
1392
|
.tool-result-memo .result-header {
|
|
1179
1393
|
margin-bottom: 4px;
|