dsh-pre-duediligence 0.1.30 → 0.1.32
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 +12 -0
- package/README.md +5 -5
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/assets/fonts/LICENSE.txt +92 -0
- package/assets/fonts/NotoSansCJKsc-Regular.otf +0 -0
- package/assets/fonts/README.md +12 -0
- package/docs/RELEASE-0.1.31.md +9 -0
- package/docs/RELEASE-0.1.32.md +11 -0
- package/docs/REPORT-FILES-PHASE3.md +1 -1
- package/install.sh +1 -1
- package/lib/client.js +669 -559
- package/lib/index.js +115 -11
- package/lib/index.js.map +4 -4
- package/lib/types/analysis-panels.d.ts +12 -0
- package/lib/types/analysis-records.d.ts +25 -0
- package/lib/types/previsit-workflow.d.ts +9 -0
- package/lib/types/processing-status.d.ts +7 -0
- package/lib/types/tool-json.d.ts +2 -0
- package/package.json +2 -1
- package/skills/qcc-previsit-onepager/SKILL.md +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
## [Unreleased]
|
|
3
3
|
|
|
4
|
+
## [0.1.32] - 2026-09-14
|
|
5
|
+
|
|
6
|
+
- 采集维度摘要卡片、关键事实和折叠明细,明确样本范围。
|
|
7
|
+
- 持久化核验/假设记录、证据引用、支持/反证/未知和下一步,追加修订可回看。
|
|
8
|
+
- 兼容旧报告中文假设标题,不把提取文本当核验通过。
|
|
9
|
+
- 报告完成和部分完成不强制跳转,提供查看报告入口。
|
|
10
|
+
|
|
4
11
|
## [0.1.30] - 2026-09-14
|
|
5
12
|
|
|
6
13
|
- 独立补充任务和不可覆盖报告版本,保留历史主体与证据日期。
|
|
@@ -187,3 +194,8 @@
|
|
|
187
194
|
- 补齐中文产品首页、四阶段流程及局部可恢复标题,仅在访前尽调空白会话展示。
|
|
188
195
|
- 侧栏展开请求支持新会话挂载前排队,修复连续切换时右侧工作台不显示。
|
|
189
196
|
- 增加入口失败、会话归属、标题恢复和导航提交顺序回归测试。
|
|
197
|
+
# 0.1.31
|
|
198
|
+
|
|
199
|
+
- 修复 finalize/history 可选字段导致的 lossless JSON 错误,保留版本不可覆盖及相同正文幂等重试。
|
|
200
|
+
- 增加可追踪的公开工作阶段、嵌套经营资料摘要与明确的数据/摘要状态。
|
|
201
|
+
- 内置开源中文字体,PDF默认无需配置环境变量、无需联网。
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# dsh-pre-duediligence
|
|
2
2
|
|
|
3
|
-
0.1.
|
|
3
|
+
0.1.32 重构采集摘要卡片,新增可追溯的核验与机会假设记录(支持、反证、未知、下一步、证据引用与修订历史),完成后保留当前阅读页面。旧报告不补造过程证据。保留继续尽调、报告版本、离线中文 PDF/Word 导出;真实上传尚未接通。详见 [发布说明](docs/RELEASE-0.1.32.md)。
|
|
4
4
|
|
|
5
5
|
## 安装与三分钟上手
|
|
6
6
|
|
|
7
7
|
访前尽调智能体:面向拜访前调查,提供企业尽调、客户尽调、客户背景调查、工商核验与风险信息整理;使用企查查 MCP,提供固定路由连续调用、主体确认、动态进度和可下载报告。
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
dsh plugin --profile web add dsh-pre-duediligence@0.1.
|
|
10
|
+
dsh plugin --profile web add dsh-pre-duediligence@0.1.32
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
请先满足下文的 DSH 与连接器要求;Better Sidebar 仅在需要可视化工作台时选装。安装后完整停止并重启对应 Profile。
|
|
@@ -92,7 +92,7 @@ bash <(curl -fsSL https://raw.githubusercontent.com/duhu2000/dsh-pre-duediligenc
|
|
|
92
92
|
安装脚本默认向 DSH Web profile 安装两个基础 Bundle:
|
|
93
93
|
|
|
94
94
|
1. `dsh-mcp-connector@0.2.32`:提供通用 MCP 连接器与市场,通过“企查查·企业工商”完成 OAuth,并动态挂载企业、风险、知产、经营、历史和董监高 MCP。
|
|
95
|
-
2. `dsh-pre-duediligence@0.1.
|
|
95
|
+
2. `dsh-pre-duediligence@0.1.32`:提供左侧智能体入口、原生会话首页、提示词生成器、Host 执行门和 Skill。
|
|
96
96
|
|
|
97
97
|
默认不会安装 Better Sidebar。需要 Session 级可视化工作台时显式开启:
|
|
98
98
|
|
|
@@ -120,7 +120,7 @@ dsh web
|
|
|
120
120
|
|
|
121
121
|
~~~bash
|
|
122
122
|
dsh plugin --profile web add dsh-mcp-connector@0.2.32
|
|
123
|
-
dsh plugin --profile web add dsh-pre-duediligence@0.1.
|
|
123
|
+
dsh plugin --profile web add dsh-pre-duediligence@0.1.32 --allow-build=node-pty,dsh-pre-duediligence
|
|
124
124
|
dsh web
|
|
125
125
|
~~~
|
|
126
126
|
|
|
@@ -136,7 +136,7 @@ dsh web
|
|
|
136
136
|
dsh plugin --profile web list --depth 0
|
|
137
137
|
~~~
|
|
138
138
|
|
|
139
|
-
应始终看到所选基线的 Connector 和 `dsh-pre-duediligence@0.1.
|
|
139
|
+
应始终看到所选基线的 Connector 和 `dsh-pre-duediligence@0.1.32`;仅在显式启用或原本已安装时看到 Sidebar。重启 DSH 并连接“企查查·企业工商”后,在左侧菜单点击“访前尽调”进入初始原生会话。无 Sidebar 时可继续生成提示词、回填/发送草稿并在会话中阅读报告;五项流程按钮会提示安装可选工作台。安装 Sidebar 时,右侧工作台初始仍关闭;点击业务按钮可主动打开,正式发送任务被接纳后会自动展开一次。仅回填不会展开,收起后轮询不会重新打开。其右侧“+”菜单不会列出该入口,普通会话保持 DSH 原样。
|
|
140
140
|
|
|
141
141
|
### 无 Sidebar 功能边界
|
|
142
142
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -21,3 +21,8 @@ Copyright (c) 2026 dsh-data-cleaning-agent plugin contributors
|
|
|
21
21
|
https://github.com/duhu2000/dsh-data-cleaning-agent
|
|
22
22
|
|
|
23
23
|
No source code from that project is bundled in this package.
|
|
24
|
+
# Noto Sans CJK SC
|
|
25
|
+
|
|
26
|
+
The unmodified Noto Sans CJK SC Regular font (© 2014-2021 Adobe) is distributed
|
|
27
|
+
under SIL Open Font License 1.1, not the package's MIT license.
|
|
28
|
+
See assets/fonts/LICENSE.txt and assets/fonts/README.md.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
2
|
+
Version 1.1.
|
|
3
|
+
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font
|
|
14
|
+
creation efforts of academic and linguistic communities, and to
|
|
15
|
+
provide a free and open framework in which fonts may be shared and
|
|
16
|
+
improved in partnership with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply to
|
|
25
|
+
any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software
|
|
36
|
+
components as distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to,
|
|
39
|
+
deleting, or substituting -- in part or in whole -- any of the
|
|
40
|
+
components of the Original Version, by changing formats or by porting
|
|
41
|
+
the Font Software to a new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION & CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed,
|
|
49
|
+
modify, redistribute, and sell modified and unmodified copies of the
|
|
50
|
+
Font Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components, in
|
|
53
|
+
Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the
|
|
64
|
+
corresponding Copyright Holder. This restriction only applies to the
|
|
65
|
+
primary font name as presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created using
|
|
77
|
+
the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Bundled Chinese PDF font
|
|
2
|
+
|
|
3
|
+
Noto Sans CJK SC Regular, version 2.004. Unmodified OpenType font.
|
|
4
|
+
Copyright © 2014-2021 Adobe (http://www.adobe.com/).
|
|
5
|
+
Licensed under SIL Open Font License 1.1; see LICENSE.txt.
|
|
6
|
+
|
|
7
|
+
Upstream: https://github.com/notofonts/noto-cjk/tree/main/Sans/OTF/SimplifiedChinese
|
|
8
|
+
Upstream Git blob SHA-1: dc15562470b4f842321894787a0d066879ccff8b
|
|
9
|
+
Size: 16437364 bytes. The downloaded asset was matched to GitHub's blob identity.
|
|
10
|
+
|
|
11
|
+
The package includes this font for offline PDF export; it is not loaded into the
|
|
12
|
+
browser bundle. No runtime font download or OS font configuration is required.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 0.1.31 — 工具结果可靠性与可见进展
|
|
2
|
+
|
|
3
|
+
- 工具出口递归省略可选对象字段,拒绝JSON会静默破坏的非JSON值;工具测试在宿主边界执行严格往返校验。
|
|
4
|
+
- 首版 finalize / history 不再返回 undefined;相同正文重试幂等,不同正文仍不得覆盖已发布版本。遇到不确定保存结果应先读取历史确认,补充内容创建新版本。
|
|
5
|
+
- 新增 previsit_progress,保存用户可见的整理事实、风险核对、撰写报告工作摘要。查询事件、停止和同步失败优先;旧摘要标明时间,不展示内部思考或虚构百分比。单次长模型生成不能保证定时更新。
|
|
6
|
+
- 有界提取嵌套中文业务字段、记录计数和数组样本,支持JSON文本包装,排除凭据字段;查询状态与摘要缺失分开展示。老任务仅保存了旧摘要时不补造数据。
|
|
7
|
+
- PDF随包内置未修改的 Noto Sans CJK SC Regular 2.004(SIL OFL 1.1),默认离线导出。保留字体环境变量覆盖;只生成正文版,不声称复刻HTML排版。字体使安装包增大约16MB。
|
|
8
|
+
|
|
9
|
+
验收:类型检查、单元/集成回归、构建及发布流水线浏览器门禁。合成中文PDF已生成、提取文本并逐页检查。本机无头Chrome启动退出,浏览器回归以GitHub Linux门禁结果为准;未调用真实企业MCP或改写用户历史报告。
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 0.1.32 — 可读采集摘要与过程证据
|
|
2
|
+
|
|
3
|
+
- 采集结果按维度组织摘要卡片,默认关键字段,折叠来源与已保存样本;股权、知识产权、资质等全部已查询维度可回看。总记录数与实际样本明确区分,不自动推断全量覆盖。
|
|
4
|
+
- 新增 previsit_record_analysis:任务内保存核验发现或机会假设,包含支持、反证、未知、下一步及真实 runId/factId。相同 id 追加修订,持久保存、历史回看。支持与反证状态校验引用存在性,不代替人工判断证据是否充分。
|
|
5
|
+
- 证据核验页展示明细范围与结构化核验,不再复制采集页完整扫描卡片。假设存在不再视为反证完成。
|
|
6
|
+
- 老报告兼容“假设 1(优先)”标题,明确为报告提取、无过程证据,不补造历史时间线。
|
|
7
|
+
- 完成及部分完成均保留当前页面;点击“查看报告”才导航。正常运行的阶段跟随保持原逻辑。
|
|
8
|
+
|
|
9
|
+
记录更新依赖模型在自然阶段调用工具,不保证单次长生成期间持续产出新结论;缺记录时如实提示。已发布任务不可修改,新增内容需继续尽调子任务。
|
|
10
|
+
|
|
11
|
+
发布使用既有 GitHub Actions / npm Trusted Publishing OIDC,不引入长期令牌或降低验证门。
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
使用 docx 生成 OOXML ZIP、PDFKit 生成 PDF,不把 HTML 改后缀冒充 Word/PDF。当前为保真文本版:正文和 Markdown 标记原样保留,非 HTML 富排版复刻,不载入远程图片、链接资源或脚本。文件含主体、版本、任务标识;采用 Letter 纵向页面和自动换行。
|
|
8
8
|
|
|
9
|
-
PDF
|
|
9
|
+
自0.1.31起,PDF默认使用随包分发的 Noto Sans CJK SC Regular(SIL OFL 1.1),无需联网或管理员配置。可选 `DSH_PREVISIT_PDF_FONT` 指定具有中文覆盖的独立 TTF/OTF;显式配置不可读或字体无效时仍报错,不伪造成功记录。覆盖字体的授权及特殊字符显示需部署方确认。以下验收记录为三期初版历史记录。
|
|
10
10
|
|
|
11
11
|
Word 默认指定 Arial Unicode MS,可用 `DSH_PREVISIT_DOCX_FONT` 更换为部署环境已安装的中文字体家族;DOCX 不嵌入字体,打开端须有该字体或有效替代字体。当前导出不是富排版PDF/Word模板引擎。
|
|
12
12
|
|
package/install.sh
CHANGED
|
@@ -5,7 +5,7 @@ set -euo pipefail
|
|
|
5
5
|
readonly PROFILE_NAME="${DSH_PROFILE:-web}"
|
|
6
6
|
readonly BASELINE="${DSH_PREVISIT_BASELINE:-stable}"
|
|
7
7
|
readonly WORKBENCH_MODE="${DSH_PREVISIT_WORKBENCH:-off}"
|
|
8
|
-
readonly PREVISIT_SPEC="${DSH_PRE_DUEDILIGENCE_SPEC:-dsh-pre-duediligence@0.1.
|
|
8
|
+
readonly PREVISIT_SPEC="${DSH_PRE_DUEDILIGENCE_SPEC:-dsh-pre-duediligence@0.1.32}"
|
|
9
9
|
readonly LEGACY_PREVISIT_NAME="qcc-previsit-dsh"
|
|
10
10
|
readonly LEGACY_QCC_OAUTH_NAME="qcc-dsh-mcp-oauth"
|
|
11
11
|
|