dsh-bots 0.2.24 → 0.2.26
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/lib/client.js +15 -7
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -348,8 +348,8 @@
|
|
|
348
348
|
.dbs-column{max-width:var(--dsh-chat-content-width);flex-direction:column;gap:16px;width:100%;margin:0 auto;display:flex}
|
|
349
349
|
.dbs-userRow{flex-direction:column;align-items:flex-end;gap:6px;display:flex}
|
|
350
350
|
.dbs-userStack{flex-direction:column;align-items:flex-end;gap:8px;min-width:0;max-width:min(525px,82%);display:flex}
|
|
351
|
-
.dbs-bubble{background:var(--dsw-specific-bubble);max-width:100%;color:var(--dsw-alias-label-primary);border-radius:22px;padding:10px 16px;font-size:16px;line-height:24px}
|
|
352
|
-
.dbs-botRow{color:var(--dsw-alias-label-primary);flex-direction:column;font-size:16px;line-height:28px;display:flex;align-items:flex-start;gap:4px;width:100
|
|
351
|
+
.dbs-bubble{background:var(--dsw-specific-bubble);max-width:100%;color:var(--dsw-alias-label-primary);border-radius:22px;padding:10px 16px;font-size:16px;line-height:24px;box-sizing:border-box}
|
|
352
|
+
.dbs-botRow{color:var(--dsw-alias-label-primary);flex-direction:column;font-size:16px;line-height:28px;display:flex;align-items:flex-start;gap:4px;width:100%;box-sizing:border-box}
|
|
353
353
|
.dbs-author{font-size:14px;line-height:22px;color:var(--dsw-alias-label-secondary);display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:3px;flex-wrap:wrap}
|
|
354
354
|
.dbs-authorName{font-weight:600;letter-spacing:.2px}
|
|
355
355
|
.dbs-md{min-width:0}
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
.dbs-mdRow{display:flex;align-items:flex-start;gap:0;min-width:0;width:100%}
|
|
430
430
|
.dbs-caret{flex:none;display:inline-block;width:3px;height:18px;margin-top:5px;border-radius:2px;background:var(--dsw-alias-label-primary);animation:dbsCaret 1s steps(2) infinite}
|
|
431
431
|
@keyframes dbsCaret{0%,49%{opacity:1}50%,100%{opacity:0}}
|
|
432
|
-
.dbs-botRow[data-compact="true"]{padding-left:
|
|
432
|
+
.dbs-botRow[data-compact="true"]{padding-left:30px}
|
|
433
433
|
.dbs-compactTime{display:flex;justify-content:flex-end;width:100%}
|
|
434
434
|
.dbs-compactTime .dbs-msgTime{padding:0}
|
|
435
435
|
.dbs-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:64px 24px 32px;min-height:50%}
|
|
@@ -1167,7 +1167,7 @@
|
|
|
1167
1167
|
* are: creating the first bot or group never requires a trip to the
|
|
1168
1168
|
* footer. `addAction` opens the same system-style modal as before.
|
|
1169
1169
|
*/
|
|
1170
|
-
function sectionRows(label, list, addAction, menuKind, menuItems) {
|
|
1170
|
+
function sectionRows(label, list, addAction, menuKind, menuItems, icon) {
|
|
1171
1171
|
const menuOpen = s.sectionMenu === menuKind;
|
|
1172
1172
|
// Group-header collapse contract, mirrored from 「工作区|Bots」:
|
|
1173
1173
|
// chevron + whole-row click toggle, body suppressed when closed.
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
ev.preventDefault();
|
|
1189
1189
|
toggle();
|
|
1190
1190
|
} },
|
|
1191
|
-
}, e(Chevron, { open: isOpen }), e('span', { style: { flex: 1 } }, label),
|
|
1191
|
+
}, e(Chevron, { open: isOpen }), e('span', { className: 'dbs-slot' }, icon), e('span', { style: { flex: 1 } }, label),
|
|
1192
1192
|
// Native workspace pattern: header actions appear on hover
|
|
1193
1193
|
// (.dbs-rowActions is hover-gated in .dbs-secHead CSS); their
|
|
1194
1194
|
// clicks must not fold the section with them.
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
}, 'groups', [
|
|
1226
1226
|
{ label: t('group.new'), onClick: () => patch({ create: 'group', createName: '', createMembers: {}, createWorking: false, error: null }) },
|
|
1227
1227
|
{ label: t('list.refresh'), onClick: () => { void refreshAgents(); } },
|
|
1228
|
-
])
|
|
1228
|
+
], e(PeopleGlyph, null))
|
|
1229
1229
|
: null, s.agentsLoaded
|
|
1230
1230
|
? sectionRows(t('section.singles'), singles, {
|
|
1231
1231
|
title: t('bot.new'),
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
}, 'singles', [
|
|
1234
1234
|
{ label: t('bot.new'), onClick: () => patch({ create: 'bot', createName: '', createDesc: '', createWorking: false, error: null }) },
|
|
1235
1235
|
{ label: t('list.refresh'), onClick: () => { void refreshAgents(); } },
|
|
1236
|
-
])
|
|
1236
|
+
], Ico('IconUserOutline16', { size: 14 }))
|
|
1237
1237
|
: null);
|
|
1238
1238
|
}
|
|
1239
1239
|
// =========================================================
|
|
@@ -1482,6 +1482,14 @@
|
|
|
1482
1482
|
return null;
|
|
1483
1483
|
return e('div', { className: 'dbs-mediaRefs' }, imgs.map((r) => e(MediaImage, { key: r, path: r })), files.map((r) => e(FileChip, { key: r, path: r })));
|
|
1484
1484
|
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Two-person glyph for the 群聊 section: the primitives set has no
|
|
1487
|
+
* group icon (verified against the shell bundle), so this follows the
|
|
1488
|
+
* inline-SVG policy used by SettingsGlyph — 1.5px outline strokes.
|
|
1489
|
+
*/
|
|
1490
|
+
function PeopleGlyph() {
|
|
1491
|
+
return e('svg', { viewBox: '0 0 16 16', width: '14', height: '14', 'aria-hidden': true }, e('g', { fill: 'none', stroke: 'currentColor', strokeWidth: 1.5, strokeLinecap: 'round' }, e('circle', { cx: 6.1, cy: 5.1, r: 2.6 }), e('path', { d: 'M1.7 13.6c0-2.8 2-4.8 4.4-4.8s4.4 2 4.4 4.8' }), e('path', { d: 'M10.7 2.9a2.7 2.7 0 0 1 0 4.6' }), e('path', { d: 'M11.9 9.1c1.6.7 2.6 2.3 2.6 4.5' })));
|
|
1492
|
+
}
|
|
1485
1493
|
/**
|
|
1486
1494
|
* Settings glyph — three sliders, drawn inline (the primitives package
|
|
1487
1495
|
* exposes no verified gear export; same policy as SendUpIcon).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-bots",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Multi-bot workbench for DeepSeek Harness: bridges the sdk-bots orchestration gateway (group chats, single bots) into the dsh web shell with official-styled UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|