dsh-data-cleaning-agent 0.8.2 → 0.8.3
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 +5 -0
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/lib/client.js +8 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录 `dsh-data-cleaning-agent` 的版本变更。格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [SemVer](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [0.8.3] - 2026-09-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- 「新会话」不再复用数据清洗入口的空白会话:入口从 `sessions.create({ workspaceId, sessionId })` 改为 `sessions.create({ cwd, sessionId })`,仅以工作区路径创建、不再挂进工作区 `sessionIds`,DSH「新会话」的空白会话复用因此跳过它,恢复默认 DSH 标准页;只有点击「数据清洗补全」才进入带标题的工作台初始页。
|
|
9
|
+
|
|
5
10
|
## [0.8.2] - 2026-09-06
|
|
6
11
|
|
|
7
12
|
### Fixed
|
package/README.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> A data cleaning & completion agent plugin for DeepSeek Harness: local CSV/XLSX/JSON engine plus optional Qichacha (QCC) MCP enterprise-data enrichment. Initiated and maintained by the Qichacha (QCC) team.
|
|
4
4
|
>
|
|
5
|
-
> Current source version / 当前源码版本: **0.8.
|
|
5
|
+
> Current source version / 当前源码版本: **0.8.3** (stable release)
|
|
6
6
|
|
|
7
7
|
[](https://github.com/duhu2000/dsh-data-cleaning-agent/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/dsh-data-cleaning-agent)
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 在 DeepSeek Harness 中清洗、补全、画像企业名单数据的智能体插件:本地 CSV/XLSX/JSON 引擎 + 可选企查查(Qichacha/QCC)MCP 企业数据补全,由企查查(Qichacha/QCC)团队发起并维护。
|
|
4
4
|
>
|
|
5
|
-
> 当前源码版本 / Current source version: **0.8.
|
|
5
|
+
> 当前源码版本 / Current source version: **0.8.3**(正式版本)
|
|
6
6
|
|
|
7
7
|
[](https://github.com/duhu2000/dsh-data-cleaning-agent/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/dsh-data-cleaning-agent)
|
package/lib/client.js
CHANGED
|
@@ -1579,21 +1579,24 @@ window.__ModuleLoader__.load({
|
|
|
1579
1579
|
const workspace = ctx.workspaces.list.getSnapshot();
|
|
1580
1580
|
const current = ctx.sessions.list.getSnapshot().current;
|
|
1581
1581
|
const items = Array.isArray(workspace.items) ? workspace.items : [];
|
|
1582
|
-
const
|
|
1582
|
+
const currentWorkspace = current === undefined
|
|
1583
1583
|
? undefined
|
|
1584
|
-
: items.find((item) => Array.isArray(item.sessionIds) && item.sessionIds.includes(current))
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1584
|
+
: items.find((item) => Array.isArray(item.sessionIds) && item.sessionIds.includes(current));
|
|
1585
|
+
const recentWorkspace = items.find((item) => item.workspaceId === workspace.recentWorkspaceId);
|
|
1586
|
+
const cwd = currentWorkspace?.path ?? recentWorkspace?.path ?? items[0]?.path;
|
|
1587
|
+
if (cwd === undefined) {
|
|
1587
1588
|
throw new Error('请先选择一个工作空间,再打开数据清洗补全智能体');
|
|
1588
1589
|
}
|
|
1589
1590
|
// 单一会话所有权:与招投标入口一致,显式创建带前缀的独立原生会话,绝不复用空白会话。
|
|
1590
1591
|
// connectWorkspace 会把「招投标」尚为空白的工作台会话复用为清洗会话,
|
|
1591
1592
|
// 使同一会话同时被招投标与清洗两个插件认领,进而争夺 Hero 标题与右侧工作台面板。
|
|
1593
|
+
// 只用 cwd 创建(不传 workspaceId):会话不挂进工作区,
|
|
1594
|
+
// 「新会话」的 blank 复用逻辑就不会把它当成空白会话复用。
|
|
1592
1595
|
if (typeof ctx.sessions.create !== 'function') {
|
|
1593
1596
|
throw new Error('当前 DSH 版本没有可用的独立会话创建能力');
|
|
1594
1597
|
}
|
|
1595
1598
|
const requestedId = createCleaningSessionId();
|
|
1596
|
-
const sessionId = await ctx.sessions.create({
|
|
1599
|
+
const sessionId = await ctx.sessions.create({ cwd, sessionId: requestedId });
|
|
1597
1600
|
if (sessionId !== requestedId) {
|
|
1598
1601
|
throw new Error('当前 DSH 版本不支持独立会话创建,请升级 DSH 后再打开数据清洗补全智能体');
|
|
1599
1602
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-data-cleaning-agent",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Clean, complete, and profile enterprise name lists in DeepSeek Harness — a data cleaning & completion agent plugin with local CSV/XLSX/JSON engine and optional Qichacha (QCC) MCP enrichment. Maintained by Qichacha/QCC.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|