Repository navigation
Expand file tree
/
Copy pathNOTICE
More file actions
266 lines (236 loc) · 15.2 KB
/
Copy pathNOTICE
File metadata and controls
266 lines (236 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
DS Bot
Copyright 2026 Fei2411 and the DS Bot contributors
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
==============================================================================
Third-party code in this repository
==============================================================================
DeepSeek Harness (https://github.com/deepseek-ai/deepseek-harness)
MIT License, Copyright (c) 2026 DeepSeek
- ds-bot/dev/desktop-linux/launch.mts follows the steps of
apps/desktop/scripts/dev.ts in DeepSeek Harness and reuses a few of its
lines (the release record and the Electron launch arguments). It is a
developer script for screenshots on Linux and is not in the npm package.
- app/src/host.mjs and app/src/profile.mjs follow
apps/desktop-host/src/index.ts: the profile boot and the ready, fatal and
shutdown messages. app/src/office-patch.mjs follows
apps/desktop-host/src/office.ts: the workspace-dependencies and skill-office
plugin rows with the payload's Node and the unpacked LibreOffice Kit CLI.
- ds-bot/src/office/skills/office/SKILL.md adapts the office routing skill
(assets/office/SKILL.md in @deepseek-ai/dsh-skill-office): the routing body
is kept, with one added row that routes package checks and in-place edits
to office-tools.
- app/scripts/prepare-runtime.mjs and app/scripts/primary-runtime.lock.json are a
JavaScript port of scripts/primary-runtime/ (prepare.ts, prune-python-tests.ts
and lock.json): the pinned Python, Node and wheel downloads with checksum
verification, the wheel test pruning and the Office skill asset copy.
- app/src/host-process.mjs follows apps/desktop/src/host-process.ts: the
Host in Electron's Node mode and the shutdown escalation.
- app/src/main.mjs and app/src/window-frame.mjs follow apps/desktop/src/main.ts
for the window options (the Windows caption-button overlay, its colors and
the native theme; the macOS traffic lights and sidebar vibrancy, and the
opaque fill while the window is minimized or hidden). app/src/preload.cjs adapts
apps/desktop/src/preload-windows.ts, apps/desktop/src/preload-platform.ts
and apps/desktop/src/preload-theme.ts: the caption-band marks, the
fullscreen mark, the caption-color measure and the theme sync.
- app/src/shell.mjs, app/src/tray.mjs and app/src/background-notice.mjs follow
apps/desktop/src/tray.ts and apps/desktop/src/background-notice.ts: the
system tray with its menu, the window that hides instead of closing, and
the one-time confirmation before it hides.
- app/src/bot-browser.mjs adapts apps/desktop/src/browser-guests.ts, and
the browser part of app/src/preload.cjs follows
apps/desktop/src/preload-browser.ts: the webview leases, the attachment
checks and fixed guest preferences, the session policy and the new-window
requests.
- app/engine/cordis.patch.yml follows the bundle patch of
@deepseek-ai/dsh-web-app (packages/bundle/web-app/cordis.patch.yml): the
transport and host-service rows and the agent-plane rows it turns off.
app/engine/preset-standard.patch.yml copies its standard preset
(presets/standard.patch.yml), including the plan-mode prompt text,
without the goal rows.
- .agents/skills/record-browser-gif/ comes from the skill of the same name
in DeepSeek Harness (.agents/skills/record-browser-gif/): SKILL.md is
adapted and translated for this repository; scripts/encode_gif.py and
scripts/test_encode_gif.py are copied unchanged.
Full license text:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Simple Icons (https://simpleicons.org)
CC0 1.0 Universal, the Simple Icons contributors
- ds-bot/src/client/connector-marks.js keeps the single-color brand path of
each connector service from Simple Icons 16.36.0 (the SI table), the
Gmail, iCloud and QQ paths for the mailbox rows, and the Telegram, WeChat
and Discord paths for the IM page.
Context7 (https://github.com/upstash/context7)
MIT License, Copyright (c) Upstash
- ds-bot/src/client/connector-marks.js keeps the Context7 connector mark
from public/context7-icon.svg, without the brand square.
MIT license text: see the DeepSeek Harness section above.
Microsoft Playwright (https://github.com/microsoft/playwright) and
Playwright MCP (https://github.com/microsoft/playwright-mcp)
Apache License, Version 2.0, Copyright (c) Microsoft Corporation
- ds-bot/src/host/browser/ follows the browser tools of Playwright MCP:
the ARIA page snapshot with [ref=eN] element refs, a fresh snapshot
returned by every action, and the per-action tool set (open, snapshot,
click, upload, type, select, press, tabs, back, screenshot). The
session drives the browser through the Playwright API itself
(ariaSnapshot({ mode: 'ai' }) and the aria-ref locators those refs
resolve to). The playwright package is not bundled: the plugin loads
it at run time from the install it is pointed at (playwrightUrl),
the same way it uses the host's @deepseek-ai/* packages.
The license is the same Apache License, Version 2.0 that covers this
repository; see LICENSE for the text.
DSH Remote (https://github.com/liguobao/deepseek-harness-remote)
MIT License, Copyright (c) 2026 DSH Remote contributors
The phone link code in link/ adapts code from commit 4d888ad of DSH Remote.
DS Bot changed the names, the Noise prologue label, the fragment marker, the
hello and the pairing, so the protocol is DS Bot's own and does not talk to
DSH Remote.
- link/src/noise.ts adapts packages/crypto/src/noise.ts (the Noise
IK session and the remote-key check).
- link/src/keys.ts copies the key pair, fingerprint and Base64URL
functions of packages/crypto/src/index.ts.
- link/src/frames.ts adapts packages/protocol/src/index.ts: the
control frame and message envelopes, the frame size limits, and
SecureMessageCodec. It checks frames by hand instead of with zod.
- link/src/transport.ts copies packages/webrtc/src/transport.ts and
packages/webrtc/src/websocket-backpressure.ts.
- link/src/relay-transport.ts adapts RelayTransport in
packages/webrtc/src/index.ts.
- link/src/secure-transport.ts adapts
apps/android/src/services/secure-transport.ts.
- link/src/rpc-client.ts adapts RemoteClientCore in
packages/client-core/src/index.ts.
- link/server/gateway.ts adapts apps/server/src/gateway.ts (the hello
check, the link stages, the Relay counters, the heartbeat and the rate
limits). It drops accounts and WebRTC signaling.
- link/src/host.ts follows the flow of HostServerConnection in
packages/plugin/src/server-connection.ts (reconnect, connect.incoming,
the responder handshake, Relay sends), written again for DS Bot.
- mobile/src/polyfills.ts copies apps/android/src/polyfills.ts.
Full license text: the same MIT terms as printed under DeepSeek Harness
above, with the copyright line of DSH Remote.
dsh-im (https://github.com/xmanrui/dsh-im)
MIT License, Copyright (c) 2026 xmanrui
- ds-bot/src/host/im/platforms/telegram.js follows the Telegram Bot API
mapping of dsh-im's telegram channel (long polling, getFile downloads,
callback queries, and its send/edit calls), and
ds-bot/src/host/im/format.js follows the Markdown chunking of
src/channels/shared/markdown-chunks.mjs and telegram-rich-message.mjs
there: code fences stay whole where they fit and are re-fenced when
they must be split.
- ds-bot/src/host/im/platforms/discord.js follows the gateway and REST
mapping of dsh-im's discord channel (src/channels/discord/discord-runtime.mjs
and discord-api.mjs): resume with session_id and resume_gateway_url,
component presses answered by a deferred update, message chunking.
- ds-bot/src/host/im/platforms/slack.js follows the Socket Mode handling of
src/channels/slack/slack-runtime.mjs and slack-api.mjs: every envelope
ACKed, disconnect frames reconnect, message and app_mention events, and
file downloads from url_private.
- ds-bot/src/host/im/platforms/weixin.js follows the iLink mapping of
src/channels/weixin/weixin-api.mjs and weixin-controller.mjs: the QR
login poll, getupdates with the get_updates_buf cursor, context_token
per user, typing tickets, and the AES image download.
- ds-bot/src/host/im/platforms/wecom.js follows the aibot frame mapping of
src/channels/wecom/wecom-runtime.mjs and wecom-cards.mjs: subscribe,
ping, req_id replies, proactive sends and template-card events.
- ds-bot/src/host/im/platforms/qq.js follows the gateway opcodes and
message fields of @tencent-connect/qqbot-nodejs
(https://github.com/tencent-connect/qqbot-nodejs, MIT): app access
token, hello/heartbeat/identify/resume/reconnect/invalid session,
C2C and group @ events, passive replies with msg_id and msg_seq.
- ds-bot/src/host/im/platforms/dingtalk.js follows the stream frames of
dingtalk-stream (https://github.com/alibaba-dingtalk/dingtalk-stream-nodejs,
MIT): connections/open, ACKs by messageId, system pings, sessionWebhook
and the robot OpenAPI fallback.
- ds-bot/src/host/im/platforms/feishu.js follows the long-connection
pbbp2 frame protocol of @larksuiteoapi/node-sdk
(https://github.com/larksuite/node-sdk, MIT): the protobuf frame shape,
ping/pong, data-frame ACKs with biz_rt, and split-payload reassembly.
- ds-bot/src/client/im-page.js renders the pairing code with
qrcode-generator (https://github.com/kazuhikoarase/qrcode-generator,
MIT, Copyright (c) Kazuhiko Arase).
The MIT License text:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
No other third-party code is copied into this repository. At run time the
plugin uses the @deepseek-ai/* packages of the DeepSeek Harness install it
runs in; they are not bundled. The bundled ds-bot/office.js includes
@xmldom/xmldom (https://github.com/xmldom/xmldom, MIT License, Copyright (c)
jindw and contributors) from npm. esbuild is a build tool only. The plugin's
client.js bundles qrcode-generator from npm (MIT, Copyright (c) 2009 Kazuhiko
Arase), and its link.js bundles the phone link from link/ with the packages
it uses, listed below. The desktop app
in app/ installs the pinned @deepseek-ai/* packages, Electron and pnpm from
npm; they keep their own licenses. The build of its window (app/ui) bundles,
from npm, React and React DOM (MIT, Copyright (c) Meta Platforms, Inc. and
affiliates), and react-markdown and remark-gfm with the packages they use
(MIT, most of them Copyright (c) Titus Wormer; @ungap/structured-clone is ISC,
Copyright (c) Andrea Giammarchi). Vite is a build tool only. The mobile app in
mobile/ bundles, from npm, Expo and React Native (MIT, Copyright (c) 650
Industries, Inc. and Meta Platforms, Inc. and affiliates). The phone link in
link/, which the mobile app bundles and the Relay Server runs, uses from npm
@noble/ciphers, @noble/curves and @noble/hashes (MIT, Copyright (c) Paul
Miller), @lukeburns/clatterjs (MIT, Copyright (c) 2025 Joni Lepistö) and, in
the Server only, ws (MIT, Copyright (c) 2011 Einar Otto Stangvik, (c) 2013
Arnout Kazemier and contributors, (c) 2016 Luigi Pinca and contributors).
==============================================================================
Projects that gave us ideas (no code copied)
==============================================================================
We thank these projects for the designs they published. DS Bot learned from
their ideas; it does not contain their code.
- AgentMemoryRepo (https://github.com/AgentMemoryRepo/agentmemoryrepo), MIT:
the Markdown format of Bot memory (one entry per line with [key: value]
metadata, a MEMORY.md index that links topic files).
- OpenAI Codex (https://github.com/openai/codex), Apache-2.0:
keeping the user's messages next to the summary in a checkpoint, and
message anchors for searching earlier chat.
- OpenMausBot (https://github.com/milind-soni/OpenMausBot), Apache-2.0:
group chat rounds and @mention relays between Bots.
- Hermes Agent (https://github.com/NousResearch/hermes-agent) and
Hermes Bot Mode (https://github.com/NousResearch/Hermes-Bot-Mode), MIT:
one Session per member per group chat, and the list of earlier user
messages that the plugin, not the model, writes into the handoff.
- OpenCode (https://github.com/sst/opencode), MIT;
goose (https://github.com/block/goose), Apache-2.0;
pi (https://github.com/badlogic/pi-mono), MIT;
Gemini CLI (https://github.com/google-gemini/gemini-cli), Apache-2.0:
when to condense a long conversation, and what a handoff note holds.
- obelisk (https://github.com/tommy0103/obelisk), AGPL-3.0:
searching a Bot's own chat with a SQLite FTS5 index ranked by BM25.
- DeepSeek Harness Voice Input plugin
(packages/experimental/client-ui-voice-input), MIT: the voice chat
records with the same steps (record, resample to 16 kHz mono, PCM16 WAV)
before it calls the plugin's speech service.
Agent logos (ds-bot/src/client/agent-logos.js)
The logos name the agent CLI a Bot runs on. Each is a trademark of its owner:
Claude (Anthropic), Cursor (Anysphere), Gemini (Google), OpenCode (SST),
Cline (Cline Bot Inc.), Qwen (Alibaba Cloud), Devin (Cognition AI),
OpenAI (OpenAI). DS Bot is not affiliated with or endorsed by these owners.
Vector marks from Simple Icons (https://simpleicons.org), CC0-1.0.
Devin and OpenAI marks from the vendors' application icons.