dsh-agent-lines 0.4.0 → 0.4.1
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/CHANGELOG.en.md +6 -0
- package/CHANGELOG.md +6 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/docs/en/index.html +4 -4
- package/docs/index.html +4 -4
- package/docs/market-index.json +2 -2
- package/examples/market-index.json +2 -2
- package/lib/index.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.en.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](CHANGELOG.md)
|
|
4
4
|
|
|
5
|
+
## 0.4.1 (2026-11-09)
|
|
6
|
+
|
|
7
|
+
- Fix F1: after line_create replace / line_rebind, the new line did not re-acquire a lease, leaving it offline and messages queued until restart.
|
|
8
|
+
- Regression test: the replaced line must have a live lease.
|
|
9
|
+
- No schema change; 0.4.0 kinds/approval/docs/landing unchanged.
|
|
10
|
+
|
|
5
11
|
## 0.4.0 (2026-11-09)
|
|
6
12
|
|
|
7
13
|
- Message governance: line_send adds kind (info/request/task/alert) and ccManager; a non-manager task becomes pending_approval and is delivered only after line_manager_ack.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[English](CHANGELOG.en.md) | 中文
|
|
4
4
|
|
|
5
|
+
## 0.4.1 (2026-11-09)
|
|
6
|
+
|
|
7
|
+
- 修复 F1:line_create replace / line_rebind 在 rebind 后没有重新 acquire lease,导致线 offline、消息 queued 直到进程重启。
|
|
8
|
+
- 回归测试:replace 后新 Session 必须有 live lease。
|
|
9
|
+
- 无 schema 变化;0.4.0 的 kind/审批/文档/官网不变。
|
|
10
|
+
|
|
5
11
|
## 0.4.0 (2026-11-09)
|
|
6
12
|
|
|
7
13
|
- 消息治理:line_send 新增 kind(info/request/task/alert)、ccManager;非管理线发 task 进入 pending_approval,需 line_manager_ack 审批后才投递。
|
package/README.en.md
CHANGED
|
@@ -55,7 +55,7 @@ Scenario: the manager wants to see which line is close to saturation or has gone
|
|
|
55
55
|
Use: line_status / line_list expose activity.level, turns, steps, lastActivityAt.
|
|
56
56
|
Effect: a low/medium/high activity proxy, not a fake "78% context used"; exact context usage waits for DSH.
|
|
57
57
|
|
|
58
|
-
### 0.4.
|
|
58
|
+
### 0.4.1: the manager can see cross-line traffic
|
|
59
59
|
|
|
60
60
|
Scenario: lines message each other directly; the manager needs visibility without every message becoming a manager turn.
|
|
61
61
|
Use: line_observe({ line: "writer", limit: 20 }) or CLI observe --json.
|
|
@@ -74,7 +74,7 @@ The script picks the DSH Web profile, installs the plugin, and verifies agent-li
|
|
|
74
74
|
|
|
75
75
|
Offline or when npm is unavailable, use the local tarball:
|
|
76
76
|
|
|
77
|
-
bash install.sh ./dsh-agent-lines-0.4.
|
|
77
|
+
bash install.sh ./dsh-agent-lines-0.4.1.tgz
|
|
78
78
|
|
|
79
79
|
After install and restart, it works without a config. When you want a fixed manager/worker setup, paste the "Manager config" block below into the file printed by the installer.
|
|
80
80
|
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ DSH 的 super agent 平替插件。
|
|
|
55
55
|
用法:line_status / line_list 看 activity.level、turns、steps、lastActivityAt。
|
|
56
56
|
效果:给出低/中/高活跃度,不伪造“上下文使用率 78%”;真实窗口等 DSH 上游提供。
|
|
57
57
|
|
|
58
|
-
### 0.4.
|
|
58
|
+
### 0.4.1:管理线看得到跨线消息
|
|
59
59
|
|
|
60
60
|
场景:成员线之间直接同步,管理线需要知道发生了什么,但不希望每条消息都打断自己。
|
|
61
61
|
用法:line_observe({ line: "writer", limit: 20 }) 或 CLI observe --json。
|
|
@@ -90,7 +90,7 @@ DSH 的 super agent 平替插件。
|
|
|
90
90
|
|
|
91
91
|
离线或 npm 不可用时,用本地 tarball:
|
|
92
92
|
|
|
93
|
-
bash install.sh ./dsh-agent-lines-0.4.
|
|
93
|
+
bash install.sh ./dsh-agent-lines-0.4.1.tgz
|
|
94
94
|
|
|
95
95
|
安装并重启后,不写配置也可以直接使用;需要固定管理线/worker 时,再把下面“管理线配置”粘贴到脚本打印的配置文件。
|
|
96
96
|
|
package/docs/en/index.html
CHANGED
|
@@ -46,7 +46,7 @@ footer{padding:30px 0 46px;color:var(--muted);font-size:12px;border-top:1px soli
|
|
|
46
46
|
<div class="wrap">
|
|
47
47
|
<header>
|
|
48
48
|
<a class="brand" href="../"><span class="mark"></span>dsh-agent-lines</a>
|
|
49
|
-
<nav><a href="../">中文</a><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a><a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.
|
|
49
|
+
<nav><a href="../">中文</a><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a><a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.1">Release</a></nav>
|
|
50
50
|
</header>
|
|
51
51
|
<main>
|
|
52
52
|
<section class="hero" style="border:0;padding-bottom:20px">
|
|
@@ -142,12 +142,12 @@ Do not start yet; wait for my first requirement.</pre>
|
|
|
142
142
|
<footer>
|
|
143
143
|
<details>
|
|
144
144
|
<summary>Developers: protocol, limits, install command</summary>
|
|
145
|
-
<p><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a> · <a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.
|
|
145
|
+
<p><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a> · <a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.1">Release</a> · <a href="https://github.com/Lencen/dsh-agent-lines/blob/main/docs/PROTOCOL.en.md">Protocol</a></p>
|
|
146
146
|
<p class="note">Community plugin, not an official DeepSeek product.</p>
|
|
147
147
|
</details>
|
|
148
|
-
<p style="margin-top:18px">dsh-agent-lines 0.4.
|
|
148
|
+
<p style="margin-top:18px">dsh-agent-lines 0.4.1 · Apache-2.0 · Community plugin for DeepSeek Harness. Not an official DeepSeek product.</p>
|
|
149
149
|
</footer>
|
|
150
150
|
</main>
|
|
151
151
|
</div>
|
|
152
152
|
</body>
|
|
153
|
-
</html>
|
|
153
|
+
</html>
|
package/docs/index.html
CHANGED
|
@@ -46,7 +46,7 @@ footer{padding:30px 0 46px;color:var(--muted);font-size:12px;border-top:1px soli
|
|
|
46
46
|
<div class="wrap">
|
|
47
47
|
<header>
|
|
48
48
|
<a class="brand" href="./"><span class="mark"></span>dsh-agent-lines</a>
|
|
49
|
-
<nav><a href="en/index.html">English</a><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a><a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.
|
|
49
|
+
<nav><a href="en/index.html">English</a><a href="https://github.com/Lencen/dsh-agent-lines">GitHub</a><a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.1">Release</a></nav>
|
|
50
50
|
</header>
|
|
51
51
|
<main>
|
|
52
52
|
<section class="hero" style="border:0;padding-bottom:20px">
|
|
@@ -141,12 +141,12 @@ footer{padding:30px 0 46px;color:var(--muted);font-size:12px;border-top:1px soli
|
|
|
141
141
|
<footer>
|
|
142
142
|
<details>
|
|
143
143
|
<summary>给开发者:协议、限制、安装命令</summary>
|
|
144
|
-
<p><a href="https://github.com/Lencen/dsh-agent-lines">GitHub 仓库</a> · <a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.
|
|
144
|
+
<p><a href="https://github.com/Lencen/dsh-agent-lines">GitHub 仓库</a> · <a href="https://github.com/Lencen/dsh-agent-lines/releases/tag/v0.4.1">Release</a> · <a href="https://github.com/Lencen/dsh-agent-lines/blob/main/docs/PROTOCOL.md">协议</a></p>
|
|
145
145
|
<p class="note">社区插件,不是 DeepSeek 官方产品。技术细节以 README / 协议为准。</p>
|
|
146
146
|
</details>
|
|
147
|
-
<p style="margin-top:18px">dsh-agent-lines 0.4.
|
|
147
|
+
<p style="margin-top:18px">dsh-agent-lines 0.4.1 · Apache-2.0 · Community plugin for DeepSeek Harness. Not an official DeepSeek product.</p>
|
|
148
148
|
</footer>
|
|
149
149
|
</main>
|
|
150
150
|
</div>
|
|
151
151
|
</body>
|
|
152
|
-
</html>
|
|
152
|
+
</html>
|
package/docs/market-index.json
CHANGED
package/lib/index.js
CHANGED
|
@@ -322,6 +322,14 @@ export async function apply(ctx, rawConfig) {
|
|
|
322
322
|
const updated = store.rebind({
|
|
323
323
|
agentId: config.agentId, line: label, sessionId, actor, reason, migrate, locked: true,
|
|
324
324
|
})
|
|
325
|
+
// F1 fix: rebind deliberately clears the old lease; the new line must acquire one
|
|
326
|
+
// before startLoop, otherwise heartbeat throws LINE_LEASE_LOST and messages stay queued.
|
|
327
|
+
store.acquire({
|
|
328
|
+
agentId: config.agentId, line: label, sessionId,
|
|
329
|
+
instanceId: config.instanceId, ttlMs: config.leaseTtlMs,
|
|
330
|
+
role: (oldDef && oldDef.role) || row.role || null,
|
|
331
|
+
createdBy: row.created_by || (oldDef && oldDef.createdBy) || null,
|
|
332
|
+
})
|
|
325
333
|
const def = {
|
|
326
334
|
agentId: config.agentId, label, sessionId, lineId: lineId(config.agentId, label),
|
|
327
335
|
role: (oldDef && oldDef.role) || row.role || null,
|