dsh-lark-bot 0.8.0 → 0.8.2

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/README.md CHANGED
@@ -10,6 +10,7 @@
10
10
  <img src="https://img.shields.io/badge/runtime-Node.js%20%E2%89%A5%2022-339933" alt="Node">
11
11
  <img src="https://img.shields.io/badge/License-AGPLv3-blue" alt="License">
12
12
  <img src="https://img.shields.io/badge/status-released-blue" alt="Status">
13
+ <a href="https://dshfind.com/zh/plugins/PlutoKeating/dsh-lark-bot?ref=badge"><img src="https://dshfind.com/api/badge/PlutoKeating/dsh-lark-bot?lang=zh" alt="dshfind"></a>
13
14
  </p>
14
15
 
15
16
  <br>
@@ -24,6 +25,49 @@
24
25
 
25
26
  </div>
26
27
 
28
+ <div align="center">
29
+
30
+ <a href="https://dshfind.com/zh/plugins/PlutoKeating/dsh-lark-bot?ref=badge"><img src="https://dshfind.com/api/card/PlutoKeating/dsh-lark-bot?lang=zh" alt="dshfind" width="440"></a>
31
+
32
+ </div>
33
+
34
+ ---
35
+
36
+ ## 项目介绍 | What & Why
37
+
38
+ **用在什么场景?** 你在飞书 / Lark(私聊、群聊、话题)里指挥本机 DeepSeek Harness(`dsh`)
39
+ coding agent:发消息就收流式卡片与工具调用过程,把项目工作区、并行任务、会话归档都收进同一
40
+ 个协作流。适合需要多项目隔离、角色分工、并行任务与故障自愈的开发者与团队。
41
+
42
+ **Where does it fit?** Drive your local DeepSeek Harness (`dsh`) coding agent from Feishu /
43
+ Lark — DMs, group chats and topics — with streaming cards, isolated project workspaces,
44
+ parallel tasks, session archival and self-healing when things break.
45
+
46
+ **功能亮点(以下六项为 dsh-lark-bot 全网独有组合)| Highlights (exclusive to dsh-lark-bot)**:
47
+
48
+ - 🆘 **Guardian 安全网守护 —— “永远叫得应”**:DSH 进程一崩,其他方案的机器人就变成死号,只能回
49
+ 服务器手动重启;dsh-lark-bot 的守护进程在 DSH 崩溃后**仍然会在飞书回复你**——告诉你引擎已挂、
50
+ 可进入仅核心安全模式,直接在飞书对话里发控制信号把它重启。**唯一“出故障时用户不会失联”的项目。**
51
+ *When DSH crashes, this bot still answers in Feishu: enter core-only safe mode and send a
52
+ control signal to restart it. The only project where users never lose contact.*
53
+ - 👥 **多角色 Agent —— “一个机器人,一整个团队”**:在飞书里用 `/role` 切换或指派 PM / 开发 /
54
+ 文档等角色,每个角色有持久化的人设、模型偏好与规则。
55
+ *Switch or assign PM / dev / docs personas in chat with `/role` — each with its own
56
+ persisted persona. One bot, a whole team.*
57
+ - ⚡ **并行多任务 —— “不用排队”**:同一群里可以**同时跑多个任务**,各自会话隔离;其他方案同聊
58
+ 串行,上一个没跑完下一个只能等。
59
+ *Run multiple tasks in the same chat simultaneously with isolated sessions — no queueing.*
60
+ - 🗂 **会话归档与清理 —— “会话列表不会烂掉”**:`/archive` 归档旧任务、`/retention` 配置自动保留
61
+ 策略;长期使用也不会越积越多。
62
+ *Archive old tasks and auto-prune with retention policies — your session list stays clean.*
63
+ - 📣 **跨会话主动通知 + @人 —— “活干完了它会来找你”**:Agent 在 A 群跑完任务,可以**主动发消息到
64
+ B 群或私聊并 @ 你**;而不是“你问它答”。
65
+ *Agents proactively report to other chats or DMs and @mention you when work finishes.*
66
+ - 🔑 **对话内管理模型和密钥 —— “不用离开飞书”**:`/providers` `/provider` `/key` 直接在聊天里
67
+ 查看、切换供应商、热更新密钥,全程闭环。
68
+ *View providers, switch vendors and hot-update API keys entirely in chat — no server-side
69
+ edits.*
70
+
27
71
  ---
28
72
 
29
73
  ## 快速开始 | Quick Start(普通用户先看这里 | for end users)
@@ -325,7 +369,7 @@ tasks and session archival.
325
369
  - **平台**:Linux / macOS / Windows(飞书 WebSocket 出站长连接,免公网服务器 / 域名 / 内网穿透)。
326
370
  - 默认 adapter 为官方 **`@deepseek-ai/dsh-sdk-client`**(SDK JSON-RPC runtime,原生 session 续跑 +
327
371
  token 级流式事件);`DSH_LARK_ADAPTER=acp` 切到官方 **ACP server**(审批卡);`headless` 保留旧版
328
- 子进程 fallback。首次启动自动在 `~/.dsh/profiles/dsh-lark`(或 `dsh-lark-acp`)创建 runtime profile。
372
+ 子进程 fallback。首次启动自动在 `~/.dsh/profiles/dsh-lark-sdk`(或 `dsh-lark-acp`)创建 runtime profile。
329
373
 
330
374
  - **DeepSeek Harness (`dsh`)**: verified against **dsh 0.1.0-rc.6** (last verified 2026-08-15: SDK JSON-RPC / ACP
331
375
  runtime handshake + real streaming task verification), connected through the official
@@ -339,7 +383,7 @@ tasks and session archival.
339
383
  native session continuation and token-level streaming events); `DSH_LARK_ADAPTER=acp` switches
340
384
  to the official **ACP server** (approval cards); `headless` keeps the legacy subprocess
341
385
  fallback. On first start the bot creates the runtime profile at
342
- `~/.dsh/profiles/dsh-lark` (or `dsh-lark-acp`).
386
+ `~/.dsh/profiles/dsh-lark-sdk` (or `dsh-lark-acp`).
343
387
 
344
388
  ## 已知限制 | Known limitations
345
389
 
@@ -680,21 +724,33 @@ and relaunches the full profile on `/safemode exit`.
680
724
 
681
725
  | 平台 Platform | 状态 Status | 说明 Notes |
682
726
  | :--- | :--- | :--- |
683
- | [awesome-dsh-plugins](https://github.com/AdamPlatin123/awesome-dsh-plugins) | ✅ 已收录 · 运行级可用<br>Listed · runtime-verified | 社区榜单标注 `✅ 运行级可用`,2026-08-14 agent 实测通过;v0.8.0 更新已提交(见下文链接)<br>Shown as `✅ 运行级可用` in the community leaderboard; agent-tested on 2026-08-14; v0.8.0 update submitted (see below) |
684
- | [dshfind](https://github.com/hikariming/dshfind) | ✅ 已收录(自动聚合)<br>Listed (auto-aggregated) | 插件市场从 GitHub `dsh-plugin` topic 自动聚合;本仓库已带该 topic,刷新后展示最新版本与数据<br>Marketplace auto-aggregates from the GitHub `dsh-plugin` topic; this repo carries the topic, so the latest version shows after the next refresh |
727
+ | [awesome-dsh-plugins](https://github.com/AdamPlatin123/awesome-dsh-plugins) | ✅ 已收录 · 运行级可用<br>Listed · runtime-verified | 社区榜单标注 `✅ 运行级可用`,2026-08-14 agent 实测通过;收录条目已更新至 v0.8.0([PR #127](https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/127) 已合并)<br>Shown as `✅ 运行级可用` in the community leaderboard; agent-tested on 2026-08-14; the v0.8.0 entry update ([PR #127](https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/127)) is merged |
728
+ | [dshfind](https://dshfind.com/zh/plugins/PlutoKeating/dsh-lark-bot) | ✅ 已收录 · 详情页已上线<br>Listed · detail page live | 中英日韩四语详情页已上线(含安装命令与亮点),条目名称正常([issue #2](https://github.com/hikariming/dshfind/issues/2) 已关闭);顶部徽章 / 展示卡来自 dshfind<br>Four-language detail page is live (install command & highlights), entry name fixed ([issue #2](https://github.com/hikariming/dshfind/issues/2) closed); the header badge / card comes from dshfind |
685
729
  | [omdsh-dev/community](https://github.com/orgs/omdsh-dev/discussions/12) | ✅ 已提交收录申请<br>Submission submitted | `[Plugin]` 收录申请(Discussion #12)已通过;v0.8.0 更新说明已发布在该讨论<br>`[Plugin]` submission (Discussion #12) accepted; v0.8.0 update posted there |
686
730
 
687
- **更新请求 / Update requests**:
731
+ **更新请求进度 / Update request status**:
688
732
 
689
- - awesome-dsh-plugins 收录条目更新:`https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/<PR>`(v0.8.0 描述同步)
690
- - dshfind 数据刷新请求(含快照条目名称异常修正):`https://github.com/hikariming/dshfind/issues/<ISSUE>`
691
- - omdsh-dev/community 收录讨论更新:https://github.com/orgs/omdsh-dev/discussions/12
733
+ - awesome-dsh-plugins 收录条目更新:[#127](https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/127) — ✅ 已合并
734
+ - dshfind 数据刷新请求(含条目名称异常修正):[#2](https://github.com/hikariming/dshfind/issues/2) — ✅ 已关闭,详情页已更新
735
+ - omdsh-dev/community 收录讨论更新:[Discussion #12 更新评论](https://github.com/orgs/omdsh-dev/discussions/12#discussioncomment-18021998) — ✅ 已发布
692
736
 
693
737
  **Update requests**:
694
738
 
695
- - awesome-dsh-plugins entry refresh: `https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/<PR>` (v0.8.0 description)
696
- - dshfind data-refresh request (incl. fixing the snapshot entry name): `https://github.com/hikariming/dshfind/issues/<ISSUE>`
697
- - omdsh-dev/community listing update: https://github.com/orgs/omdsh-dev/discussions/12
739
+ - awesome-dsh-plugins entry refresh: [#127](https://github.com/AdamPlatin123/awesome-dsh-plugins/pull/127) ✅ merged
740
+ - dshfind data-refresh request (incl. fixing the entry name): [#2](https://github.com/hikariming/dshfind/issues/2) — ✅ closed, detail page updated
741
+ - omdsh-dev/community listing update: [Discussion #12 update comment](https://github.com/orgs/omdsh-dev/discussions/12#discussioncomment-18021998) — ✅ posted
742
+
743
+ **亮点跟进 / Highlights follow-ups**(六项独家能力与 issue #6 设计实现):
744
+
745
+ - awesome-dsh-plugins 榜单行同步(仓库描述 → v0.8.0)与 agent-test 报告名称异常:[#139](https://github.com/AdamPlatin123/awesome-dsh-plugins/issues/139) — 📨 已提交
746
+ - dshfind 详情页补「对话内管理模型和密钥」亮点:[#2 跟进评论](https://github.com/hikariming/dshfind/issues/2#issuecomment-5301019067) — 📨 已提交
747
+ - omdsh 六项独家亮点补充(含 Guardian 设计实现):[Discussion #12 亮点评论](https://github.com/orgs/omdsh-dev/discussions/12#discussioncomment-18026370) — 📨 已提交
748
+
749
+ **Highlights follow-ups** (six exclusive capabilities & the issue #6 design):
750
+
751
+ - awesome-dsh-plugins leaderboard row sync (repo description → v0.8.0) & agent-test name anomaly: [#139](https://github.com/AdamPlatin123/awesome-dsh-plugins/issues/139) — 📨 submitted
752
+ - dshfind detail page: add the in-chat model/key management highlight: [#2 follow-up](https://github.com/hikariming/dshfind/issues/2#issuecomment-5301019067) — 📨 submitted
753
+ - omdsh six-exclusive-highlights summary (incl. the Guardian design): [Discussion #12 highlights comment](https://github.com/orgs/omdsh-dev/discussions/12#discussioncomment-18026370) — 📨 submitted
698
754
 
699
755
  ## 免责声明 | Disclaimer
700
756
 
package/dist/cli.js CHANGED
@@ -1266,7 +1266,7 @@ import { join as join3 } from "path";
1266
1266
  var SDK_SERVER_PACKAGE = "@deepseek-ai/dsh-sdk-jsonrpc-server";
1267
1267
  var SDK_SERVER_VERSION = DSH_COMPATIBILITY.sdkServer;
1268
1268
  var SDK_BASE_BUNDLE = "@deepseek-ai/dsh-base";
1269
- var DEFAULT_SDK_PROFILE = "dsh-lark";
1269
+ var DEFAULT_SDK_PROFILE = "dsh-lark-sdk";
1270
1270
  function sdkProfileRoot(home, profile, env) {
1271
1271
  return join3(resolveDshHome(home, env), "profiles", profile);
1272
1272
  }
@@ -7079,7 +7079,10 @@ function printResult(result) {
7079
7079
  }
7080
7080
  function waitForShutdown2() {
7081
7081
  return new Promise((resolve5) => {
7082
+ const keepAlive = setInterval(() => {
7083
+ }, 2 ** 31 - 1);
7082
7084
  const shutdown = () => {
7085
+ clearInterval(keepAlive);
7083
7086
  process.off("SIGINT", shutdown);
7084
7087
  process.off("SIGTERM", shutdown);
7085
7088
  resolve5();