dsh-session-matrix 0.0.0-stage → 0.16.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/LICENSE +21 -0
- package/README.md +320 -2
- package/cordis.patch.yml +6 -0
- package/icon.svg +14 -0
- package/lib/client.js +3398 -0
- package/lib/handoff/v1.md +91 -0
- package/lib/index.js +1431 -0
- package/lib/usage-split.js +158 -0
- package/locale/en.json +12 -0
- package/locale/zh.json +12 -0
- package/package.json +72 -4
- package/test/host.test.mjs +740 -0
- package/test/usage-split.test.mjs +283 -0
- package/test/usage-vs-projection.test.mjs +71 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wanqiu12345 and DSH Session Matrix contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,321 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./icon.svg" width="76" alt="Session Matrix icon">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">DSH Session Matrix</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center"><b>会话矩阵工作台</b> — 给 DeepSeek Harness 的多智能体工作台</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://github.com/Wanqiu12345/dsh-session-matrix/releases"><img src="https://img.shields.io/github/v/release/Wanqiu12345/dsh-session-matrix?label=release&color=blue" alt="release"></a>
|
|
11
|
+
<a href="https://github.com/Wanqiu12345/dsh-session-matrix/actions/workflows/ci.yml"><img src="https://github.com/Wanqiu12345/dsh-session-matrix/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
12
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT"></a>
|
|
13
|
+
<img src="https://img.shields.io/badge/DSH-%E2%89%A50.2.2--rc.1-8a2be2" alt="DSH >= 0.2.2-rc.1">
|
|
14
|
+
<img src="https://img.shields.io/badge/runtime%20deps-0-brightgreen" alt="no runtime deps">
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
同时跑多个 Agent:四个原生会话窗格并排,一张按压缩风险着色的 Agent Graph,<br>
|
|
19
|
+
外加一份在上下文被压缩之前把工作交出去的协议。
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="#install"><b>安装</b></a> ·
|
|
24
|
+
<a href="#workspace"><b>工作区</b></a> ·
|
|
25
|
+
<a href="#graph"><b>智能体脉络</b></a> ·
|
|
26
|
+
<a href="#handoff"><b>交接</b></a> ·
|
|
27
|
+
<a href="#vs-context"><b>与 dsh-context</b></a>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 这个插件提供什么
|
|
35
|
+
|
|
36
|
+
装完只多三样东西,不往你的对话流里插任何内容:
|
|
37
|
+
|
|
38
|
+
| 位置 | 你得到什么 |
|
|
39
|
+
|:--|:--|
|
|
40
|
+
| **左侧面板列表** | 一行「会话矩阵工作台」,与「上下文洞察」「技能中心」同级 |
|
|
41
|
+
| **面板顶部** | 两个标签:`工作区` · `智能体脉络` |
|
|
42
|
+
| **面板右上角** | 一个 **通用交接提示词** 按钮。旁边的小圆点显示有几个会话进了注意区 |
|
|
43
|
+
|
|
44
|
+
它不改 DSH 任何核心代码,只使用公开的 Cordis 服务与 slot 扩展点。
|
|
45
|
+
|
|
46
|
+
<a id="workspace"></a>
|
|
47
|
+
|
|
48
|
+
## 工作区:1–4 格原生会话
|
|
49
|
+
|
|
50
|
+
左侧是会话列表,按项目分组;子代理折叠在所属主会话下。**归档会话不显示**——和原生侧栏一致,
|
|
51
|
+
你在原生侧取消归档,这里下一次刷新就回来了。
|
|
52
|
+
|
|
53
|
+
右侧窗格按格数自动排版:
|
|
54
|
+
|
|
55
|
+
| 格数 | 布局 | 适合 |
|
|
56
|
+
|:--:|:--|:--|
|
|
57
|
+
| **1** | 单格铺满 | 专心做一件事 |
|
|
58
|
+
| **2** | 左右两列 | 对照两份输出,或主会话 + 子代理 |
|
|
59
|
+
| **3** | 上二下一 | 三个并行任务,底下留一格看汇总 |
|
|
60
|
+
| **4** | 2×2 | 四个项目同时推进 |
|
|
61
|
+
|
|
62
|
+
- 分隔线可拖动,比例写进本机 `localStorage`。
|
|
63
|
+
- 每格标题栏居中一个缩放滑块,55%–100%,按会话记忆。
|
|
64
|
+
- 每格挂载的是 DSH 原生 `conversation.content` 工厂实例:消息流、工具调用行、审批、
|
|
65
|
+
Chat/Trajectory 切换、composer 全是原生的,**可以直接打字**。
|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
<a id="graph"></a>
|
|
70
|
+
|
|
71
|
+
## 智能体脉络:Agent Graph
|
|
72
|
+
|
|
73
|
+
一张四列有向拓扑,从左到右:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
工作台 → 项目 → 主会话 → 子代理
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
- **边来自会话头的 `parentSession`**,不推断"同项目"这类弱关系。
|
|
80
|
+
- **节点颜色 = 距离压缩点的远近**:正常 / 注意 / 临界。
|
|
81
|
+
- **节点尺寸 = 累计用量**,谁最重一眼能看出来。
|
|
82
|
+
- 选中任一节点,下方三个模块按该节点的子树重新计算。
|
|
83
|
+
|
|
84
|
+

|
|
85
|
+
|
|
86
|
+
### 三个模块
|
|
87
|
+
|
|
88
|
+
| 模块 | 它回答的问题 | 数据口径 |
|
|
89
|
+
|:--|:--|:--|
|
|
90
|
+
| **上下文构成** | 此刻模型看到了什么 | 当前 prompt 的九类占比,是快照 |
|
|
91
|
+
| **累计用量与费用** | 这个会话一共烧了多少 | 四个 token 桶相加,是历史合计 |
|
|
92
|
+
| **会话概览** | 每个会话现在什么状态 | 模型 / 占用 / 风险 / 轮次,点进会话 |
|
|
93
|
+
|
|
94
|
+
「当前占用」和「合计」不是同一个量:前者是此刻占着多少,后者是历史上一共读过多少。
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
## 上下文监控
|
|
99
|
+
|
|
100
|
+
压缩点照搬 `dsh-compaction-basic` 的算法,不是自己拍的百分比:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
messageBudget = contextWindow − reservedCompletionTokens # 一次请求预留的输出
|
|
104
|
+
pressureBudget = messageBudget − policy.headroomTokens # headroom 默认 4096
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
1,048,576 窗口、256,000 输出预留的模型,压缩点 **788,480 tokens(75.2%)**。早先版本用的是
|
|
108
|
+
`min(window × 80%, window − output − 64K)`,那是估算,会比 DSH 真实触发点提前预警——已改掉。
|
|
109
|
+
|
|
110
|
+
| 阈值 | 计算 | 含义 |
|
|
111
|
+
|:--|:--|:--|
|
|
112
|
+
| 🟡 **注意** | 压缩点 × 80% | 仍可容纳一次较长回复 |
|
|
113
|
+
| 🔴 **临界** | 压缩点 × 92% | 下一次大请求可能触发压缩 |
|
|
114
|
+
|
|
115
|
+
占用率取**服务端返回的 prompt 大小**(未命中 + 缓存读 + 缓存写),叠加最后一次采样后的增量,
|
|
116
|
+
不使用字符数估算。
|
|
117
|
+
|
|
118
|
+
<a id="handoff"></a>
|
|
119
|
+
|
|
120
|
+
## 交接协议 v1
|
|
121
|
+
|
|
122
|
+
压缩会把早期对话换成摘要,路径、命令、报错通常最先丢——而这正是接手的人要用的。
|
|
123
|
+
按钮生成一段提示词,发进会话后由 Agent 产出结构化交接物:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
① 复制提示词 → ② 发进目标会话
|
|
127
|
+
↓
|
|
128
|
+
③ Agent 写 HANDOFF-<timestamp>.md
|
|
129
|
+
(目标 / 进度 / 关键文件 / 已否决方案 / 未决问题)
|
|
130
|
+
↓
|
|
131
|
+
④ 新会话粘贴接管消息
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
插件负责复制与定位:目标窗格会闪烁一次,避免粘错会话。
|
|
135
|
+
|
|
136
|
+

|
|
137
|
+
|
|
138
|
+
## 费用口径
|
|
139
|
+
|
|
140
|
+
人民币。DeepSeek 自家模型读官方价目表(元 / 百万 token,谷时):
|
|
141
|
+
|
|
142
|
+
| 模型 | 缓存命中 | 缓存未命中 | 输出 |
|
|
143
|
+
|:--|--:|--:|--:|
|
|
144
|
+
| V4.1 Flash `deepseek-flash`(旧名 `deepseek-v4-flash`) | 0.02 | 1 | 4 |
|
|
145
|
+
| V4 Pro `deepseek-v4-pro` | 0.15 | 4.5 | 13.5 |
|
|
146
|
+
|
|
147
|
+
峰时(北京时间工作日 09:00–12:00、14:00–18:00,节假日除外)**×2**。
|
|
148
|
+
`contextTimeline.cost` 已按峰谷分桶,直接分桶计算,不做时间推断。
|
|
149
|
+
非 `deepseek` provider 回退 models.dev 美元价,按 `1 CNY = 0.15 USD` 折算。
|
|
150
|
+
|
|
151
|
+
<a id="vs-context"></a>
|
|
152
|
+
|
|
153
|
+
## 致谢与 dsh-context 的关系
|
|
154
|
+
|
|
155
|
+
`dsh-context` 是这个生态里上下文分析做得最深的插件,也是本项目参考最多的一个:上下文占比怎么拆、
|
|
156
|
+
费用怎么按峰谷折算、面板信息怎么组织,都从它那里学了不少。它的 Fleet 页把当前 Agent 家族画成
|
|
157
|
+
Agent Network,我们用同样的父子关系模型,但放在跨项目的全局视图里。
|
|
158
|
+
|
|
159
|
+
**它现在是可选的,不是依赖。** 早期版本读的是它注册的 `contextTimeline` / `contextActivity` 投影,
|
|
160
|
+
没装它费用就是空的;现在两条数据都改走 DSH 核心:
|
|
161
|
+
|
|
162
|
+
| 数据 | 现在从哪来 | 没装 dsh-context 时 |
|
|
163
|
+
|:--|:--|:--|
|
|
164
|
+
| 模型名 | 核心 `modelSelection` 投影 | 正常 |
|
|
165
|
+
| 用量(四个 token 桶) | 核心 `tokenUsage` 投影(`{ver,seq,val}` 包装已解) | 正常 |
|
|
166
|
+
| 上下文占用 | 核心 `contextPressure` | 正常 |
|
|
167
|
+
| 费用 | 优先用投影的峰谷分桶;没有则**从会话日志重建**峰/谷(每条 `assistant/message` 带 `time` 和 `usage`) | 与装了它基本一致 |
|
|
168
|
+
|
|
169
|
+
装它的收益是**费用更准**(能区分峰谷,等于把白天的 2× 算进去),以及 Context 页那种逐请求的深挖。
|
|
170
|
+
两者可同时安装,互不冲突,人民币换算与峰时倍率一致,数字可以对账。
|
|
171
|
+
|
|
172
|
+
没装它时,费用不是拍脑袋估的:核心投影没有时间轴,但会话日志里有——每条 `assistant/message` 都带
|
|
173
|
+
`time` 和 `usage`,插件按北京时间工作日 09:00–12:00、14:00–18:00 重新分桶。日志是逐次追加的 zstd 帧,
|
|
174
|
+
解析按预算分摊到多次采集(默认每次 6 个文件 / 8MB),几分钟内收敛,之后按文件 mtime 缓存。
|
|
175
|
+
|
|
176
|
+
`peakFactor`(默认 `1`)只在日志也读不出时兜底:`1.5` 表示假设一半用量在峰时,`2` 表示全峰时。
|
|
177
|
+
|
|
178
|
+
## 贡献者
|
|
179
|
+
|
|
180
|
+
<!-- ALL-CONTRIBUTORS-LIST:START -->
|
|
181
|
+
| <img src="https://github.com/Wanqiu12345.png?size=64" width="64" alt="Wanqiu12345"><br><sub><b>Wanqiu12345</b></sub><br><sub>代码 · 设计 · 文档</sub> | <img src="https://github.com/bowenliang123.png?size=64" width="64" alt="bowenliang123"><br><sub><b>bowenliang123</b></sub><br><sub><a href="https://github.com/bowenliang123/dsh-context">dsh-context</a></sub><br><sub>思路 · 数据口径 · 调研</sub> |
|
|
182
|
+
|:--:|:--:|
|
|
183
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
184
|
+
|
|
185
|
+
名单遵循 [all-contributors](https://allcontributors.org/) 规范,见 `.all-contributorsrc`。
|
|
186
|
+
|
|
187
|
+
`bowenliang123` 不是代码贡献者:**dsh-context** 是这个生态里上下文分析做得最深的插件,本项目的
|
|
188
|
+
`contextTimeline` 字段形状、峰谷折算口径和面板信息组织都参照它定;没有它作为对照,这个插件的信息组织会差很多。
|
|
189
|
+
|
|
190
|
+
GitHub 右侧的 Contributors 只统计**提交作者**,所以不会出现 `bowenliang123`——这份名单是补那一块的。
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
<a id="install"></a>
|
|
195
|
+
|
|
196
|
+
## 安装
|
|
197
|
+
|
|
198
|
+
> **npm 上架状态**:0.16.1 尚未发布到 npm(`npm view dsh-session-matrix` 返回 404)。
|
|
199
|
+
> 下面的插件管理器 / CLI 命令在发布后可用;在那之前请用「源码安装」。
|
|
200
|
+
|
|
201
|
+
**插件管理器**:`插件 → 发现`,搜索 `dsh-session-matrix`。
|
|
202
|
+
|
|
203
|
+
**CLI**:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
dsh plugin --profile web add dsh-session-matrix
|
|
207
|
+
|
|
208
|
+
# 升级
|
|
209
|
+
dsh plugin --profile web update dsh-session-matrix@latest
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
无需构建步骤,无需重启 DSH。浏览器若未刷新,硬刷新一次(`Ctrl / Cmd + Shift + R`)。
|
|
213
|
+
|
|
214
|
+
**源码安装**:把仓库路径写进 profile 的 `dependencies`(`link:`)与 `dsh.profile.bundles`,
|
|
215
|
+
执行 `pnpm install` 后重启。
|
|
216
|
+
|
|
217
|
+
## Requirements
|
|
218
|
+
|
|
219
|
+
| 项 | 值 |
|
|
220
|
+
|:--|:--|
|
|
221
|
+
| DeepSeek Harness | `>= 0.2.2-rc.1`(`dsh.compatibility.dshReleases`) |
|
|
222
|
+
| Node.js | `^22.19.0` 或 `>= 24` |
|
|
223
|
+
| 实测 | DSH `0.2.2-rc.x`,Windows 11 |
|
|
224
|
+
| 未实测 | macOS、Linux |
|
|
225
|
+
| 运行时依赖 | 无(两个 JS 文件,无构建) |
|
|
226
|
+
| 宿主服务 | `webServer`、`sessionQuery`、`sessions`、`connection`(缺 `connection` 时接口不注册) |
|
|
227
|
+
|
|
228
|
+
## 安全
|
|
229
|
+
|
|
230
|
+
三个接口注册在 `ctx.connection.fetch` 上,因此走 Connection 的认证通道:
|
|
231
|
+
|
|
232
|
+
```js
|
|
233
|
+
connection.fetch.register({ path: '/api/session-matrix/overview', methods: ['GET','HEAD'], ... })
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
- 认证由宿主的 `connection.admit()` 完成:没有 cookie 401,非 owner principal 403。
|
|
237
|
+
- **没有**无鉴权回退:`connection` 缺失时接口直接不注册,面板会提示取数失败。
|
|
238
|
+
- 路由随插件生命周期注册/卸载,卸载后再访问返回 404。
|
|
239
|
+
- `connection` 是 0.2.2-rc.1 起就有的服务;本插件 `inject` 里已声明它。
|
|
240
|
+
|
|
241
|
+
## Known limitations
|
|
242
|
+
|
|
243
|
+
- 仅 DeepSeek 模型按人民币计价;其他 provider 走 models.dev 美元价。
|
|
244
|
+
- 子代理用量按会话独立统计,不并入父会话(脉络里选中主会话时,模块按子树汇总)。
|
|
245
|
+
- 法定节假日未建模,峰谷桶由宿主提供。
|
|
246
|
+
- 归档集合读自 `storages/workspace.json`;DSH 若调整该表结构,需同步修改读取逻辑。
|
|
247
|
+
- macOS / Linux 未在真机验证。代码里没有平台分支,但"没写 `if`"不等于"测过"。
|
|
248
|
+
|
|
249
|
+
## 架构
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
lib/index.js 宿主半边 Cordis 插件,三个 JSON 路由,读投影,价格表
|
|
253
|
+
lib/client.js 浏览器半边 React 面板,两个视图,交接弹窗
|
|
254
|
+
lib/handoff/v1.md 交接协议 以数据形式发布
|
|
255
|
+
test/host.test.mjs 契约测试 29 个,不联网,伪造 DSH 上下文
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
宿主不渲染,客户端不读文件;数据只走三条路由。渲染异常由面板内的错误边界接住,
|
|
259
|
+
单个组件出错不会让整个 DSH 窗口空白。
|
|
260
|
+
|
|
261
|
+
## 开发
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
npm test # 29 个契约测试,不联网
|
|
265
|
+
npm pack --dry-run # 约 10 个文件 / 72 KB
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
无构建步骤;修改 `lib/client.js` 后 DSH 会热重载面板。
|
|
269
|
+
|
|
270
|
+
## License
|
|
271
|
+
|
|
272
|
+
[MIT](./LICENSE)
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
<details>
|
|
277
|
+
<summary><b>English</b></summary>
|
|
278
|
+
|
|
279
|
+
**A multi-agent workspace for DeepSeek Harness.** One sidebar entry, two views: up to four native
|
|
280
|
+
conversation panes, and an Agent Graph that draws `workbench → project → session → subagent` coloured
|
|
281
|
+
by compaction risk. A handoff protocol moves work to a fresh session before compaction drops the details.
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
dsh plugin --profile web add dsh-session-matrix
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Workspace** — session list grouped by project (subagents folded, archived hidden) plus 1–4 panes.
|
|
288
|
+
Layouts: 1 full, 2 columns, 3 as two-over-one, 4 as 2×2. Dividers drag; each pane zooms 55–100%.
|
|
289
|
+
Every pane runs DSH's own `conversation.content` factory, so messages, tool rows, approvals, and the
|
|
290
|
+
composer are native.
|
|
291
|
+
|
|
292
|
+
**Agent Graph** — a directed four-column topology. Edges come from `parentSession` in the session
|
|
293
|
+
header; node colour is distance to the compaction point; node size tracks cumulative usage. Selecting a
|
|
294
|
+
node re-scopes three modules: prompt composition, cumulative usage and cost, and a per-session matrix.
|
|
295
|
+
|
|
296
|
+
**Context** — the compaction point mirrors `dsh-compaction-basic`: `window − reserved output − 4096`,
|
|
297
|
+
which is 788,480 tokens (75.2%) for a 1,048,576 window with 256,000 reserved. The watch line sits at 80% of that point, the critical
|
|
298
|
+
line at 92%. Occupancy uses the provider-reported prompt size, not a
|
|
299
|
+
character estimate.
|
|
300
|
+
|
|
301
|
+
**Handoff** — protocol v1 writes `HANDOFF-<timestamp>.md` (goal, progress, key files, rejected
|
|
302
|
+
approaches, open questions) plus a takeover message for the next session; the target pane flashes so
|
|
303
|
+
you paste into the right one.
|
|
304
|
+
|
|
305
|
+
**Cost** — CNY, DeepSeek's official price list, peak hours at 2×; other providers fall back to
|
|
306
|
+
models.dev in USD at `1 CNY = 0.15 USD`.
|
|
307
|
+
|
|
308
|
+
**Requirements** — DSH `>= 0.2.2-rc.1`, Node `^22.19` or `>= 24`, no runtime dependencies. Verified on
|
|
309
|
+
Windows 11 with DSH `0.2.2-rc.x`; macOS and Linux are untested.
|
|
310
|
+
|
|
311
|
+
**Relationship to dsh-context** — the deeper context-analysis plugin in this ecosystem and the main
|
|
312
|
+
reference for this one. Its Fleet page draws the current agent family as an Agent Network; this plugin
|
|
313
|
+
uses the same parent-child model across all projects. Both share the CNY conversion and peak-hour
|
|
314
|
+
multiplier, so cost figures reconcile. Install both: use `dsh-context` to trace how a request was
|
|
315
|
+
assembled, use this one to run several sessions and decide which to hand off.
|
|
316
|
+
|
|
317
|
+
**Related work** — split views (`dsh-session-grid`, `dsh-multi-session`, `dsh-multi-chat`), session-tree
|
|
318
|
+
maps (`dsh-session-map`), handoff helpers (`dsh-context-relay`, `dsh-handoff-kit`). This plugin puts
|
|
319
|
+
panes, the graph, and the handoff in one panel; if you need only one of them, those are lighter.
|
|
320
|
+
|
|
321
|
+
</details>
|
package/cordis.patch.yml
ADDED
package/icon.svg
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<circle cx="32" cy="32" r="3.2" fill="#22d3ee"/>
|
|
3
|
+
<circle cx="32" cy="32" r="10" stroke="#22d3ee" stroke-opacity=".35" stroke-width="1.2"/>
|
|
4
|
+
<circle cx="32" cy="32" r="18" stroke="#8b5cf6" stroke-opacity=".45" stroke-width="1.2" stroke-dasharray="3 5"/>
|
|
5
|
+
<g fill="#22d3ee">
|
|
6
|
+
<circle cx="32" cy="10" r="2.6"/><circle cx="54" cy="26" r="2.6"/>
|
|
7
|
+
<circle cx="46" cy="52" r="2.6"/><circle cx="18" cy="52" r="2.6"/>
|
|
8
|
+
<circle cx="10" cy="26" r="2.6"/>
|
|
9
|
+
</g>
|
|
10
|
+
<g stroke="#22d3ee" stroke-opacity=".55" stroke-width="1.1">
|
|
11
|
+
<path d="M32 32 L32 10"/><path d="M32 32 L54 26"/><path d="M32 32 L46 52"/>
|
|
12
|
+
<path d="M32 32 L18 52"/><path d="M32 32 L10 26"/>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|