@kadaliao/dsh-bots 0.0.0-stage → 0.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/lib/unfurl.mjs ADDED
@@ -0,0 +1,394 @@
1
+ /**
2
+ * Link previews for the bots chat: one URL in, one card description out.
3
+ *
4
+ * - YouTube (watch, youtu.be, shorts, live, embed): the video id plus oEmbed's
5
+ * title and channel, so the client can show the thumbnail and play inline.
6
+ * - X / Twitter posts: the post through the public fxtwitter API (text,
7
+ * author, photos, video, counts); profiles the same way.
8
+ * - Anything else: the page's OpenGraph / Twitter-card meta, `<title>` and icon.
9
+ *
10
+ * Arbitrary pages are only fetched from public addresses (no loopback, LAN or
11
+ * link-local targets, re-checked on every redirect), with a size and time cap.
12
+ * Results are cached in memory.
13
+ *
14
+ * @module @kadaliao/dsh-bots/lib/unfurl
15
+ */
16
+
17
+ import { lookup as dnsLookup } from 'node:dns/promises';
18
+ import { isIP } from 'node:net';
19
+
20
+ const UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126 Safari/537.36 dsh-bots-preview';
21
+ const MAX_HTML = 768 * 1024;
22
+ const MAX_REDIRECTS = 4;
23
+ const TIMEOUT_MS = 8000;
24
+ const OK_TTL = 6 * 3600_000;
25
+ const FAIL_TTL = 10 * 60_000;
26
+ const CACHE_MAX = 500;
27
+
28
+ const clip = (v, n) => {
29
+ const s = typeof v === 'string' ? v.replace(/\s+/g, ' ').trim() : '';
30
+ return s.length > n ? `${s.slice(0, n - 1)}…` : s;
31
+ };
32
+ /** Keep line breaks (post text), only trim and cap. */
33
+ const clipText = (v, n) => {
34
+ const s = typeof v === 'string' ? v.replace(/\r/g, '').trim() : '';
35
+ return s.length > n ? `${s.slice(0, n - 1)}…` : s;
36
+ };
37
+ /** X serves 48px `_normal` avatars by default; ask for 200px. */
38
+ const bigAvatar = (v) => (typeof v === 'string' ? v.replace(/_normal(\.\w+)$/, '_200x200$1') : '');
39
+ const num = (v) => (Number.isFinite(Number(v)) && v !== null && v !== '' ? Number(v) : undefined);
40
+
41
+ // --- URL kinds -----------------------------------------------------------------------
42
+
43
+ const YT_HOSTS = new Set(['youtube.com', 'www.youtube.com', 'm.youtube.com', 'music.youtube.com', 'youtube-nocookie.com', 'www.youtube-nocookie.com']);
44
+ const X_HOSTS = new Set(['x.com', 'www.x.com', 'twitter.com', 'www.twitter.com', 'mobile.twitter.com', 'mobile.x.com', 'fxtwitter.com', 'vxtwitter.com', 'fixupx.com']);
45
+ const YT_ID = /^[A-Za-z0-9_-]{11}$/;
46
+ const X_RESERVED = new Set(['home', 'explore', 'search', 'i', 'settings', 'notifications', 'messages', 'compose', 'intent', 'share', 'hashtag', 'login', 'signup', 'tos', 'privacy']);
47
+
48
+ /** `t=1m30s` / `t=90` / `start=90` → seconds. */
49
+ function startSeconds(v) {
50
+ if (!v) return undefined;
51
+ if (/^\d+$/.test(v)) return Number(v);
52
+ const m = /^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/.exec(v);
53
+ if (!m || !m[0]) return undefined;
54
+ return Number(m[1] ?? 0) * 3600 + Number(m[2] ?? 0) * 60 + Number(m[3] ?? 0);
55
+ }
56
+
57
+ /** A YouTube video id and start time, or null. */
58
+ export function youtubeOf(u) {
59
+ const host = u.hostname.toLowerCase();
60
+ let id = '';
61
+ if (host === 'youtu.be') id = u.pathname.split('/')[1] ?? '';
62
+ else if (YT_HOSTS.has(host)) {
63
+ const parts = u.pathname.split('/').filter(Boolean);
64
+ if (parts[0] === 'watch') id = u.searchParams.get('v') ?? '';
65
+ else if (['shorts', 'live', 'embed', 'v'].includes(parts[0])) id = parts[1] ?? '';
66
+ }
67
+ if (!YT_ID.test(id)) return null;
68
+ const start = startSeconds(u.searchParams.get('t') ?? u.searchParams.get('start') ?? '');
69
+ return { id, start, short: u.pathname.startsWith('/shorts/') };
70
+ }
71
+
72
+ /** `{user, id}` for a post, `{user}` for a profile, or null. */
73
+ export function xOf(u) {
74
+ if (!X_HOSTS.has(u.hostname.toLowerCase())) return null;
75
+ const parts = u.pathname.split('/').filter(Boolean);
76
+ if (parts.length >= 3 && (parts[1] === 'status' || parts[1] === 'statuses') && /^\d{1,25}$/.test(parts[2])) return { user: parts[0], id: parts[2] };
77
+ if (parts[0] === 'i' && parts[1] === 'web' && parts[2] === 'status' && /^\d{1,25}$/.test(parts[3] ?? '')) return { user: 'i', id: parts[3] };
78
+ if (parts.length === 1 && /^[A-Za-z0-9_]{1,15}$/.test(parts[0]) && !X_RESERVED.has(parts[0].toLowerCase())) return { user: parts[0] };
79
+ return null;
80
+ }
81
+
82
+ // --- public-address guard -----------------------------------------------------------
83
+
84
+ function privateV4(ip) {
85
+ const [a, b] = ip.split('.').map(Number);
86
+ return a === 0 || a === 10 || a === 127 || (a === 169 && b === 254) || (a === 172 && b >= 16 && b <= 31) || (a === 192 && b === 168) || (a === 100 && b >= 64 && b <= 127) || a >= 224;
87
+ }
88
+ /**
89
+ * True for loopback, private, link-local, CGNAT, multicast and unspecified addresses.
90
+ * 198.18.0.0/15 stays allowed: fake-IP proxies (Clash, Surge) resolve every public name into it.
91
+ */
92
+ export function isPrivateAddress(ip) {
93
+ const v = isIP(ip);
94
+ if (v === 4) return privateV4(ip);
95
+ if (v !== 6) return true;
96
+ const s = ip.toLowerCase();
97
+ if (s === '::' || s === '::1') return true;
98
+ const mapped = /^::ffff:(\d+\.\d+\.\d+\.\d+)$/.exec(s);
99
+ if (mapped) return privateV4(mapped[1]);
100
+ return /^f[cd]/.test(s) || /^fe[89ab]/.test(s) || /^ff/.test(s);
101
+ }
102
+
103
+ async function assertPublic(u, lookup) {
104
+ if (u.protocol !== 'http:' && u.protocol !== 'https:') throw new Error('only http(s) links');
105
+ if (u.port && !['80', '443', '8080', '8443'].includes(u.port)) throw new Error('unusual port');
106
+ const host = u.hostname.replace(/^\[|\]$/g, '').toLowerCase();
107
+ if (host === 'localhost' || host.endsWith('.localhost') || host.endsWith('.local') || host.endsWith('.internal') || !host.includes('.') && !isIP(host)) throw new Error('not a public host');
108
+ const addrs = isIP(host) ? [{ address: host }] : await lookup(host, { all: true, verbatim: true });
109
+ if (!addrs.length || addrs.some((a) => isPrivateAddress(a.address))) throw new Error('not a public address');
110
+ }
111
+
112
+ // --- HTML meta ------------------------------------------------------------------------
113
+
114
+ const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: ' ', hellip: '…', mdash: '—', ndash: '–', rsquo: '’', lsquo: '‘', rdquo: '”', ldquo: '“', middot: '·', copy: '©', reg: '®', trade: '™' };
115
+ export function decodeEntities(s) {
116
+ return String(s ?? '').replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (all, e) => {
117
+ if (e[0] === '#') {
118
+ const code = e[1] === 'x' || e[1] === 'X' ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
119
+ try {
120
+ return Number.isFinite(code) ? String.fromCodePoint(code) : all;
121
+ } catch {
122
+ return all;
123
+ }
124
+ }
125
+ return ENTITIES[e.toLowerCase()] ?? all;
126
+ });
127
+ }
128
+
129
+ function attrsOf(tag) {
130
+ const out = {};
131
+ for (const m of tag.matchAll(/([a-zA-Z_:][-a-zA-Z0-9_:.]*)\s*=\s*("([^"]*)"|'([^']*)'|([^\s"'>]+))/g)) out[m[1].toLowerCase()] = decodeEntities(m[3] ?? m[4] ?? m[5] ?? '');
132
+ return out;
133
+ }
134
+
135
+ /** OpenGraph / Twitter / plain meta of one HTML document, resolved against `base`. */
136
+ export function parseMeta(html, base) {
137
+ const head = html.slice(0, MAX_HTML);
138
+ const meta = {};
139
+ for (const m of head.matchAll(/<meta\b[^>]*>/gi)) {
140
+ const a = attrsOf(m[0]);
141
+ const key = (a.property ?? a.name ?? a.itemprop ?? '').toLowerCase();
142
+ if (key && a.content !== undefined && !(key in meta)) meta[key] = a.content;
143
+ }
144
+ let icon = '';
145
+ for (const m of head.matchAll(/<link\b[^>]*>/gi)) {
146
+ const a = attrsOf(m[0]);
147
+ const rel = (a.rel ?? '').toLowerCase();
148
+ if (a.href && /(^|\s)(icon|shortcut icon|apple-touch-icon)(\s|$)/.test(rel) && (!icon || rel.includes('apple-touch-icon'))) icon = a.href;
149
+ }
150
+ const titleTag = /<title[^>]*>([\s\S]*?)<\/title>/i.exec(head)?.[1] ?? '';
151
+ const abs = (v) => {
152
+ if (!v) return '';
153
+ try {
154
+ const u = new URL(v, base);
155
+ return u.protocol === 'http:' || u.protocol === 'https:' ? u.href : '';
156
+ } catch {
157
+ return '';
158
+ }
159
+ };
160
+ const image = abs(meta['og:image:secure_url'] ?? meta['og:image'] ?? meta['og:image:url'] ?? meta['twitter:image'] ?? meta['twitter:image:src'] ?? meta.image);
161
+ const w = num(meta['og:image:width']);
162
+ const hgt = num(meta['og:image:height']);
163
+ return {
164
+ title: clip(meta['og:title'] ?? meta['twitter:title'] ?? decodeEntities(titleTag), 200),
165
+ description: clip(meta['og:description'] ?? meta['twitter:description'] ?? meta.description, 400),
166
+ site: clip(meta['og:site_name'] ?? meta['application-name'] ?? '', 80),
167
+ image,
168
+ large: Boolean(image) && (meta['twitter:card'] === 'summary_large_image' || (w !== undefined && hgt !== undefined && w >= 400 && w / hgt >= 1.3)),
169
+ icon: abs(icon) || abs('/favicon.ico'),
170
+ video: abs(meta['og:video:secure_url'] ?? meta['og:video:url'] ?? meta['og:video']),
171
+ author: clip(meta.author ?? meta['article:author'] ?? meta['twitter:creator'] ?? '', 80),
172
+ published: clip(meta['article:published_time'] ?? '', 40),
173
+ };
174
+ }
175
+
176
+ function charsetOf(type, bytes) {
177
+ const fromHeader = /charset=["']?([\w-]+)/i.exec(type ?? '')?.[1];
178
+ if (fromHeader) return fromHeader;
179
+ const sniff = new TextDecoder('latin1').decode(bytes.subarray(0, 4096));
180
+ return /<meta[^>]+charset=["']?([\w-]+)/i.exec(sniff)?.[1] ?? 'utf-8';
181
+ }
182
+
183
+ async function readCapped(res, cap) {
184
+ if (!res.body?.getReader) return new Uint8Array(await res.arrayBuffer()).subarray(0, cap);
185
+ const reader = res.body.getReader();
186
+ const chunks = [];
187
+ let size = 0;
188
+ for (;;) {
189
+ const { done, value } = await reader.read();
190
+ if (done) break;
191
+ chunks.push(value);
192
+ size += value.length;
193
+ if (size >= cap) {
194
+ try {
195
+ await reader.cancel();
196
+ } catch {
197
+ // Already closed.
198
+ }
199
+ break;
200
+ }
201
+ }
202
+ const out = new Uint8Array(Math.min(size, cap));
203
+ let at = 0;
204
+ for (const c of chunks) {
205
+ const part = c.subarray(0, out.length - at);
206
+ out.set(part, at);
207
+ at += part.length;
208
+ if (at >= out.length) break;
209
+ }
210
+ return out;
211
+ }
212
+
213
+ // --- providers ------------------------------------------------------------------------
214
+
215
+ async function getJsonFrom(fetchImpl, url, signal) {
216
+ const res = await fetchImpl(url, { headers: { accept: 'application/json', 'user-agent': 'dsh-bots-preview/1.0' }, signal });
217
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
218
+ return res.json();
219
+ }
220
+
221
+ async function youtubeCard(u, yt, fetchImpl, signal) {
222
+ const card = {
223
+ ok: true,
224
+ kind: 'youtube',
225
+ url: u.href,
226
+ videoId: yt.id,
227
+ start: yt.start,
228
+ short: yt.short,
229
+ site: 'YouTube',
230
+ image: `https://i.ytimg.com/vi/${yt.id}/hqdefault.jpg`,
231
+ title: '',
232
+ author: '',
233
+ };
234
+ try {
235
+ const o = await getJsonFrom(fetchImpl, `https://www.youtube.com/oembed?format=json&url=${encodeURIComponent(`https://www.youtube.com/watch?v=${yt.id}`)}`, signal);
236
+ card.title = clip(o?.title, 200);
237
+ card.author = clip(o?.author_name, 80);
238
+ card.authorUrl = typeof o?.author_url === 'string' ? o.author_url : undefined;
239
+ } catch {
240
+ // The id alone still plays.
241
+ }
242
+ return card;
243
+ }
244
+
245
+ function mediaOf(list) {
246
+ return (Array.isArray(list) ? list : [])
247
+ .slice(0, 4)
248
+ .map((m) => {
249
+ if (m?.type === 'photo') return { type: 'photo', url: m.url, width: num(m.width), height: num(m.height) };
250
+ if (m?.type === 'video' || m?.type === 'gif') {
251
+ const mp4 = (Array.isArray(m.variants) ? m.variants : []).filter((v) => v?.content_type === 'video/mp4').sort((a, b) => (a.bitrate ?? 0) - (b.bitrate ?? 0));
252
+ const pick = mp4.find((v) => (v.bitrate ?? 0) >= 800_000) ?? mp4[mp4.length - 1];
253
+ return { type: m.type, url: pick?.url ?? m.url, thumb: m.thumbnail_url, width: num(m.width), height: num(m.height), duration: num(m.duration) };
254
+ }
255
+ return null;
256
+ })
257
+ .filter((m) => m && typeof m.url === 'string');
258
+ }
259
+
260
+ function postOf(t) {
261
+ return {
262
+ text: clipText(t?.text, 1200),
263
+ author: { name: clip(t?.author?.name, 80), handle: clip(t?.author?.screen_name, 40), avatar: bigAvatar(t?.author?.avatar_url), verified: Boolean(t?.author?.verification?.verified) },
264
+ createdAt: num(t?.created_timestamp) ? num(t.created_timestamp) * 1000 : undefined,
265
+ media: mediaOf(t?.media?.all ?? [...(t?.media?.photos ?? []), ...(t?.media?.videos ?? [])]),
266
+ };
267
+ }
268
+
269
+ async function xCard(u, x, fetchImpl, signal) {
270
+ if (x.id) {
271
+ const d = await getJsonFrom(fetchImpl, `https://api.fxtwitter.com/${encodeURIComponent(x.user)}/status/${x.id}`, signal);
272
+ const t = d?.tweet;
273
+ if (!t) throw new Error(d?.message || 'post not found');
274
+ const post = postOf(t);
275
+ return {
276
+ ok: true,
277
+ kind: 'x',
278
+ url: typeof t.url === 'string' ? t.url : u.href,
279
+ site: 'X',
280
+ ...post,
281
+ likes: num(t.likes),
282
+ retweets: num(t.retweets),
283
+ replies: num(t.replies),
284
+ views: num(t.views),
285
+ quote: t.quote ? { url: t.quote.url, ...postOf(t.quote) } : undefined,
286
+ };
287
+ }
288
+ const d = await getJsonFrom(fetchImpl, `https://api.fxtwitter.com/${encodeURIComponent(x.user)}`, signal);
289
+ const p = d?.user;
290
+ if (!p) throw new Error(d?.message || 'profile not found');
291
+ return {
292
+ ok: true,
293
+ kind: 'x-profile',
294
+ url: typeof p.url === 'string' ? p.url : u.href,
295
+ site: 'X',
296
+ author: { name: clip(p.name, 80), handle: clip(p.screen_name, 40), avatar: bigAvatar(p.avatar_url), verified: Boolean(p.verification?.verified) },
297
+ text: clipText(p.description, 400),
298
+ banner: typeof p.banner_url === 'string' ? p.banner_url : '',
299
+ followers: num(p.followers),
300
+ following: num(p.following),
301
+ };
302
+ }
303
+
304
+ async function pageCard(u, fetchImpl, lookup, signal) {
305
+ let url = u;
306
+ let res;
307
+ for (let hop = 0; ; hop += 1) {
308
+ await assertPublic(url, lookup);
309
+ res = await fetchImpl(url.href, { redirect: 'manual', signal, headers: { 'user-agent': UA, accept: 'text/html,application/xhtml+xml;q=0.9,image/*;q=0.8,*/*;q=0.5', 'accept-language': 'en,zh;q=0.8' } });
310
+ const loc = res.status >= 300 && res.status < 400 ? res.headers.get('location') : null;
311
+ if (!loc) break;
312
+ if (hop >= MAX_REDIRECTS) throw new Error('too many redirects');
313
+ try {
314
+ await res.body?.cancel?.();
315
+ } catch {
316
+ // Nothing to drain.
317
+ }
318
+ url = new URL(loc, url);
319
+ }
320
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
321
+ const type = res.headers.get('content-type') ?? '';
322
+ if (/^image\//i.test(type)) {
323
+ try {
324
+ await res.body?.cancel?.();
325
+ } catch {
326
+ // Nothing to drain.
327
+ }
328
+ return { ok: true, kind: 'image', url: u.href, image: url.href, site: url.hostname.replace(/^www\./, ''), title: decodeURIComponent(url.pathname.split('/').pop() || url.hostname) };
329
+ }
330
+ if (type && !/html|xml/i.test(type)) throw new Error(`not a page (${type.split(';')[0]})`);
331
+ const bytes = await readCapped(res, MAX_HTML);
332
+ let html;
333
+ try {
334
+ html = new TextDecoder(charsetOf(type, bytes)).decode(bytes);
335
+ } catch {
336
+ html = new TextDecoder('utf-8').decode(bytes);
337
+ }
338
+ const m = parseMeta(html, url.href);
339
+ if (!m.title && !m.description && !m.image) throw new Error('no preview data');
340
+ return { ok: true, kind: 'page', url: u.href, finalUrl: url.href !== u.href ? url.href : undefined, site: m.site || url.hostname.replace(/^www\./, ''), host: url.hostname.replace(/^www\./, ''), ...m };
341
+ }
342
+
343
+ // --- entry ------------------------------------------------------------------------------
344
+
345
+ /**
346
+ * Describe one link for a preview card.
347
+ * @param {string} raw
348
+ * @param {{fetchImpl?: typeof fetch, lookup?: Function, timeoutMs?: number}} [opts]
349
+ * @returns {Promise<object>} `{ok: true, kind, url, ...}` or `{ok: false, url, reason}`.
350
+ */
351
+ export async function unfurl(raw, { fetchImpl = fetch, lookup = dnsLookup, timeoutMs = TIMEOUT_MS } = {}) {
352
+ let u;
353
+ try {
354
+ u = new URL(String(raw ?? '').trim());
355
+ } catch {
356
+ return { ok: false, url: String(raw ?? ''), reason: 'not a URL' };
357
+ }
358
+ if (u.protocol !== 'http:' && u.protocol !== 'https:') return { ok: false, url: u.href, reason: 'only http(s) links' };
359
+ const signal = AbortSignal.timeout(timeoutMs);
360
+ try {
361
+ const yt = youtubeOf(u);
362
+ if (yt) return await youtubeCard(u, yt, fetchImpl, signal);
363
+ const x = xOf(u);
364
+ if (x) {
365
+ try {
366
+ return await xCard(u, x, fetchImpl, signal);
367
+ } catch (error) {
368
+ return { ok: false, kind: 'x', url: u.href, reason: error?.message ?? String(error) };
369
+ }
370
+ }
371
+ return await pageCard(u, fetchImpl, lookup, signal);
372
+ } catch (error) {
373
+ return { ok: false, url: u.href, reason: error?.name === 'TimeoutError' ? 'timed out' : error?.message ?? String(error) };
374
+ }
375
+ }
376
+
377
+ /** `unfurl` behind an in-memory cache that also merges concurrent requests for one URL. */
378
+ export function createUnfurler(opts = {}) {
379
+ const cache = new Map();
380
+ const now = opts.now ?? Date.now;
381
+ return (raw) => {
382
+ const key = String(raw ?? '').trim();
383
+ const hit = cache.get(key);
384
+ if (hit && hit.until > now()) return hit.value;
385
+ const value = unfurl(key, opts).then((card) => {
386
+ cache.set(key, { value: Promise.resolve(card), until: now() + (card.ok ? OK_TTL : FAIL_TTL) });
387
+ return card;
388
+ });
389
+ cache.delete(key);
390
+ cache.set(key, { value, until: now() + TIMEOUT_MS * 2 });
391
+ while (cache.size > CACHE_MAX) cache.delete(cache.keys().next().value);
392
+ return value;
393
+ };
394
+ }
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Bots",
4
+ "description": "Grok-style bots: each with its own avatar, persona, skills, apps and scheduled tasks. Bots message each other, and a dispatcher bot hands out the work."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Bots",
4
+ "description": "Grok 风格的 bot:每个 bot 有自己的头像、人设、技能、应用和定时任务;bot 之间私信协作,主 bot 负责分派与调度。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@kadaliao/dsh-bots",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "type": "module",
5
+ "description": "Grok-style bots for DeepSeek Harness: create bots with their own avatar, persona, skills, apps and scheduled tasks; they message each other and a dispatcher bot hands out the work.",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./client": "./client.js",
9
+ "./locale/*.json": "./locale/*.json",
10
+ "./icon": "./icon.svg"
11
+ },
12
+ "files": [
13
+ "index.js",
14
+ "client.js",
15
+ "lib/*.mjs",
16
+ "cordis.patch.yml",
17
+ "locale/*.json",
18
+ "icon.svg",
19
+ "README.md",
20
+ "README.zh-CN.md"
21
+ ],
22
+ "dsh": {
23
+ "bundle": {
24
+ "patch": "./cordis.patch.yml"
25
+ },
26
+ "client": {
27
+ "platform": "web",
28
+ "immediately": true,
29
+ "inject": [
30
+ "@deepseek-ai/dsh-client-ui-conversation",
31
+ "@deepseek-ai/dsh-client-ui-renderer",
32
+ "@deepseek-ai/dsh-client-locale",
33
+ "@deepseek-ai/dsh-client-ui-primitives",
34
+ "@deepseek-ai/dsh-client-ui-layout",
35
+ "@deepseek-ai/dsh-client-ui-commands",
36
+ "@deepseek-ai/dsh-client-ui-workspace"
37
+ ]
38
+ }
39
+ },
40
+ "peerDependencies": {
41
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6 <0.3.0"
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/kadaliao/dsh-plugins.git",
46
+ "directory": "plugins/bots"
47
+ },
48
+ "homepage": "https://github.com/kadaliao/dsh-plugins/tree/main/plugins/bots",
49
+ "license": "MIT",
50
+ "keywords": ["dsh", "deepseek-harness", "dsh-plugin", "bots", "agents", "multi-agent", "persona", "schedule", "mcp", "computer-use"]
51
+ }