dsh-molbio-tools 0.25.0 → 0.27.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/CHANGELOG.md +180 -0
- package/README.md +19 -13
- package/benchmark/README.md +7 -7
- package/benchmark/profile.mjs +1 -1
- package/benchmark/tasks/02-primers.json +50 -0
- package/benchmark/verifications.mjs +1 -0
- package/build/client-entry.mjs +133 -6
- package/cordis.patch.yml +9 -2
- package/docs/capability-gap-survey.md +2 -1
- package/docs/client-panel.md +4 -3
- package/docs/history.md +5 -0
- package/docs/maintainer.md +5 -5
- package/docs/roadmap.md +24 -6
- package/docs/store-evidence.md +15 -7
- package/docs/workflow.md +1 -1
- package/host.mjs +1 -1
- package/index.mjs +120 -2
- package/lib/client.js +169 -9
- package/lib.mjs +35 -3
- package/package.json +8 -3
- package/preset/molbio-lab/agent.cordis.yml +20 -7
- package/preset/molbio-lab/preset.yml +1 -1
- package/test/client.mjs +1 -0
- package/test/contract.mjs +17 -9
- package/test/drift-probe.mjs +24 -2
- package/test/panel-render.mjs +36 -0
- package/test/preset-health.mjs +95 -7
- package/test/smoke.mjs +47 -0
- package/thermo.mjs +180 -0
package/cordis.patch.yml
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
id: molbio-lab
|
|
48
48
|
order: 5
|
|
49
49
|
name: Molecular Biology Lab
|
|
50
|
-
description: "分子生物学专属模式:标准编码能力 +
|
|
50
|
+
description: "分子生物学专属模式:标准编码能力 + 65 个 molbio_* 工具(序列分析、引物设计(含跨内含子 qPCR、盐/浓度旋钮与目标位置偏好)、TaqMan 水解探针(含 MGB 与订购 CSV)与多重 PCR 互扰/退火温度/浓度建议、克隆模拟与选酶(含 Golden Gate)、酶目录查询、甲基化敏感位点与双酶切 buffer 兼容检查、多序列比对(每个输入残基都会进比对结果)、保守性分析与比对后处理(共识/缺口修剪/同一性矩阵/逐列覆盖度,含 sequence logo 图)、CRISPR gRNA 设计(SpCas9/SaCas9/Cas12a/Cas13,家族特定 PAM/PFS/种子)与脱靶搜索、SnapGene/GenBank 解析与质粒图谱、Sanger 测序验证、蛋白性质/电荷-pH 曲线/密码子优化/螺旋轮投影与疏水性图、qPCR 与绘图、虚拟凝胶、实验台分析(FASTQ 质控、密码子使用、系统发生树(长叶名自动折行)、in-silico PCR、CpG/GC 组成、序列 dotplot、载体/接头污染筛查、FASTQ 修剪/过滤、批量文件分析/CSV)、静默酶切位点突变设计——生成的 SVG 图片自动用系统默认应用打开,文献/协议/实验记录)。"
|
|
51
51
|
plugins:
|
|
52
52
|
- id: persona
|
|
53
53
|
name: '@deepseek-ai/dsh-persona'
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
name: '@deepseek-ai/dsh-tool-schedule'
|
|
83
83
|
- id: skill-filesystem
|
|
84
84
|
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
85
|
+
config:
|
|
86
|
+
customSkillDirs:
|
|
87
|
+
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
|
|
85
88
|
- id: tool-skill
|
|
86
89
|
name: '@deepseek-ai/dsh-tool-skill'
|
|
87
90
|
- id: command-goal
|
|
@@ -134,6 +137,8 @@
|
|
|
134
137
|
config:
|
|
135
138
|
- id: tool-subagent-control
|
|
136
139
|
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
140
|
+
config:
|
|
141
|
+
interrupt: false
|
|
137
142
|
- id: tool-subagent
|
|
138
143
|
name: '@deepseek-ai/dsh-tool-subagent'
|
|
139
144
|
config:
|
|
@@ -165,6 +170,8 @@
|
|
|
165
170
|
searchTimeoutMs: 60000
|
|
166
171
|
- id: present
|
|
167
172
|
name: '@deepseek-ai/dsh-tool-present'
|
|
173
|
+
- id: tool-office
|
|
174
|
+
name: '@deepseek-ai/dsh-tool-office'
|
|
168
175
|
- id: tool-plugin-manager
|
|
169
176
|
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
170
177
|
disabled: true
|
|
@@ -172,7 +179,7 @@
|
|
|
172
179
|
name: '@deepseek-ai/dsh-plugin-market/tools'
|
|
173
180
|
disabled: true
|
|
174
181
|
|
|
175
|
-
# dsh-molbio-tools: molecular-biology toolset (
|
|
182
|
+
# dsh-molbio-tools: molecular-biology toolset (65 tools across sequence
|
|
176
183
|
# analysis, primers (incl. TaqMan probes and multiplex compatibility),
|
|
177
184
|
# in-silico PCR, cloning (incl. Golden Gate), enzyme catalog, methylation-aware
|
|
178
185
|
# and double digests, plasmids, Sanger verification, proteins (incl. helical
|
|
@@ -7,7 +7,8 @@ deterministic algorithms in a few hundred lines of dependency-free JS with **no
|
|
|
7
7
|
binaries, network, or reference databases**?
|
|
8
8
|
|
|
9
9
|
> **Status note (0.24.0).** The baseline below is the 52-tool package this survey was written
|
|
10
|
-
> against. Since then rows 1–
|
|
10
|
+
> against. Since then rows 1–9, 11, 12, 23, 30, 34, 40 and the Cas-family half of row 20 have shipped
|
|
11
|
+
> (row 9, duplex thermodynamics, shipped as `molbio_duplex_thermo` in 0.27.0).
|
|
11
12
|
> (see [history.md](history.md) and the roadmap); the remaining rows are still candidates unless
|
|
12
13
|
> §3 names a blocker. The rankings are left as written so the original judgement can be audited.
|
|
13
14
|
|
package/docs/client-panel.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
| **Papers**(右栏 tab) | 把 `molbio_paper_*` 工具维护的 `papers.json` 渲染成可搜索的阅读列表 + 详情面板(标题/作者/期刊/年份/PMID/URL/标签/笔记,标题链接到 PubMed 或原 URL) | `workspaceFiles.read`(文本) |
|
|
15
15
|
| **图谱调用卡**(`tool.call.toolview`) | `molbio_plasmid_map` / `molbio_plasmid_map_file` 的调用卡:在对话里直接画出这次调用产出的图谱(摘要行 + 写入路径),失败时显示错误文本与 Inspect 入口 | 工具自己声明的 `output.presentationMeta`(见下) |
|
|
16
16
|
| **图形调用卡**(`tool.call.toolview`) | `molbio_sequence_logo` / `molbio_grna_design` 的调用卡:logo 直接画图;gRNA 画 `map_path` 并列出前 5 条 guide(无 map 时仍有摘要与表格) | 同上,kind = `molbio-figure` |
|
|
17
|
+
| **PubMed key 徽标**(Papers tab 顶部) | 常驻状态徽标:绿点「已配置(来源)」/ 灰点「未配置」/ 红点「状态不可读」,跟随 `credentials/reference-updated` 刷新;永不回显值 | `ctx.remote.credentials.describe`(经 `apply` 的 credentials 注入写进模块级快照) |
|
|
17
18
|
| **PubMed API key**(`plugins.detail.section`) | 插件 → 已安装插件 → `dsh-molbio-tools` 详情页里的一段表单:password 输入 + Save/Remove,状态只报「已配置 / 来源 / 未配置」,永不回显值 | `ctx.remote.credentials.describe` / `set` / `unset`(host 的凭据 seam) |
|
|
18
19
|
|
|
19
20
|
**解析与渲染全部在浏览器里跑本仓库自己的模块**(`lib/genbank/snapgene/plasmid/msa/logo`
|
|
@@ -50,7 +51,7 @@ SVG 随 meta 传输有上限(256 KB):真实载体的图谱 20-60 KB,但
|
|
|
50
51
|
| `build/panel-core.mjs` | 面板的数据通路(分类/解码/解析/渲染/文献库投影),不含 React,可在 Node 里单测 |
|
|
51
52
|
| `build/client-entry.mjs` | 浏览器半本体:两个 tab 类型的注册、正文、标题 chip,两个 map 工具与两个 figure 工具的调用卡,以及插件详情页的 key 配置段 |
|
|
52
53
|
| `lib/client.js` | **构建产物**(`exports["./client"]` 指向它;由 `npm run build:client` 生成) |
|
|
53
|
-
| `packages/molbio-panel/` | 面板专用包(宿主半边空实现),面板与
|
|
54
|
+
| `packages/molbio-panel/` | 面板专用包(宿主半边空实现),面板与 65 个工具解耦的交付通道 |
|
|
54
55
|
| `test/client.mjs` | 按加载器的方式执行产物 + 驱动两条数据通路(含真实 pUC118 夹具) |
|
|
55
56
|
| `test/map-card.mjs` | 调用卡的**跨界**检查:地图卡与图形卡(logo/gRNA)的真实投影 → 卡片读取 → 渲染出 SVG(含降级、超限、坏 meta 路径) |
|
|
56
57
|
| `test/client-mount.mjs` | 复刻宿主侧图扫描,证明两个包都能挂上、依赖可解析 |
|
|
@@ -173,7 +174,7 @@ seed)、禁止动态 `import()`、禁止跨插件值导入。它自己只降
|
|
|
173
174
|
这一层抓到过三个真 bug:列表把不可打开的文件也列出来、`sortEntries` 的 `other` 档从不
|
|
174
175
|
生效、以及坏库时列表仍宣称"还没有文献"。插件详情页的 key 段也被真实驱动:
|
|
175
176
|
`describe` → 输入 → Save(trim 后写入 `NCBI_API_KEY`)→ 状态刷新 + 清空输入 → Remove →
|
|
176
|
-
provider
|
|
177
|
+
provider 拒绝时消息原样显示;Papers tab 的 key 徽标也在真实渲染中验证(配置态绿点 + 来源,且不出现 key 值)。
|
|
177
178
|
4. **数据通路(质粒 / 比对 / 结构)**:真实 pUC118 `.dna` → 记录(名称/长度/拓扑/特征,
|
|
178
179
|
AmpR 2102-2962 反链)→ SVG;GenBank 文本路径与 Node 工具解析结果**逐字段一致**;
|
|
179
180
|
FASTA → 比对 → logo;PDB → 3D 模型(点选后 canvas 被绘制,拖拽触发重绘);
|
|
@@ -244,7 +245,7 @@ dsh plugin --profile <profile> add dsh-molbio-tools # 或 npm 包
|
|
|
244
245
|
`/plugins/dsh-molbio-tools/client.js?rev=<hash>` → 页面刷新时按需拉取、物化、执行
|
|
245
246
|
`apply`。**不需要重建 Web 应用**(这正是客户端模块体系的设计目的)。
|
|
246
247
|
|
|
247
|
-
与 preset 渠道共存时:preset 提供
|
|
248
|
+
与 preset 渠道共存时:preset 提供 65 个工具,bundle 提供面板;同名工具由 preset 层
|
|
248
249
|
shadow(无冲突),面板的 `remote`/`slot` 服务不受影响。
|
|
249
250
|
|
|
250
251
|
## 7. 下一步
|
package/docs/history.md
CHANGED
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
| 包版本 | preset 版本 | 内容 | 工具数 |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
+
| 0.27.0 | — | **双链热力学(survey #9)**:新增 `molbio_duplex_thermo`(ΔH/ΔS/ΔG°37/Tm + 3' 端稳定性、发夹、二聚体;错配双链拒绝估算);NN 计算提成可复用函数;工具 64 → 65,benchmark 66 题(65/65 覆盖) | 65 |
|
|
20
|
+
| 0.26.0 | — | **PubMed key 常驻标志**:Papers tab 顶部 key 状态徽标(绿/灰/红点,跟随凭据事件刷新)、检索结果标注凭据通道、详情页状态改徽标;工具数不变 | 64 |
|
|
21
|
+
| 0.25.3 | — | **DSH 0.2.2-rc.5 适配**:上游 `standard` 与 rc.3 / rc.2 逐字节一致,preset 零改动;两份清单补上 rc.5 `compatible`、rc.4 `unknown`;工具数不变 | 64 |
|
|
22
|
+
| 0.25.2 | — | **DSH 0.2.2-rc.3 适配**:上游 `standard` 与 rc.2 逐字节一致,preset 零改动;新增"已安装 harness 必须在两份清单里声明为 compatible"的守卫;工具数不变 | 64 |
|
|
23
|
+
| 0.25.1 | — | **DSH 0.2.2-rc.2 适配**:preset 逐字吸收上游 3 处变更(`tool-office` 行、`skill-filesystem` 的 `customSkillDirs`、`tool-subagent-control` 的 `interrupt: false`,29 → 30 行);`preset-health` 支持未求值的 `!!js`;`contract` 兼容桌面版压缩产物;工具数不变 | 64 |
|
|
19
24
|
| 0.25.0 | — | **浏览器内真实 3D 结构预览**:Molbio 面板读 PDB/mmCIF/SDF-MOL V2000,软件光栅化 ball-and-stick / space-filling,拖拽旋转、滚轮缩放;工具数不变 | 64 |
|
|
20
25
|
| 0.24.1 | — | **输入边界与数据安全加固**:BibTeX 不再覆盖文献库、相对读取按会话工作区、批量/glob/并发声明修复、20 万行输入不再 `RangeError`;工具数不变 | 64 |
|
|
21
26
|
| 0.24.0 | — | **数据卫生版**:新增 `molbio_contamination_screen`(内置载体/接头短签名,双链、0–2 错配)与 `molbio_fastq_trim`(质量/接头/引物/poly/N/长度,写 FASTQ/FASTA);修 FASTQ QC 接头表 Small RNA 5' 的 RNA→DNA 静默错 | 62 → 64 |
|
package/docs/maintainer.md
CHANGED
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
|
|
31
31
|
## 60 秒速览
|
|
32
32
|
|
|
33
|
-
- **包**:`dsh-molbio-tools`,零依赖 DSH 插件包,**
|
|
33
|
+
- **包**:`dsh-molbio-tools`,零依赖 DSH 插件包,**65 个 `molbio_*` 工具**(其中
|
|
34
34
|
`molbio_plot` 一个工具承载 8 种图表)。
|
|
35
|
-
- **基线**:DSH **0.2.2-rc.
|
|
35
|
+
- **基线**:DSH **0.2.2-rc.5**;`package.json` 版本 0.26.0(DSH 桌面版内嵌 Node 24.21.0)。
|
|
36
36
|
- **两条分发渠道**:根包(工具 + 面板)与 `packages/molbio-panel`(只面板),
|
|
37
37
|
**两个独立的 npm 条目、两条独立的版本线**,必须分别发布。
|
|
38
38
|
- **工具只在专属模式里出现**(设计如此):bundle 的 `cordis.patch.yml` 只插一行**惰性宿主锚点**
|
|
39
|
-
(`molbio-client` → `./host.mjs`),
|
|
39
|
+
(`molbio-client` → `./host.mjs`),65 个工具由同文件里的 preset insert 承载,
|
|
40
40
|
只会挂进 "Molecular Biology Lab" 模式。
|
|
41
41
|
- **测试**:`npm test` = 插件(`smoke`)+ 画面(`svgpng`/`svgio`/`charts`)+ 客户端四套件 +
|
|
42
42
|
DSH 契约(`contract`)+ 组合(`preset-health`)+ 漂移守卫(`drift-probe`)+
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
`build/release-preflight.mjs`,然后用 **OIDC 可信发布**(仓库里没有任何长期 token)分两步发
|
|
46
46
|
两个 npm 条目,最后用 CHANGELOG 该版本段落建 GitHub Release。**首次发布必须手动做一次**
|
|
47
47
|
(可信发布要求包已存在),完整步骤见 [workflow.md](workflow.md) 第 4 节的 CD 段。
|
|
48
|
-
- **benchmark**:`npm run bench` 用真实模型跑 core 档 14 题(`bench:full` 全部
|
|
48
|
+
- **benchmark**:`npm run bench` 用真实模型跑 core 档 14 题(`bench:full` 全部 66 题),分
|
|
49
49
|
`tools_ok` / `args_ok` / `answer_ok` 三项判分;`npm run bench:offline` 零成本校验期望值。
|
|
50
50
|
|
|
51
51
|
包内目录结构:
|
|
52
52
|
|
|
53
53
|
```
|
|
54
54
|
dsh-molbio-tools/
|
|
55
|
-
├── index.mjs # 插件入口:export { name, inject, apply },注册
|
|
55
|
+
├── index.mjs # 插件入口:export { name, inject, apply },注册 65 个工具
|
|
56
56
|
├── lib.mjs # 基础库:IUPAC、翻译、酶表、NN 热力学、qPCR、lab math、甲基化/buffer 参考表
|
|
57
57
|
├── design.mjs # 引物自动设计(含跨内含子 qPCR)
|
|
58
58
|
├── taqman.mjs # TaqMan 水解探针设计(复用 design.mjs 的引物引擎)
|
package/docs/roadmap.md
CHANGED
|
@@ -10,12 +10,14 @@ L = 需要新机制或外部资源)。
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
## 1. 当前状态(0.
|
|
13
|
+
## 1. 当前状态(0.27.0)
|
|
14
14
|
|
|
15
|
-
-
|
|
15
|
+
- 65 个 `molbio_*` 工具,零依赖,随 preset 分发(见 [README](../README.md))。
|
|
16
|
+
- **0.27.0 交付 survey #9 双链热力学**:新增 `molbio_duplex_thermo` —— ΔH/ΔS(原始与盐校正)/ΔG°37/Tm,外加 3' 端稳定性、发夹与同源/异源二聚体;`partner` 不是精确反向互补时**拒绝估算**(Allawi 错配参数集未实现)。工具 64 → 65。
|
|
17
|
+
- PubMed API key 在 **Papers** tab 顶部有常驻状态徽标(已配置/未配置/不可读),检索结果也标注凭据通道。
|
|
16
18
|
- 离线测试金字塔 + 组合漂移守卫全绿;`benchmark/` 提供**模型使用**维度的评估
|
|
17
19
|
(见 [benchmark/README.md](../benchmark/README.md))。
|
|
18
|
-
- 基线:DSH **0.2.2-rc.
|
|
20
|
+
- 基线:DSH **0.2.2-rc.5**;DSH 桌面版内嵌 Node 24.21.0,`engines.node` 与 CI 矩阵都按这个下限。
|
|
19
21
|
- **CI 已在位**(`.github/workflows/test.yml`,0.18.2 起):push / PR / 手动都跑全套;harness 装
|
|
20
22
|
**钉死版本**,并用 `npm prefix -g` 显式导出 `DSH_HARNESS_ROOT`。0.18.4 起**同时跑
|
|
21
23
|
`ubuntu-latest` 与 `windows-latest`**——3.6 已修,套件不再依赖宿主分隔符。
|
|
@@ -50,6 +52,12 @@ L = 需要新机制或外部资源)。
|
|
|
50
52
|
深度雾化、CPK 配色),支持拖拽旋转、滚轮缩放与表示切换;12,000 重原子封顶,
|
|
51
53
|
明确拒绝 V3000,并标注"preview, not for measurements"。根包 `0.24.1 → 0.25.0`、
|
|
52
54
|
面板包 `0.1.10 → 0.1.11`。同版修掉客户端 bundler 丢掉 re-export imported name 的缺陷。
|
|
55
|
+
- **0.25.1 完成 0.2.2-rc.2 适配(工具行为零变化)**:上游 `standard` 改了 3 处——新增
|
|
56
|
+
`tool-office` 行、`skill-filesystem` 的 `customSkillDirs`、`tool-subagent-control` 的
|
|
57
|
+
`interrupt: false`——preset 逐字吸收(29 → 30 行)。`preset-health` 学会校验未求值的
|
|
58
|
+
`!!js` 配置;`contract` 的字符串断言改为匹配调用,桌面版压缩产物不再假红。两份
|
|
59
|
+
`dshReleases` 增加 `0.2.2-rc.2: compatible`,CI 随基线钉到该版本;面板包 `0.1.11 → 0.1.12`
|
|
60
|
+
(只改声明,产物未变)。
|
|
53
61
|
- **0.24.1 是输入边界与数据安全加固版(工具数不变)**:修掉 BibTeX 导出覆盖文献库、
|
|
54
62
|
相对路径按 provider cwd 解析、四个默认写 SVG 的工具被误标并发安全、批量 glob /
|
|
55
63
|
`max_files` / 坏路径、文献与协议库坏条目,以及 20 万行表格 / 13 万条 reads 触发的
|
|
@@ -174,7 +182,9 @@ v16 的 CRISPR 已有订购 CSV 先例,可直接复用格式。
|
|
|
174
182
|
- ✅ **已做(0.23.0)**:`molbio_sequence_logo` 与 `molbio_grna_design` 有调用卡
|
|
175
183
|
(`molbio-figure` 投影 + `FIGURE_TOOL_KEYS`;logo 画图,gRNA 画图谱并列出前 5 条 guide)。
|
|
176
184
|
`test/map-card.mjs` 现在同时跑两种卡片,`contract` 从产物里的两张 key 表反推投影数。
|
|
177
|
-
-
|
|
185
|
+
- 文献库**写回**当前被宿主能力挡住:rc.5 的 `workspaceFiles` Remote 只暴露
|
|
186
|
+
`list / read / readBytes / stat`,没有写入方法(与 3.1 的 `png_path` 同一类阻塞)。
|
|
187
|
+
上游加上写入 seam 之后再定并发契约;在那之前面板保持只读;
|
|
178
188
|
- ✅ **已做(0.25.0)**:结构文件的浏览器内预览(`.pdb/.ent/.cif/.mmcif/.sdf/.mol`)
|
|
179
189
|
接在现有 Molbio tab 里,做**真实 3D 原子模型**(ball-and-stick / space-filling,
|
|
180
190
|
透视 + z-buffer + Phong 光照);拖拽旋转、滚轮缩放。没有走 `ctx.documentPreviews`,
|
|
@@ -200,6 +210,14 @@ v16 的 CRISPR 已有订购 CSV 先例,可直接复用格式。
|
|
|
200
210
|
每张图各配一条 benchmark 任务,并进了 `test/charts.mjs` 的 `sampleDocuments()`,
|
|
201
211
|
让"没有 unsupported / 没有缺字"那条断言覆盖到它们。
|
|
202
212
|
|
|
213
|
+
### 2.11 ✅ 已做(0.27.0)双链热力学(survey #9)
|
|
214
|
+
|
|
215
|
+
新增 `molbio_duplex_thermo` + `thermo.mjs`:ΔH/ΔS/ΔG°37/Tm 与引物工具同一套 NN/盐模型,
|
|
216
|
+
结构侧复用了已有的发夹与二聚体枚举。**两条边界是刻意的**:错配 partner 与 IUPAC 简并码
|
|
217
|
+
都抛错而不是估算——错配双链要用 Allawi/SantaLucia 的参数集,拿 Watson–Crick 参数算出的数
|
|
218
|
+
会"看起来合理但差几 kcal/mol"。DMSO/甲酰胺同样没有建模,文档里写明。工具 64 → 65,
|
|
219
|
+
benchmark 65 → 66 题(65/65 覆盖)。
|
|
220
|
+
|
|
203
221
|
---
|
|
204
222
|
|
|
205
223
|
## 3. 技术债(明确的"欠着")
|
|
@@ -218,7 +236,7 @@ v18 想做"工具写一个工作区 PNG 文件"而**不能**:`dsh-fs` 明文
|
|
|
218
236
|
|
|
219
237
|
### 3.2 benchmark 的覆盖面
|
|
220
238
|
|
|
221
|
-
-
|
|
239
|
+
- 66 条任务覆盖 **65/65 个工具**(0.15.0 起由 `test/benchmark-coverage.mjs` 机器断言;
|
|
222
240
|
core 档 14 题)。**但多数工具只出现在一条任务里,覆盖是浅的**——见
|
|
223
241
|
[benchmark/README.md](../benchmark/README.md) 的"What this benchmark does NOT measure"。
|
|
224
242
|
- 没有断言 **`attach_image` 交付的图片内容**(只当参数用),也不加载客户端产物。
|
|
@@ -318,7 +336,7 @@ Node 做路径运算(Windows 是 `<prefix>/node_modules`,POSIX 是 `<prefix>
|
|
|
318
336
|
- **agent 驱动浏览器终端**:无 `dsh-tool-terminal`,且面板明确不把输出转给模型。
|
|
319
337
|
`ctx.computerUse`/`ctx.browserUse` 这类 seam 只允许**一个** provider 注册,
|
|
320
338
|
第三方插件即便在未来版本也不能自带一个并行实现去抢。
|
|
321
|
-
- **把
|
|
339
|
+
- **把 65 个工具做成全局可见**:bundle 安装 ≠ 工具全局可见是**设计如此**(工具多了会占
|
|
322
340
|
提示预算)。真要全局可见需要自己加一层宿主行,而那会让专属模式里的同一行变成死行。
|
|
323
341
|
- **持久 shell 进 preset**:收益有限、风险明确(工具名冲突要 disable 一次性那行,
|
|
324
342
|
且需要未经验证的 `isolate: { terminals: true }` 分组),详见
|
package/docs/store-evidence.md
CHANGED
|
@@ -21,7 +21,11 @@
|
|
|
21
21
|
"0.2.1-rc.3": "compatible",
|
|
22
22
|
"0.2.1-rc.4": "unknown",
|
|
23
23
|
"0.2.1-rc.5": "compatible",
|
|
24
|
-
"0.2.2-rc.1": "compatible"
|
|
24
|
+
"0.2.2-rc.1": "compatible",
|
|
25
|
+
"0.2.2-rc.2": "compatible",
|
|
26
|
+
"0.2.2-rc.3": "compatible",
|
|
27
|
+
"0.2.2-rc.4": "unknown",
|
|
28
|
+
"0.2.2-rc.5": "compatible"
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
}
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
`@deepseek-ai/dsh-app-boot` 的 `unmetRequirements`):带 prerelease 选项时 `<0.3.0`
|
|
33
37
|
会放行 `0.3.0-alpha.1`,而 `-0` 不会。
|
|
34
38
|
|
|
35
|
-
### 为什么 rc.2 / rc.3 / rc.5
|
|
39
|
+
### 为什么 0.2.1-rc.2 / rc.3 / rc.5 与 0.2.2-rc.1 / rc.2 / rc.3 / rc.5 是 compatible、0.2.1-rc.1 / rc.4 与 0.2.2-rc.4 是 unknown
|
|
36
40
|
|
|
37
41
|
| 版本 | 记录 | 依据 |
|
|
38
42
|
| --- | --- | --- |
|
|
@@ -41,13 +45,17 @@
|
|
|
41
45
|
| 0.2.1-rc.3 | compatible | 0.22.0 的发布基线;同一套一次性 Profile 流程在 rc.3 上重跑通过(安装 → 启动 HTTP 200 → 卸载无残留);`contract` / `preset-health` / `drift-probe` / `benchmark-profile` / `smoke` 在 rc.3 上全绿。上游 `standard` 行清单与 rc.2 **逐字节一致** |
|
|
42
46
|
| 0.2.1-rc.4 | unknown | 没有在真实安装上跑过;不能因为"补丁号在 `engines.dsh` 范围内"就写成 compatible |
|
|
43
47
|
| 0.2.1-rc.5 | compatible | 0.22.2 的发布基线(CI 曾钉该版本)。在本机 DSH 桌面版 0.2.1-rc.5 上重跑:安装 → 启动 HTTP 200 → `agentPresets/list` 的 `broken` 为空且 molbio-lab 的 `tool-molbio` 为 `fiberPhase: "active"` → 卸载无残留;`contract` 17 / `preset-health` 30 行 / `drift-probe` 16 / `smoke` 60 工具 / `bench:offline` 61 题全绿。上游 `standard` 与 rc.3 **逐字节一致**(6799 B,同一 sha256) |
|
|
44
|
-
| 0.2.2-rc.1 | compatible | 0.23.0 的发布基线(CI 钉该版本)。这一版上游删除了 `@deepseek-ai/dsh-tool-subagent-control/list-agents` 导出(`list_agents` 并入主入口),preset 因此删掉该行(30 → 29),`tool-subagent` 改用 `modelSelection`/`modelDiscovery`、`tool-fs` 补 `applyPatch: false`。在**桌面版 `app.asar` 与 npm 全局安装**两份 0.2.2-rc.1 上核对(两者 `standard.patch.yml` **逐字节一致**,6858 B,sha256 `3006CC3780CDDAA7FB0089E5854E6BBEF4409CF1D425930FD835226B95660AFD`);一次性 tarball Profile:安装 → 启动 HTTP 200(40 311 B,boot 图含 `dsh-molbio-tools/client.js`)→ `agentPresets/list` 的 `broken` 为空、`tool-molbio` 为 `fiberPhase: "active"` → 卸载无残留;`contract` 17 / `preset-health` 29 行 / `drift-probe` 16 项(15 个突变)/ `smoke` 62 工具 / `bench:offline` 63 题全绿;定向真实模型跑分 `intron-qpcr` / `protein-charge` / `dotplot` 3 题 3/3(2026-11-05,541,946 tokens
|
|
48
|
+
| 0.2.2-rc.1 | compatible | 0.23.0 的发布基线(CI 钉该版本)。这一版上游删除了 `@deepseek-ai/dsh-tool-subagent-control/list-agents` 导出(`list_agents` 并入主入口),preset 因此删掉该行(30 → 29),`tool-subagent` 改用 `modelSelection`/`modelDiscovery`、`tool-fs` 补 `applyPatch: false`。在**桌面版 `app.asar` 与 npm 全局安装**两份 0.2.2-rc.1 上核对(两者 `standard.patch.yml` **逐字节一致**,6858 B,sha256 `3006CC3780CDDAA7FB0089E5854E6BBEF4409CF1D425930FD835226B95660AFD`);一次性 tarball Profile:安装 → 启动 HTTP 200(40 311 B,boot 图含 `dsh-molbio-tools/client.js`)→ `agentPresets/list` 的 `broken` 为空、`tool-molbio` 为 `fiberPhase: "active"` → 卸载无残留;`contract` 17 / `preset-health` 29 行 / `drift-probe` 16 项(15 个突变)/ `smoke` 62 工具 / `bench:offline` 63 题全绿;定向真实模型跑分 `intron-qpcr` / `protein-charge` / `dotplot` 3 题 3/3(2026-11-05,541,946 tokens)。**0.25.1 起**:preset 采用 rc.2 新增的 `tool-office` 行,该包在 rc.1 不存在,molbio-lab 会以 `MODULE_NOT_FOUND` 无法挂载(0.25.1 的 `preset-health --dsh <rc.1>` 实测);rc.1 上的用户应留在 0.25.0 |
|
|
49
|
+
| 0.2.2-rc.2 | compatible | 0.25.1 的验收基线(CI 钉该版本)。上游 `standard` 相对 rc.1 只变 3 处:新增 `tool-office` 行、`skill-filesystem` 的 `customSkillDirs`(一个 `!!js` 路径)、`tool-subagent-control` 的 `interrupt: false`;preset 逐字吸收(29 → 30 行),`preset-health` 同时学会校验**未求值**的 `!!js` 配置。桌面版 `app.asar` 与 npm tarball 的 `standard.patch.yml` **逐字节一致**(7286 B,sha256 `E40BB192ED3B835312C2ACD2CCD64D3BC4B85F80A7BC95B132CB18FBEE190B5D`)。运行时流程在 **桌面版 0.2.2-rc.2** 上跑:临时 profile → 启动 HTTP 200(41 393 B,boot 图含 `dsh-molbio-tools/client.js`)→ `agentPresets/list` 列出 molbio-lab、无 `broken` → `pluginInventory/list` 的 `tool-molbio` 为 `fiberPhase: "active"`;`contract` 17(在桌面 rc.2 的压缩产物上通过,同一套断言在 npm rc.1 未压缩产物上同样通过)/ `preset-health` 30 行 / `drift-probe` 16 项(15 个突变)/ `smoke` 64 工具 / `bench:offline` 65 题全绿 |
|
|
50
|
+
| 0.2.2-rc.3 | compatible | 0.25.2 的验收基线。桌面版 `app.asar`(`@deepseek-ai/dsh-desktop` / `dsh-desktop-runtime` 均为 0.2.2-rc.3,Electron 44.7.0 / Node 24.21.0)实测:上游 `standard.patch.yml` **与 rc.2 逐字节一致**(7286 B,sha256 `E40BB192…`),因此 preset 零改动;守卫直接对 `resources/app.asar` 运行(`ELECTRON_RUN_AS_NODE=1` + `--dsh app.asar/dsh`):`contract` 17 / `preset-health` 30 行 / `drift-probe` 18 项(17 个突变)/ `client-mount` / `smoke` 64 工具 / `bench:offline` 65 题全绿。本版新增守卫:`preset-health` 要求已安装 harness 版本在两份清单里声明为 `compatible`。 |
|
|
51
|
+
| 0.2.2-rc.4 | unknown | 没有在真实安装上跑过(registry 上有该版本,本机未安装);不能因为"补丁号在 `engines.dsh` 范围内"就写成 compatible |
|
|
52
|
+
| 0.2.2-rc.5 | compatible | 0.25.3 的验收基线。桌面版 `app.asar`(`@deepseek-ai/dsh-desktop-runtime` 为 0.2.2-rc.5,Electron 44.7.0 / Node 24.21.0,338 个 `@deepseek-ai/*` 包全部 rc.5)实测:上游 `standard.patch.yml` **与 rc.3 / rc.2 逐字节一致**(7286 B,sha256 `E40BB192…`),因此 preset 零改动;守卫直接对 `resources/app.asar` 运行:`contract` 17 / `preset-health` 30 行 / `drift-probe` 18 项(17 个突变)/ `client-mount` / `smoke` 64 工具 / `bench:offline` 65 题全绿。宿主的 `evaluatePluginCompatibility()` 对两份清单返回接受。**未重跑**一次性 Profile 的安装 / 启动流程,证据截止到"守卫跑在真实 rc.5 asar 上" |
|
|
45
53
|
|
|
46
54
|
## 2. 环境
|
|
47
55
|
|
|
48
56
|
| 项 | 值 |
|
|
49
57
|
| --- | --- |
|
|
50
|
-
| DSH | `0.2.2-rc.
|
|
58
|
+
| DSH | `0.2.2-rc.5`(桌面版 `app.asar`:`@deepseek-ai/dsh-desktop-runtime` 为 0.2.2-rc.5,Electron 44.7.0;上游 `standard.patch.yml` 与 rc.3 / rc.2 逐字节一致,7286 B / sha256 `e40bb192…`) |
|
|
51
59
|
| Node.js | `v26.12.1`(命令行验证;桌面运行时内嵌 `24.21.0`,Electron 44.7.0) |
|
|
52
60
|
| pnpm | `12.15.0`(`dsh plugin` 安装用) |
|
|
53
61
|
| 平台 | Windows(win32 x64) |
|
|
@@ -148,10 +156,10 @@ pnpm 的 hoisted linker 会在 `node_modules/` 留下一个指向仓库目录的
|
|
|
148
156
|
## 5. 仓库内验证(同一基线)
|
|
149
157
|
|
|
150
158
|
```
|
|
151
|
-
node test/contract.mjs → 17 checks passed(host 契约、client 产物、tarball
|
|
152
|
-
node test/preset-health.mjs → all
|
|
159
|
+
node test/contract.mjs → 17 checks passed(host 契约、client 产物、tarball 覆盖、声明回退的突变自检;对桌面 rc.5 的 asar 压缩产物运行)
|
|
160
|
+
node test/preset-health.mjs → all 30 rows load on dsh 0.2.2-rc.5, both manifests declare it compatible
|
|
153
161
|
node test/smoke.mjs → registered 64 tools, all smoke tests passed
|
|
154
|
-
node test/drift-probe.mjs →
|
|
162
|
+
node test/drift-probe.mjs → 18/18(17 个突变全部被抓到,含"清单未声明该版本"与"降级为 unknown")
|
|
155
163
|
node benchmark/run.mjs --offline → 65 tasks checked against the shipped tools
|
|
156
164
|
```
|
|
157
165
|
|
package/docs/workflow.md
CHANGED
|
@@ -456,7 +456,7 @@ git status --short # lib/client.js 与 packages/molbio-panel/lib/clien
|
|
|
456
456
|
### DSH 升级后:preset 组合的维护(必做)
|
|
457
457
|
|
|
458
458
|
`preset/molbio-lab/agent.cordis.yml` 是官方 `standard` 预设的**行清单**副本 + 末尾一行
|
|
459
|
-
`tool-molbio`(当前基线:**dsh 0.2.2-rc.
|
|
459
|
+
`tool-molbio`(当前基线:**dsh 0.2.2-rc.5**)。它不会自动跟随 DSH 升级,因此每次升级
|
|
460
460
|
DSH 后:
|
|
461
461
|
|
|
462
462
|
1. 取新版的 shipped `standard`:
|
package/host.mjs
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* ── WHY NOT JUST ANCHOR ON index.mjs ───────────────────────────────────────
|
|
29
29
|
*
|
|
30
|
-
* `index.mjs` is the TOOL plugin: importing it must register all
|
|
30
|
+
* `index.mjs` is the TOOL plugin: importing it must register all 65 tools and
|
|
31
31
|
* a prompt section. A host row naming it would put every tool back into every
|
|
32
32
|
* session, which is the thing the preset split exists to avoid. This anchor is
|
|
33
33
|
* deliberately inert.
|
package/index.mjs
CHANGED
|
@@ -71,6 +71,7 @@ import { entryStats, parseFasta, parseFastq, toFasta, toFastq } from './seqio.mj
|
|
|
71
71
|
import { addExperiment, addProtocol, loadRecords, recordPath, saveRecords, updateProtocol } from './records.mjs';
|
|
72
72
|
import { toBibtex } from './papers.mjs';
|
|
73
73
|
import { parseXml } from './snapgene.mjs';
|
|
74
|
+
import { analyzeDuplex } from './thermo.mjs';
|
|
74
75
|
import { smithWaterman } from './align.mjs';
|
|
75
76
|
import { conservationAnalysis, normalizeAlignedRow, normalizeMsaSequence, pairwiseIdentities, progressiveAlign } from './msa.mjs';
|
|
76
77
|
import { ALIGN_POST_LIMITS, CONSENSUS_MODES, alignmentPostprocess } from './align-post.mjs';
|
|
@@ -875,6 +876,116 @@ function primerReport(seq) {
|
|
|
875
876
|
};
|
|
876
877
|
}
|
|
877
878
|
|
|
879
|
+
const duplexThermoTool = define({
|
|
880
|
+
name: 'molbio_duplex_thermo',
|
|
881
|
+
description: 'Full nearest-neighbour thermodynamics of ONE DNA duplex: enthalpy (ΔH), entropy (ΔS, raw and salt-corrected), ΔG at 37 °C, and Tm, using the SAME SantaLucia (1998) parameters and von Ahsen (2001) salt/magnesium model as molbio_primer_tm and molbio_primer_check. Also reports the 3\'-end stability and the structure checks the primer tools score: hairpin stems (3-8 bp stems, 3-10 nt loops) and self-dimer / hetero-dimer melting temperatures. A partner may be supplied only when it is the exact reverse complement of sequence; mismatched duplexes have separate published parameter sets this tool does not carry, so they are REFUSED (with the mismatching positions named) rather than estimated. All values are design estimates, not measurements.',
|
|
882
|
+
parameters: {
|
|
883
|
+
type: 'object',
|
|
884
|
+
required: ['sequence'],
|
|
885
|
+
properties: {
|
|
886
|
+
sequence: requiredString('One strand, 5\'→3\', A/C/G/T only, 4-200 bases.'),
|
|
887
|
+
partner: { type: 'string', description: 'Optional opposite strand (5\'→3\'). Must be the exact reverse complement of sequence; a mismatched partner is refused rather than estimated.' },
|
|
888
|
+
na_mm: optionalNumber('Monovalent cation concentration in mM (default 50).'),
|
|
889
|
+
mg_mm: optionalNumber('Magnesium concentration in mM (default 1.5).'),
|
|
890
|
+
dntp_mm: optionalNumber('Total dNTP concentration in mM (default 0.8; only affects the Mg equivalence term when Mg > dNTP).'),
|
|
891
|
+
oligo_nm: optionalNumber('Strand concentration in nM used for Tm and the structure checks (default 250).'),
|
|
892
|
+
hairpins: { type: 'integer', description: 'How many hairpin stems to report, highest Tm first (0-10, default 3; 0 disables the scan).' },
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
outputSchema: {
|
|
896
|
+
type: 'object',
|
|
897
|
+
additionalProperties: false,
|
|
898
|
+
required: ['sequence', 'length', 'gc_percent', 'conditions', 'duplex', 'end_stability_3p_kcal', 'hairpins', 'dimers', 'model'],
|
|
899
|
+
properties: {
|
|
900
|
+
sequence: { type: 'string' },
|
|
901
|
+
partner: { type: 'string' },
|
|
902
|
+
length: { type: 'integer' },
|
|
903
|
+
gc_percent: { type: 'number' },
|
|
904
|
+
conditions: {
|
|
905
|
+
type: 'object',
|
|
906
|
+
additionalProperties: false,
|
|
907
|
+
required: ['na_mm', 'mg_mm', 'dntp_mm', 'oligo_nm', 'na_equivalent_mm'],
|
|
908
|
+
properties: {
|
|
909
|
+
na_mm: { type: 'number' },
|
|
910
|
+
mg_mm: { type: 'number' },
|
|
911
|
+
dntp_mm: { type: 'number' },
|
|
912
|
+
oligo_nm: { type: 'number' },
|
|
913
|
+
na_equivalent_mm: { type: 'number' },
|
|
914
|
+
},
|
|
915
|
+
},
|
|
916
|
+
duplex: {
|
|
917
|
+
type: 'object',
|
|
918
|
+
additionalProperties: false,
|
|
919
|
+
required: ['delta_h_kcal', 'delta_s_cal', 'delta_s_salt_cal', 'delta_g37_kcal', 'tm_celsius'],
|
|
920
|
+
properties: {
|
|
921
|
+
delta_h_kcal: { type: 'number' },
|
|
922
|
+
delta_s_cal: { type: 'number' },
|
|
923
|
+
delta_s_salt_cal: { type: 'number' },
|
|
924
|
+
delta_g37_kcal: { type: 'number' },
|
|
925
|
+
tm_celsius: { type: 'number' },
|
|
926
|
+
},
|
|
927
|
+
},
|
|
928
|
+
end_stability_3p_kcal: { type: 'number' },
|
|
929
|
+
hairpins: {
|
|
930
|
+
type: 'array',
|
|
931
|
+
items: {
|
|
932
|
+
type: 'object',
|
|
933
|
+
additionalProperties: false,
|
|
934
|
+
required: ['start', 'stem', 'loop', 'tm_celsius', 'delta_g37_kcal'],
|
|
935
|
+
properties: {
|
|
936
|
+
start: { type: 'integer' },
|
|
937
|
+
stem: { type: 'integer' },
|
|
938
|
+
loop: { type: 'integer' },
|
|
939
|
+
tm_celsius: { type: 'number' },
|
|
940
|
+
delta_g37_kcal: { type: 'number' },
|
|
941
|
+
},
|
|
942
|
+
},
|
|
943
|
+
},
|
|
944
|
+
dimers: {
|
|
945
|
+
type: 'object',
|
|
946
|
+
additionalProperties: false,
|
|
947
|
+
required: ['homodimer_any_tm', 'homodimer_end_tm'],
|
|
948
|
+
properties: {
|
|
949
|
+
homodimer_any_tm: { type: 'number' },
|
|
950
|
+
homodimer_end_tm: { type: 'number' },
|
|
951
|
+
heterodimer_any_tm: { type: 'number' },
|
|
952
|
+
heterodimer_end_tm: { type: 'number' },
|
|
953
|
+
},
|
|
954
|
+
},
|
|
955
|
+
model: { type: 'string' },
|
|
956
|
+
},
|
|
957
|
+
},
|
|
958
|
+
render(value) {
|
|
959
|
+
const { duplex, conditions } = value;
|
|
960
|
+
const lines = [
|
|
961
|
+
`${value.length} bp, GC ${value.gc_percent}% — Tm ${duplex.tm_celsius} °C, ΔG°37 ${duplex.delta_g37_kcal} kcal/mol (ΔH ${duplex.delta_h_kcal} kcal/mol, ΔS ${duplex.delta_s_cal} cal/mol·K; salt-corrected ΔS ${duplex.delta_s_salt_cal})`,
|
|
962
|
+
`conditions: ${conditions.na_mm} mM Na+, ${conditions.mg_mm} mM Mg2+, ${conditions.dntp_mm} mM dNTP, ${conditions.oligo_nm} nM strand (Na+ equivalent ${conditions.na_equivalent_mm} mM); 3'-end stability ΔG ${value.end_stability_3p_kcal} kcal/mol`,
|
|
963
|
+
];
|
|
964
|
+
if (value.partner !== undefined) lines.push('partner: exact reverse complement (Watson–Crick duplex)');
|
|
965
|
+
if (value.hairpins.length === 0) {
|
|
966
|
+
lines.push('hairpins: none in the 3-8 bp stem / 3-10 nt loop window');
|
|
967
|
+
} else {
|
|
968
|
+
for (const hit of value.hairpins) {
|
|
969
|
+
lines.push(`hairpin: stem ${hit.stem} bp + loop ${hit.loop} nt from position ${hit.start} — Tm ${hit.tm_celsius} °C, ΔG°37 ${hit.delta_g37_kcal} kcal/mol`);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
const d = value.dimers;
|
|
973
|
+
lines.push(`dimers: homodimer Tm any ${d.homodimer_any_tm} °C / 3'-end ${d.homodimer_end_tm} °C${d.heterodimer_any_tm === undefined ? '' : `; heterodimer any ${d.heterodimer_any_tm} °C / 3'-end ${d.heterodimer_end_tm} °C`}`);
|
|
974
|
+
lines.push('SantaLucia 1998 nearest-neighbour estimate, salt-corrected (von Ahsen 2001); Watson–Crick duplexes only, not a measurement.');
|
|
975
|
+
return lines.join('\n');
|
|
976
|
+
},
|
|
977
|
+
execute(args) {
|
|
978
|
+
return analyzeDuplex(args.sequence, {
|
|
979
|
+
partner: args.partner,
|
|
980
|
+
na_mm: args.na_mm,
|
|
981
|
+
mg_mm: args.mg_mm,
|
|
982
|
+
dntp_mm: args.dntp_mm,
|
|
983
|
+
oligo_nm: args.oligo_nm,
|
|
984
|
+
hairpins: args.hairpins,
|
|
985
|
+
});
|
|
986
|
+
},
|
|
987
|
+
});
|
|
988
|
+
|
|
878
989
|
const primerCheckTool = define({
|
|
879
990
|
name: 'molbio_primer_check',
|
|
880
991
|
description: 'Screen one primer (or a primer pair) for PCR design red flags: mononucleotide runs, short tandem repeats, self-complementarity (3\' end weighted), hairpins, and — for a pair — dimer potential via complementary alignment of the two primers. v12 adds Primer3-style thermodynamic metrics: self_any_score/self_end_score (alignment scores, thresholds 8.0/3.0), hairpin_tm (°C, threshold 47), end stability/end GC of the last five 3\' bases, and for pairs dimer_tm/dimer_end_tm (°C, thresholds 47). Interpret scores relatively: higher 3\'-weighted scores are riskier.',
|
|
@@ -7872,7 +7983,13 @@ const pubmedSearchTool = (ctx) => define({
|
|
|
7872
7983
|
},
|
|
7873
7984
|
},
|
|
7874
7985
|
render(value) {
|
|
7875
|
-
|
|
7986
|
+
// State the credential channel in the transcript: a user who just stored a
|
|
7987
|
+
// key has to be able to tell that this call actually used it, and a caller
|
|
7988
|
+
// without one has to see why the fallback ran. Only the CHANNEL is named —
|
|
7989
|
+
// never a key, which never appears in a result.
|
|
7990
|
+
const via = value.backend === 'pubmed-eutils'
|
|
7991
|
+
? ' via PubMed E-utilities (NCBI API key)'
|
|
7992
|
+
: ' via web search (no NCBI API key)';
|
|
7876
7993
|
if (value.sources.length === 0) return `no results for "${value.query}"${via}`;
|
|
7877
7994
|
const matches = value.total_matches === undefined
|
|
7878
7995
|
? ''
|
|
@@ -8077,7 +8194,7 @@ const paperRemoveTool = (ctx) => define({
|
|
|
8077
8194
|
|
|
8078
8195
|
const PROMPT_SECTION = `Molecular-biology tools (dsh-molbio-tools) are available with the molbio_* prefix:
|
|
8079
8196
|
- Sequence math: molbio_reverse_complement, molbio_gc_content, molbio_translate, molbio_restriction_sites, molbio_methylation_check (which enzymes a Dam/Dcm-methylated template blocks, plus the enzymes that survive), molbio_double_digest (two enzymes: per-enzyme and combined fragments + whether they share a buffer).
|
|
8080
|
-
- Primer work: molbio_design_primers (automatic pair design), molbio_design_intron_primers (qPCR primers spanning an exon-exon junction against a genomic sequence + exon list, so gDNA does not amplify), molbio_primer_tm, molbio_primer_check, molbio_design_taqman (hydrolysis-probe assay: primer pair + probe with the no-5'-G / probe-Tm-margin rules; probe_chemistry='mgb' for shorter MGB probes with an explicitly unmodified NN Tm, and save_path for an ordering CSV of F/R/P with modifications/scale/purification), molbio_multiplex_check (whether several primer pairs can share one tube: cross-dimers, cross-template annealing, gel-resolvable amplicon sizes, plus an annealing-temperature recommendation and a size-balanced starting primer-concentration plan).
|
|
8197
|
+
- Primer work: molbio_design_primers (automatic pair design), molbio_design_intron_primers (qPCR primers spanning an exon-exon junction against a genomic sequence + exon list, so gDNA does not amplify), molbio_primer_tm, molbio_primer_check, molbio_duplex_thermo (ΔH/ΔS/ΔG°37/Tm for one exact duplex plus hairpin and dimer checks; a mismatched partner is refused, not estimated), molbio_design_taqman (hydrolysis-probe assay: primer pair + probe with the no-5'-G / probe-Tm-margin rules; probe_chemistry='mgb' for shorter MGB probes with an explicitly unmodified NN Tm, and save_path for an ordering CSV of F/R/P with modifications/scale/purification), molbio_multiplex_check (whether several primer pairs can share one tube: cross-dimers, cross-template annealing, gel-resolvable amplicon sizes, plus an annealing-temperature recommendation and a size-balanced starting primer-concentration plan).
|
|
8081
8198
|
- qPCR and bench math: molbio_qpcr_analysis, molbio_lab_math.
|
|
8082
8199
|
- Plasmids: molbio_parse_genbank (GenBank text), molbio_parse_snapgene (SnapGene .dna files — researchers usually have .dna files, so when the user names a .dna path use this), molbio_plasmid_map_file (reads a .dna/.gb file and writes the map SVG directly into the workspace in one call), molbio_plasmid_map (same, from a sequence + features). Both map tools WRITE the .svg file themselves and return svg_path — never try to reproduce SVG text in the conversation. Every image-writing tool (maps, plots, virtual gels, qPCR standard curves, clone/Golden Gate maps) opens the generated SVG automatically with the OS default application (auto_view defaults to true; the result's auto_viewed field says whether the hand-off worked), so there is normally nothing for the user to open manually; pass auto_view: false only when the caller explicitly wants no viewer window.
|
|
8083
8200
|
- Cloning: molbio_unique_cutters (pick enzymes that cut the vector once and never the insert), molbio_clone_simulate (restriction-ligation or Gibson assembly → final plasmid sequence + verification digests; pass save_path to write a FASTA), molbio_golden_gate (type IIS multi-fragment assembly: the tool designs the 4 bp junctions and the fragments-to-order, and simulates the final plasmid — use it for BsaI-style Golden Gate instead of reasoning about overhangs by hand), molbio_enzyme_lookup (enzyme catalog: recognition/cut geometry/overhang, plus every cut of a sequence in both strand orientations), molbio_clone_primers (enzyme tails or Gibson arms on amplification primers, with re-checks), molbio_mutagenesis_primers (QuickChange-style mutation primers), molbio_silent_site_mutagenesis (add or remove a restriction site with synonymous codons only, keeping the protein unchanged; the returned mutation_texts feed molbio_mutagenesis_primers).
|
|
@@ -8113,6 +8230,7 @@ export function apply(ctx) {
|
|
|
8113
8230
|
enzymeLookupTool,
|
|
8114
8231
|
primerTmTool,
|
|
8115
8232
|
primerCheckTool,
|
|
8233
|
+
duplexThermoTool,
|
|
8116
8234
|
qpcrTool,
|
|
8117
8235
|
labMathTool,
|
|
8118
8236
|
designPrimersTool,
|