dsh-mcp-connector 0.2.110 → 0.2.112
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 +18 -0
- package/README.en.md +10 -4
- package/README.md +10 -4
- package/docs/SESSION-TOOL-INJECTION.md +52 -0
- package/docs/screenshots/01-market-overview.jpg +0 -0
- package/docs/screenshots/02-connector-detail.jpg +0 -0
- package/docs/screenshots/03-tool-discovery.jpg +0 -0
- package/docs/screenshots/04-json-import.jpg +0 -0
- package/docs/screenshots/05-unified-tool-search.png +0 -0
- package/docs/screenshots/06-tool-parameters.png +0 -0
- package/docs/screenshots/07-connection-diagnostics.png +0 -0
- package/docs/screenshots/08-ten-recommendations.jpg +0 -0
- package/docs/screenshots/README.md +1 -1
- package/docs/screenshots/assets.json +30 -30
- package/docs/screenshots/en/01-market-overview.jpg +0 -0
- package/docs/screenshots/en/02-connector-detail.jpg +0 -0
- package/docs/screenshots/en/03-tool-discovery.jpg +0 -0
- package/docs/screenshots/en/04-json-import.jpg +0 -0
- package/docs/screenshots/en/05-unified-tool-search.png +0 -0
- package/docs/screenshots/en/06-tool-parameters.png +0 -0
- package/docs/screenshots/en/07-connection-diagnostics.png +0 -0
- package/docs/screenshots/en/08-ten-recommendations.jpg +0 -0
- package/docs/screenshots/en/assets.json +30 -30
- package/docs/screenshots/en/demo.gif +0 -0
- package/docs/tutorials/FIRST-SUCCESS-SCENARIOS.md +1 -1
- package/lib/host-tool-names.js +17 -0
- package/lib/i18n/locales/en/smart-mode.js +66 -0
- package/lib/i18n/locales/en/tools.js +14 -0
- package/lib/i18n/locales/en.js +2 -1
- package/lib/index.js +59 -1
- package/lib/read-only-evidence.js +201 -0
- package/lib/smart-mode-bindings.js +79 -0
- package/lib/smart-mode-control-web.js +56 -0
- package/lib/smart-mode-control.js +216 -0
- package/lib/smart-mode-discovery.js +87 -0
- package/lib/smart-mode-host.js +68 -0
- package/lib/smart-mode-integration.js +253 -0
- package/lib/smart-mode-lifecycle.js +299 -0
- package/lib/smart-mode-prepare.js +286 -0
- package/lib/smart-mode-production.js +181 -0
- package/lib/smart-mode-resources.js +341 -0
- package/lib/smart-mode-restrictions.js +286 -0
- package/lib/smart-mode-schema.js +46 -0
- package/lib/smart-mode-store.js +443 -0
- package/lib/source-relations.js +148 -0
- package/lib/source-selection.js +362 -0
- package/lib/tools.js +101 -0
- package/package.json +4 -4
- package/ui/index.html +9 -0
- package/ui/smart-mode.html +19 -0
- package/ui/smart-mode.js +112 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.112 - 2026-11-18
|
|
4
|
+
|
|
5
|
+
- 提高运行时依赖的最低版本至 Undici 6.29.1 和 Zod 4.6.6,覆盖相关拒绝服务漏洞的修复。CI 使用 Zod 4.6.6 验证最低版本兼容性(#262)。
|
|
6
|
+
- 更新 npm 下载趋势图,截至 2026-11-16(UTC)累计 83,807 次下载(#260)。
|
|
7
|
+
- Raise the minimum runtime versions to Undici 6.29.1 and Zod 4.6.6 to include denial-of-service fixes. CI tests the minimum supported Zod version (#262).
|
|
8
|
+
- Refresh the npm download chart through 2026-11-16 (UTC), with 83,807 downloads over the reporting period (#260).
|
|
9
|
+
|
|
10
|
+
## 0.2.111 - 2026-11-17
|
|
11
|
+
|
|
12
|
+
- 合并 QMCP-4963(#243):为当前账号企查查企业数据六服务提供会话隔离的工具发现、按需加载、版本化来源关系和可信只读核验证据接入。
|
|
13
|
+
- 新增原子 prepare、包含两个常驻入口的 5,000 token 组内预算、10 分钟滑动 TTL、在途保护和安全回退;旧会话、自动化和范围外连接保持兼容。
|
|
14
|
+
- 默认保持兼容模式;发布不自动批准真实只读定义或来源关系,不部署信任公钥,也不自动启用生产智能模式。真实启用仍需单独核验与授权,未经批准的来源不会被自动合并。
|
|
15
|
+
- 覆盖独立 profile 安装、升级、重启、损坏包拒绝及降级回退;修复 Windows Git Bash 的 tar PATH 遮蔽,发布前升级回归固定使用已发布的 0.2.110 基线。
|
|
16
|
+
- 更新本版本中英文无凭据 Mock 截图、演示素材与生成文档。
|
|
17
|
+
- Add session-isolated discovery and on-demand preparation for the current account's six QCC enterprise servers, with reviewed source relationships, signed read-only evidence, a scoped 5,000-token budget, sliding TTL and safe rollback (#243).
|
|
18
|
+
- Compatibility mode remains the default. Publishing grants no real approvals, installs no trust keys and does not enable production smart mode. Real use requires separate verification and authorization; the budget does not cover other connectors or the whole model request.
|
|
19
|
+
- Cover isolated-profile install, upgrade, restart and downgrade; fix Windows tar PATH shadowing, pin the published predecessor for pre-release upgrade tests, and refresh bilingual credential-free Mock media.
|
|
20
|
+
|
|
3
21
|
## 0.2.110 - 2026-11-17
|
|
4
22
|
|
|
5
23
|
- 新增执中 PE/base 双入口 stdio 桥接,通过本机凭据绑定适配官方 URL query API Key。
|
package/README.en.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| 分类 | 连接器数量 | 主要连接器 |
|
|
13
13
|
|---|---:|---|
|
|
14
14
|
| [企业数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E4%BC%81%E4%B8%9A%E6%95%B0%E6%8D%AE) | 2 | [企查查·企业工商](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json)、[企查查·招投标](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json) |
|
|
15
|
-
| [金融投资](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E9%87%91%E8%9E%8D%E6%8A%95%E8%B5%84) |
|
|
15
|
+
| [金融投资](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E9%87%91%E8%9E%8D%E6%8A%95%E8%B5%84) | 14 | [Wind·股票数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/wind-stock-data.json)、[TuShare](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/tushare.json)、[AKShare](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/akshare.json) 等 |
|
|
16
16
|
| [法律合规](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E6%B3%95%E5%BE%8B%E5%90%88%E8%A7%84) | 5 | [企查查·法律数据](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json)、[北大法宝·法律检索](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/pkulaw-legal.json)、[巴西参议院开放数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/brazil-senate-open-data.json) 等 |
|
|
17
17
|
| [调研分析](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E8%B0%83%E7%A0%94%E5%88%86%E6%9E%90) | 42 | [飞常准航空数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/variflight-aviation-data.json)、[智慧芽专利与文献](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/patsnap.json)、[OpenAlex 全球学术研究](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/openalex-research-catalog.json) 等 |
|
|
18
18
|
| [办公协作](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E5%8A%9E%E5%85%AC%E5%8D%8F%E4%BD%9C) | 17 | [腾讯文档](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/tencent-docs.json)、[飞书开放平台](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/feishu.json)、[Notion](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/notion.json) 等 |
|
|
@@ -48,6 +48,12 @@ Results identify their source and last successful cache time. A cached tool is n
|
|
|
48
48
|
|
|
49
49
|
Tool browsing does not execute target tools. Parameter summaries may omit complex rules; the original-schema view contains the sanitized, size-limited cached schema, not an untouched server response. See the [Chinese tool-workspace guide](docs/USER-GUIDE.md#51-工具工作台统一查找工具).
|
|
50
50
|
|
|
51
|
+
### QCC smart loading (development preview; unreleased)
|
|
52
|
+
|
|
53
|
+
Normal startup on verified Native Host `0.2.2-rc.1` can expose Smart tools for the configured account's six enterprise services under one unambiguous grant. Compatibility remains the default. One preview/confirmation enables smart loading for new sessions; existing sessions keep their mode, without changing six separate injection settings.
|
|
54
|
+
|
|
55
|
+
Preparation still requires an independently verified read-only record bound to the complete definition fingerprint; deduplication requires separately approved equivalence relations. This branch creates neither approval automatically. Production installation and real provider benefit remain unverified. See the [scope and rollback guide](docs/SESSION-TOOL-INJECTION.md#development-preview-english).
|
|
56
|
+
|
|
51
57
|
[Chinese user guide](docs/USER-GUIDE.md) · [Connector onboarding](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/ONBOARDING.md) · [First contribution](docs/FIRST-CONTRIBUTION.md) · [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/duhu2000/dsh-mcp-connector/issues)
|
|
52
58
|
|
|
53
59
|
[](https://github.com/duhu2000/dsh-mcp-connector/actions/workflows/ci.yml)
|
|
@@ -142,7 +148,7 @@ If the plugin helps you connect an MCP server faster, consider [starring the rep
|
|
|
142
148
|
- The two legacy Qichacha OAuth plugins support explicit authorization migration. For an affected connection, select **Connection error** in the marketplace or **View recovery steps** under Installed to see which DSH plugin or remaining service entry to disable. After a full DSH restart, MCP Connector takes over the authorization, or prompts for authorization again if it has expired.
|
|
143
149
|
|
|
144
150
|
<!-- catalog-stats:start -->
|
|
145
|
-
As of 2026-11-
|
|
151
|
+
As of 2026-11-17, the public Registry publishes 118 connector descriptors. After merging and deduplicating them with the 4 bundled Qichacha cards, the Marketplace exposes 122 cards across 9 business categories. Homepage recommendations follow the installed plugin version, not the Registry featured count. The Registry evolves independently; the badge shown after a client refresh and the live badges above are the authoritative current counts.
|
|
146
152
|
<!-- catalog-stats:end -->
|
|
147
153
|
|
|
148
154
|
## Interface and demo
|
|
@@ -157,7 +163,7 @@ As of 2026-11-16, the public Registry publishes 117 connector descriptors. After
|
|
|
157
163
|
| Connection diagnostics and last-success cache | |
|
|
158
164
|
|  | |
|
|
159
165
|
|
|
160
|
-
<!-- generated:media -->English UI screenshots and GIF were captured from v0.2.
|
|
166
|
+
<!-- generated:media -->English UI screenshots and GIF were captured from v0.2.112 (2026-11-18), using the credential-free Mock harness. Provider content retains its original language. They demonstrate UI, not real business acceptance; counts are fixtures. See [asset provenance](docs/screenshots/README.md).<!-- /generated:media -->
|
|
161
167
|
|
|
162
168
|
## Installation
|
|
163
169
|
|
|
@@ -299,7 +305,7 @@ npm run dev:ui
|
|
|
299
305
|
|
|
300
306
|
Every Registry merge regenerates `catalog-stats.json`; an hourly workflow in this repository synchronizes the Chinese and English product copy plus a local stats snapshot. The static npm README updates with package releases, while the live badges above read the Registry directly and therefore stay current without another npm release.
|
|
301
307
|
|
|
302
|
-
<!-- generated:version -->The current public version is [`dsh-mcp-connector@0.2.
|
|
308
|
+
<!-- generated:version -->The current public version is [`dsh-mcp-connector@0.2.112`](https://www.npmjs.com/package/dsh-mcp-connector), with [GitHub Release v0.2.112](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.112).<!-- /generated:version -->
|
|
303
309
|
|
|
304
310
|
See [CHANGELOG.md](CHANGELOG.md) for version history and [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md) for the Desktop release checklist.
|
|
305
311
|
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| 分类 | 连接器数量 | 主要连接器 |
|
|
13
13
|
|---|---:|---|
|
|
14
14
|
| [企业数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E4%BC%81%E4%B8%9A%E6%95%B0%E6%8D%AE) | 2 | [企查查·企业工商](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json)、[企查查·招投标](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json) |
|
|
15
|
-
| [金融投资](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E9%87%91%E8%9E%8D%E6%8A%95%E8%B5%84) |
|
|
15
|
+
| [金融投资](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E9%87%91%E8%9E%8D%E6%8A%95%E8%B5%84) | 14 | [Wind·股票数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/wind-stock-data.json)、[TuShare](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/tushare.json)、[AKShare](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/akshare.json) 等 |
|
|
16
16
|
| [法律合规](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E6%B3%95%E5%BE%8B%E5%90%88%E8%A7%84) | 5 | [企查查·法律数据](https://github.com/duhu2000/dsh-mcp-connector/blob/main/catalog/catalog.json)、[北大法宝·法律检索](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/pkulaw-legal.json)、[巴西参议院开放数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/brazil-senate-open-data.json) 等 |
|
|
17
17
|
| [调研分析](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E8%B0%83%E7%A0%94%E5%88%86%E6%9E%90) | 42 | [飞常准航空数据](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/variflight-aviation-data.json)、[智慧芽专利与文献](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/patsnap.json)、[OpenAlex 全球学术研究](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/openalex-research-catalog.json) 等 |
|
|
18
18
|
| [办公协作](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/CONNECTOR-DIRECTORY.md#%E5%8A%9E%E5%85%AC%E5%8D%8F%E4%BD%9C) | 17 | [腾讯文档](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/tencent-docs.json)、[飞书开放平台](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/feishu.json)、[Notion](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/connectors/notion.json) 等 |
|
|
@@ -60,6 +60,12 @@ Install into the profile loaded by your host: use `--profile desktop` with the D
|
|
|
60
60
|
|
|
61
61
|
详见[工具工作台教程](docs/USER-GUIDE.md#51-工具工作台统一查找工具)。工具页用于发现与诊断,不执行目标工具;参数摘要与原始安全缓存均有裁剪边界。
|
|
62
62
|
|
|
63
|
+
### 企查查智能按需模式(开发分支预览,尚未发布)
|
|
64
|
+
|
|
65
|
+
在已验证的 Native Host `0.2.2-rc.1` 上,正常插件启动可自动提供“智能工具”入口。首期只识别当前配置账号、单个明确授权下的企业数据六个服务;默认保持兼容模式,一次预览确认即可为新会话启用按需模式,已有会话保留原模式。无需逐服务修改注入配置。
|
|
66
|
+
|
|
67
|
+
真实工具仍须完整定义指纹绑定的独立只读核验,来源合并仍须独立等价核验;本分支不自动生成这些批准,未核验时 prepare 会拒绝。生产安装与真实收益尚待验收。支持边界、恢复和回退见[按会话工具注入说明](docs/SESSION-TOOL-INJECTION.md#企查查企业数据智能按需模式开发分支预览)。
|
|
68
|
+
|
|
63
69
|
[用户手册](docs/USER-GUIDE.md) · [第三方连接器上架指南](https://github.com/duhu2000/dsh-mcp-connector-registry/blob/main/docs/ONBOARDING.md) · [首次贡献](docs/FIRST-CONTRIBUTION.md) · [参与贡献](CONTRIBUTING.md) · [问题反馈](https://github.com/duhu2000/dsh-mcp-connector/issues)
|
|
64
70
|
|
|
65
71
|
[](https://github.com/duhu2000/dsh-mcp-connector/actions/workflows/ci.yml)
|
|
@@ -156,7 +162,7 @@ Desktop 需要完全退出并重新启动应用;Web 需要停止原 `dsh web`
|
|
|
156
162
|
- 对话工具:`mcp_connector_catalog`、`connect`、`configure`、`import_json`、`export_config`、`snapshot`、`install_from_url`、`status`、`scope`、`health_check`、`policy`、`set_enabled`、`session_tools`、`disconnect`、`refresh_catalog`、`publish`、`tools_list`、`tool_search`、`tool_detail`。搜索/详情只做渐进式能力发现,不执行目标 MCP 工具。
|
|
157
163
|
|
|
158
164
|
<!-- catalog-stats:start -->
|
|
159
|
-
截至 2026-11-
|
|
165
|
+
截至 2026-11-17,公共 Registry 已发布 118 条连接器描述;与随包的 4 张企查查卡片合并去重后,市场页可浏览 122 张卡片,覆盖企业数据、金融投资、法律合规、开发工具、办公协作、调研分析、设计创意、效率工具、其他 9 类。首页推荐由当前插件版本的推荐规则决定,不以 Registry featured 数量代表首页推荐数量。Registry 可独立持续更新,实际数量以客户端刷新后的市场页签徽标和上方实时统计徽标为准。
|
|
160
166
|
<!-- catalog-stats:end -->
|
|
161
167
|
|
|
162
168
|
## 界面与演示
|
|
@@ -171,7 +177,7 @@ Desktop 需要完全退出并重新启动应用;Web 需要停止原 `dsh web`
|
|
|
171
177
|
| 连接诊断与最后成功缓存 | |
|
|
172
178
|
|  | |
|
|
173
179
|
|
|
174
|
-
<!-- generated:media -->截图与 GIF 采集自 v0.2.
|
|
180
|
+
<!-- generated:media -->截图与 GIF 采集自 v0.2.112(2026-11-18)无凭据 Mock 页面,展示界面而非真实业务验收;市场数量是测试夹具。来源与更新方法见 [素材说明](docs/screenshots/README.md)。<!-- /generated:media -->
|
|
175
181
|
|
|
176
182
|
## 安装
|
|
177
183
|
|
|
@@ -306,7 +312,7 @@ npm run dev:ui
|
|
|
306
312
|
|
|
307
313
|
公共 Registry 每次合并后会生成 `catalog-stats.json`;本仓库的定时工作流每小时同步中英文介绍和统计快照。npm 页面中的静态正文随版本发布更新,上方动态统计徽标则直接读取 Registry,可在不发布新 npm 版本时保持实时数量一致。
|
|
308
314
|
|
|
309
|
-
<!-- generated:version -->当前公开版本为 [`dsh-mcp-connector@0.2.
|
|
315
|
+
<!-- generated:version -->当前公开版本为 [`dsh-mcp-connector@0.2.112`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.112](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.112)。<!-- /generated:version -->
|
|
310
316
|
|
|
311
317
|
版本能力与变更记录见 [CHANGELOG.md](CHANGELOG.md)。
|
|
312
318
|
Desktop 发版回归见 [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md)。
|
|
@@ -49,3 +49,55 @@ Host 已观察到
|
|
|
49
49
|
- 搜索结果来自最后成功缓存;激活只改变可见性,不代表当前业务调用必然成功。
|
|
50
50
|
|
|
51
51
|
更底层的状态机、威胁模型和后续阶段见 [Issue #111 设计文档](https://github.com/duhu2000/dsh-mcp-connector/blob/main/docs/DESIGN-SESSION-DYNAMIC-TOOL-INJECTION.md)。
|
|
52
|
+
|
|
53
|
+
## 企查查企业数据智能按需模式(开发分支预览)
|
|
54
|
+
|
|
55
|
+
本节说明尚未发布的 QMCP-4963 生产接入。上文的手动按会话激活功能继续保留,两者不互相替代。
|
|
56
|
+
|
|
57
|
+
正常启动仅在以下条件全部具备时显示“智能工具”:已验证的 Host `0.2.2-rc.1`、Native 执行器、浏览器 owner 身份、真实 profile/Workspace/Session 服务,以及当前配置账号的单个明确 grant 下六条官方企业连接:`qcc-company`、`qcc-risk`、`qcc-ipr`、`qcc-operation`、`qcc-history`、`qcc-executive`。不合并多个账号或 grant;不覆盖法律、法宝和其他连接。缺少依赖、未知版本或全局 `compactManagementTools=true` 时保留现有兼容行为。
|
|
58
|
+
|
|
59
|
+
1. 进入“智能工具”,点击“为新会话启用智能模式”,核对范围后确认一次。无需逐条修改连接配置或预先切换智能层。
|
|
60
|
+
2. 继续使用 DSH 原有的新建/对话入口即可;新建的交互式 Native 会话在首次真实用户输入前取得模式快照。页面也提供使用 Host 原生 Workspace 和 Session 服务的新建/恢复入口;有多个工作区且页面未获得当前工作区时,需要选择一次。
|
|
61
|
+
3. 模型先搜索简要目录,再 prepare 少量完整工具定义。准备不执行业务,不绕过 Host 审批、治理拒绝、工作区或手动激活要求。尚无独立只读核验的真实定义会被拒绝;候选相似不等于来源已获批准。
|
|
62
|
+
|
|
63
|
+
已有会话(包括开启前的空会话)保持兼容;fork/subagent 继承模式,加载状态不继承。重启按已保存的新会话默认模式启动,恢复旧会话保留其快照,已准备工具需重新准备。原始 tools/list 定义只在内存中使用,不从清洗缓存推断审批,也不另行保存 schema 或业务样本。
|
|
64
|
+
|
|
65
|
+
**回退:**“新会话使用兼容模式”只改变后续会话的默认值;“停用智能层”恢复当前进程的原有工具视图并释放加载状态,仍保留原有权限限制和模式记录。若需重启后也保持兼容,请先确认兼容默认,再停用智能层。运行中的会话或在途操作会阻止不安全的启停;写入默认模式失败时撤回本次新挂载。
|
|
66
|
+
|
|
67
|
+
本分支尚未批准真实来源关系或只读定义,也未完成真实模型 A/B。完成生产接入代码不代表现在可以启用生产智能模式。
|
|
68
|
+
|
|
69
|
+
### 可信只读证据交付(尚未发布)
|
|
70
|
+
|
|
71
|
+
管理员先完成独立业务核验,再向目标 profile 的 `smart-mode-evidence/` 目录交付两个本地文件。该目录属于插件交付约定,不新增或修改 DSH 配置项。没有文件、签名不可信或校验失败时保持未核验;不存在模型工具或网页 API 可安装信任公钥、上传包或签发证据。
|
|
72
|
+
|
|
73
|
+
| 文件/字段 | 约定 |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| `trust.json` | 严格对象:`version:1`、`accountRef`、`groupId`、`profileBinding`、`keys`。`profileBinding` 为管理员为目标 profile 生成并妥善保留的 64 位十六进制标识,各 profile 应不同 |
|
|
76
|
+
| `keys[]` | 最多 16 个独立审核方公钥:`id`、`publicKey`(Ed25519 SPKI PEM 公钥)、`enabled`、`notBefore`、`expiresAt`。公钥须通过审核方之外的可信渠道核对并由管理员预置;签名私钥不交给插件、不写入 profile |
|
|
77
|
+
| `bundle.json` | 严格对象:`keyId`、`payload`、`signature`。签名为 Ed25519 签名的标准 Base64,payload 采用下述规范化字节 |
|
|
78
|
+
| `payload` | `version:1`、`purpose:"dsh-read-only-evidence-v1"`、`accountRef`、`groupId`、`profileBinding`、正整数 `revision`、`issuedAt`、`notBefore`、`expiresAt`、`reviews`(最多 1024 条)。所有时间为 UTC epoch 毫秒 |
|
|
79
|
+
| `reviews[]` | `version:1`、`accountRef`、`groupId`、`sourceId`、`definitionFingerprint`、`enabled`、`validFrom`、`expiresAt`、`review:{effect:"read-only",evidenceHash,reviewedAt,reviewerHash}`;四种哈希均为 64 位小写十六进制。sourceId 和完整指纹取自现有受认证 inspect 的 `source`,不从清洗缓存重建 |
|
|
80
|
+
|
|
81
|
+
包内审核范围必须匹配本期当前账号/六服务组及目标 profile;审核有效期不能超出包的有效期,审核时间不能晚于签发时间。每条审核的 reviewerHash 必填。证据 dossier 由独立审核方保管,包只携带摘要和结论,不携带 schema、业务响应样本、OAuth 凭据或来源等价关系。公钥/签名只能证明签发者及内容完整性,不能代替业务上的只读核验。
|
|
82
|
+
|
|
83
|
+
签发方通过包的公共 API `readOnlyEvidenceSigningBytes(payload)` 取得精确字节:UTF-8 字符串 `dsh-read-only-evidence-v1` + 换行 + `canonicalSourceJson(payload)`。规范化按对象键排序、数组保序,无空白;禁止非 JSON 值和额外字段。签名必须发生在独立审核环境;插件不提供签发接口。交付文件先写同目录临时文件、刷盘,再原子替换正式文件,避免读取半包;对 `trust.json` 的管理始终由 profile 管理员在网页之外完成。
|
|
84
|
+
|
|
85
|
+
证据包是**完整快照**。更高 revision 删除/禁用某条审核即可撤回;删除证据文件或移除/禁用公钥也会使其不可用。正常启动后已核验的只读记录自动供 prepare 使用,无需用户逐条保存;本地人工撤回具有优先级,重新启用仍需当前可信证据并显式确认。只读核验不会批准来源等价关系,也不会放宽 Workspace、手动启用或治理限制。
|
|
86
|
+
|
|
87
|
+
已接收版本下限保存在独立 smart domain 的 `evidence_receipts/`,按账号/组隔离,原子硬链接发布且不覆盖;只保存绑定、版本、内容摘要和校验和。重启后拒绝旧版本及同版本不同内容;已签名、范围正确的过期/未来包也会推进版本下限,恢复时须发送更高 revision。不要删除接收记录来回退授权。公钥轮换保留 profileBinding,并交付更高版本的新签名包;本地撤回不因重启或新包消失。
|
|
88
|
+
|
|
89
|
+
证据读取有大小/条数/文件类型上限,缺失、损坏、写盘失败均拒绝;接受没有内存专用回退。推理和派发边界同步复核,文件监控及 1 秒轮询同步收窄空闲 lookup 视图,拒绝派发时也刷新 schema/lookup;不承诺撤销已经入站的在途调用。存储要求与原 smart domain 相同:本地原子硬链接文件系统;Windows 不承诺整机断电耐久性。版本下限基于仍完整的本地接收记录,不能对整个 profile/信任根被人为回退或同进程恶意代码作隔离保证。
|
|
90
|
+
|
|
91
|
+
## Development preview (English)
|
|
92
|
+
|
|
93
|
+
The unreleased smart adapter supports the configured account's six QCC enterprise connections under one unambiguous grant on verified Native Host `0.2.2-rc.1`. It requires real profile, Workspace, Session and authenticated browser-owner services. Other accounts, legal/Fabao services, unknown Hosts and global compact management mode retain existing behavior.
|
|
94
|
+
|
|
95
|
+
Compatibility is the default. Use Smart tools, preview the six-service scope and confirm once; normal DSH new-session and conversation entry points then work without six per-connection changes. The control page also delegates creation and recovery to Host services. Select a workspace only when its context cannot be inferred.
|
|
96
|
+
|
|
97
|
+
Existing and pre-enablement blank sessions retain their mode. Forks/subagents inherit mode but never prepared tools. Restart restores the saved default and session snapshots, while loading state is always cleared. Read-only approvals must bind complete raw-definition fingerprints; equivalence approvals remain separate. Neither is inferred from tool names, hints, cached schemas or the mode confirmation. Existing Workspace, manual activation, governance and Host approval boundaries remain authoritative.
|
|
98
|
+
|
|
99
|
+
For persistent rollback, first confirm Compatibility for new sessions, then disable the smart layer to restore current-process tool views. Disabling alone does not erase the saved smart default. Busy sessions block unsafe mount/unmount; a failed policy write rolls back a newly mounted layer. Real approvals and provider A/B acceptance remain pending.
|
|
100
|
+
|
|
101
|
+
Trusted read-only delivery is now wired in this development branch. An administrator provisions scoped Ed25519 public keys in `<profile>/smart-mode-evidence/trust.json` and atomically delivers an independently signed full snapshot as `bundle.json`. The table above defines the strict v1 protocol; `readOnlyEvidenceSigningBytes(payload)` is the public canonical-byte helper for an external signer. No private key, signing endpoint, trust installation API, remote download or schema/sample storage is provided.
|
|
102
|
+
|
|
103
|
+
Verified records automatically feed preparation; local manual withdrawals override them. Every inference/dispatch admission rechecks evidence, expiry and the durable revision floor. File watching and a one-second fallback narrow idle lookup views. Withdrawals cannot cancel already-admitted calls. Missing or invalid evidence and receipt-write failures deny preparation. Higher signed revisions replace the entire approval snapshot; older revisions or changed content at the same revision cannot regain authority after restart while the local receipts remain intact. Real review dossiers, production trust provisioning and actual read-only/source approvals remain pending.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 产品截图与演示的来源及更新
|
|
2
2
|
|
|
3
|
-
<!-- generated:media -->本组 8 张截图和 GIF 均从 v0.2.
|
|
3
|
+
<!-- generated:media -->本组 8 张截图和 GIF 均从 v0.2.112 于 2026-11-18 重新采集,未修改截图中的版本文字。<!-- /generated:media -->
|
|
4
4
|
|
|
5
5
|
前七张素材由真实产品 UI 的无凭据 Mock harness 渲染:1280×720 浏览器视口、800px 产品面板、桌面两列卡片。顶部保留“无凭据 Mock”标识;目录数、连接数与工具数是演示夹具,不代表生产统计或真实授权、业务验收。不会读取用户 profile、调用服务商或上传业务数据。
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"capture": {
|
|
4
4
|
"locale": "zh-CN",
|
|
5
|
-
"capturedOn": "2026-11-
|
|
6
|
-
"sourceVersion": "0.2.
|
|
7
|
-
"sourceFingerprint": "
|
|
5
|
+
"capturedOn": "2026-11-18",
|
|
6
|
+
"sourceVersion": "0.2.112",
|
|
7
|
+
"sourceFingerprint": "622d17cd86edde070c635f9b7d64d09b33ea5df6d90a541bd8e101c6d4e75f8b",
|
|
8
8
|
"browserViewport": {
|
|
9
9
|
"width": 1280,
|
|
10
10
|
"height": 720
|
|
@@ -17,63 +17,63 @@
|
|
|
17
17
|
"screenshots": [
|
|
18
18
|
{
|
|
19
19
|
"path": "docs/screenshots/01-market-overview.jpg",
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "8446f55b5a4a106b76c4a6634ee5a66c29c92b04bb24bd02814efd321d58e13a",
|
|
21
21
|
"width": 1280,
|
|
22
22
|
"height": 720,
|
|
23
|
-
"capturedOn": "2026-11-
|
|
24
|
-
"sourceVersion": "0.2.
|
|
23
|
+
"capturedOn": "2026-11-18",
|
|
24
|
+
"sourceVersion": "0.2.112"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "docs/screenshots/02-connector-detail.jpg",
|
|
28
|
-
"sha256": "
|
|
28
|
+
"sha256": "5cb0b33566e53033faf8e30d80b2ca11c7d573631c0140aa023d7bf40aeab1a7",
|
|
29
29
|
"width": 1280,
|
|
30
30
|
"height": 720,
|
|
31
|
-
"capturedOn": "2026-11-
|
|
32
|
-
"sourceVersion": "0.2.
|
|
31
|
+
"capturedOn": "2026-11-18",
|
|
32
|
+
"sourceVersion": "0.2.112"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"path": "docs/screenshots/03-tool-discovery.jpg",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "acef642856100166ea6bd27b05ac4dd1b707ff64785cefc775909b3d4ff6e56f",
|
|
37
37
|
"width": 1280,
|
|
38
38
|
"height": 720,
|
|
39
|
-
"capturedOn": "2026-11-
|
|
40
|
-
"sourceVersion": "0.2.
|
|
39
|
+
"capturedOn": "2026-11-18",
|
|
40
|
+
"sourceVersion": "0.2.112"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"path": "docs/screenshots/04-json-import.jpg",
|
|
44
|
-
"sha256": "
|
|
44
|
+
"sha256": "341314b63d305f228ab3c0f8d43ee035bcdc2894a8c6240905820abf5d18135f",
|
|
45
45
|
"width": 1280,
|
|
46
46
|
"height": 720,
|
|
47
|
-
"capturedOn": "2026-11-
|
|
48
|
-
"sourceVersion": "0.2.
|
|
47
|
+
"capturedOn": "2026-11-18",
|
|
48
|
+
"sourceVersion": "0.2.112"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "docs/screenshots/05-unified-tool-search.png",
|
|
52
|
-
"sha256": "
|
|
52
|
+
"sha256": "bc966238cb597356583bee0919bda892f3de1aab1cd45a62d834c638a131b4aa",
|
|
53
53
|
"width": 1280,
|
|
54
54
|
"height": 720,
|
|
55
|
-
"capturedOn": "2026-11-
|
|
56
|
-
"sourceVersion": "0.2.
|
|
55
|
+
"capturedOn": "2026-11-18",
|
|
56
|
+
"sourceVersion": "0.2.112"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"path": "docs/screenshots/06-tool-parameters.png",
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "1c339a25b50b30a70f15a738b6972e51373717f39147ae58c6584478d80a0335",
|
|
61
61
|
"width": 1280,
|
|
62
62
|
"height": 720,
|
|
63
|
-
"capturedOn": "2026-11-
|
|
64
|
-
"sourceVersion": "0.2.
|
|
63
|
+
"capturedOn": "2026-11-18",
|
|
64
|
+
"sourceVersion": "0.2.112"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"path": "docs/screenshots/07-connection-diagnostics.png",
|
|
68
|
-
"sha256": "
|
|
68
|
+
"sha256": "9ac68cc455e18863df363775147318b0af09bd123ebd397e2c052b987c39f28c",
|
|
69
69
|
"width": 1280,
|
|
70
70
|
"height": 720,
|
|
71
|
-
"capturedOn": "2026-11-
|
|
72
|
-
"sourceVersion": "0.2.
|
|
71
|
+
"capturedOn": "2026-11-18",
|
|
72
|
+
"sourceVersion": "0.2.112"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"path": "docs/screenshots/08-ten-recommendations.jpg",
|
|
76
|
-
"sha256": "
|
|
76
|
+
"sha256": "1386419b9b13a2cd78917e8c7516f853551cbba1fd9f11ea76edab4729addea9",
|
|
77
77
|
"width": 1280,
|
|
78
78
|
"height": 1400,
|
|
79
79
|
"browserViewport": {
|
|
@@ -81,17 +81,17 @@
|
|
|
81
81
|
"height": 1400
|
|
82
82
|
},
|
|
83
83
|
"panelHeight": 1280,
|
|
84
|
-
"capturedOn": "2026-11-
|
|
85
|
-
"sourceVersion": "0.2.
|
|
84
|
+
"capturedOn": "2026-11-18",
|
|
85
|
+
"sourceVersion": "0.2.112"
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"demo": {
|
|
89
89
|
"path": "docs/demo.gif",
|
|
90
|
-
"sha256": "
|
|
90
|
+
"sha256": "9e9f24b9c54ce2eb1eba27556786dec279b2b671c2aaaf24548411de6ee7741c",
|
|
91
91
|
"width": 960,
|
|
92
92
|
"height": 540,
|
|
93
|
-
"capturedOn": "2026-11-
|
|
94
|
-
"sourceVersion": "0.2.
|
|
93
|
+
"capturedOn": "2026-11-18",
|
|
94
|
+
"sourceVersion": "0.2.112",
|
|
95
95
|
"durationSeconds": 36
|
|
96
96
|
}
|
|
97
97
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"capture": {
|
|
4
4
|
"locale": "en",
|
|
5
|
-
"capturedOn": "2026-11-
|
|
6
|
-
"sourceVersion": "0.2.
|
|
7
|
-
"sourceFingerprint": "
|
|
5
|
+
"capturedOn": "2026-11-18",
|
|
6
|
+
"sourceVersion": "0.2.112",
|
|
7
|
+
"sourceFingerprint": "622d17cd86edde070c635f9b7d64d09b33ea5df6d90a541bd8e101c6d4e75f8b",
|
|
8
8
|
"browserViewport": {
|
|
9
9
|
"width": 1280,
|
|
10
10
|
"height": 720
|
|
@@ -17,63 +17,63 @@
|
|
|
17
17
|
"screenshots": [
|
|
18
18
|
{
|
|
19
19
|
"path": "docs/screenshots/en/01-market-overview.jpg",
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "0d9fa3812d9fbe70d17e985dc15039b1929a70b10729785234cdc4225f3808c0",
|
|
21
21
|
"width": 1280,
|
|
22
22
|
"height": 720,
|
|
23
|
-
"capturedOn": "2026-11-
|
|
24
|
-
"sourceVersion": "0.2.
|
|
23
|
+
"capturedOn": "2026-11-18",
|
|
24
|
+
"sourceVersion": "0.2.112"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "docs/screenshots/en/02-connector-detail.jpg",
|
|
28
|
-
"sha256": "
|
|
28
|
+
"sha256": "c007dc4512edae674f1395385b72ad8686f900ed6e90ca4ac0cb643eb43a3ee1",
|
|
29
29
|
"width": 1280,
|
|
30
30
|
"height": 720,
|
|
31
|
-
"capturedOn": "2026-11-
|
|
32
|
-
"sourceVersion": "0.2.
|
|
31
|
+
"capturedOn": "2026-11-18",
|
|
32
|
+
"sourceVersion": "0.2.112"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"path": "docs/screenshots/en/03-tool-discovery.jpg",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "74b217915e1fbf167e13ce1666b4e4ccbb1f0dd7b20a127ad8f878a354c72fcf",
|
|
37
37
|
"width": 1280,
|
|
38
38
|
"height": 720,
|
|
39
|
-
"capturedOn": "2026-11-
|
|
40
|
-
"sourceVersion": "0.2.
|
|
39
|
+
"capturedOn": "2026-11-18",
|
|
40
|
+
"sourceVersion": "0.2.112"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"path": "docs/screenshots/en/04-json-import.jpg",
|
|
44
|
-
"sha256": "
|
|
44
|
+
"sha256": "40707342b8a0f12f7668d9ce4a4446cc86a3332029aa872a9e1f298c4f483623",
|
|
45
45
|
"width": 1280,
|
|
46
46
|
"height": 720,
|
|
47
|
-
"capturedOn": "2026-11-
|
|
48
|
-
"sourceVersion": "0.2.
|
|
47
|
+
"capturedOn": "2026-11-18",
|
|
48
|
+
"sourceVersion": "0.2.112"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "docs/screenshots/en/05-unified-tool-search.png",
|
|
52
|
-
"sha256": "
|
|
52
|
+
"sha256": "189b68d4ff6dc3044437ee28685531b73c283ed48e1d5958e40125490de769f4",
|
|
53
53
|
"width": 1280,
|
|
54
54
|
"height": 720,
|
|
55
|
-
"capturedOn": "2026-11-
|
|
56
|
-
"sourceVersion": "0.2.
|
|
55
|
+
"capturedOn": "2026-11-18",
|
|
56
|
+
"sourceVersion": "0.2.112"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"path": "docs/screenshots/en/06-tool-parameters.png",
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "a004db79f947d449c4b6102c4980709adcad542a56e5c3b6a451071e9e0df593",
|
|
61
61
|
"width": 1280,
|
|
62
62
|
"height": 720,
|
|
63
|
-
"capturedOn": "2026-11-
|
|
64
|
-
"sourceVersion": "0.2.
|
|
63
|
+
"capturedOn": "2026-11-18",
|
|
64
|
+
"sourceVersion": "0.2.112"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"path": "docs/screenshots/en/07-connection-diagnostics.png",
|
|
68
|
-
"sha256": "
|
|
68
|
+
"sha256": "17f0867fe10d5797de8662d3dd86aa4b28a11a41c8973050b3db5f0904046403",
|
|
69
69
|
"width": 1280,
|
|
70
70
|
"height": 720,
|
|
71
|
-
"capturedOn": "2026-11-
|
|
72
|
-
"sourceVersion": "0.2.
|
|
71
|
+
"capturedOn": "2026-11-18",
|
|
72
|
+
"sourceVersion": "0.2.112"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"path": "docs/screenshots/en/08-ten-recommendations.jpg",
|
|
76
|
-
"sha256": "
|
|
76
|
+
"sha256": "480f51999180e077b985693b43d8c9d4b240208f0e3b07f2bac57932551ea74e",
|
|
77
77
|
"width": 1280,
|
|
78
78
|
"height": 1400,
|
|
79
79
|
"browserViewport": {
|
|
@@ -81,17 +81,17 @@
|
|
|
81
81
|
"height": 1400
|
|
82
82
|
},
|
|
83
83
|
"panelHeight": 1280,
|
|
84
|
-
"capturedOn": "2026-11-
|
|
85
|
-
"sourceVersion": "0.2.
|
|
84
|
+
"capturedOn": "2026-11-18",
|
|
85
|
+
"sourceVersion": "0.2.112"
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"demo": {
|
|
89
89
|
"path": "docs/screenshots/en/demo.gif",
|
|
90
|
-
"sha256": "
|
|
90
|
+
"sha256": "6153cc1e8d2dc059cec717c0100564eb2ee01ef42c9577f7d870db1cc41c96d7",
|
|
91
91
|
"width": 960,
|
|
92
92
|
"height": 540,
|
|
93
|
-
"capturedOn": "2026-11-
|
|
94
|
-
"sourceVersion": "0.2.
|
|
93
|
+
"capturedOn": "2026-11-18",
|
|
94
|
+
"sourceVersion": "0.2.112",
|
|
95
95
|
"durationSeconds": 36
|
|
96
96
|
}
|
|
97
97
|
}
|
|
Binary file
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
| 项目 | 验收要求 |
|
|
10
10
|
|---|---|
|
|
11
|
-
| 前提 | <!-- generated:version -->正式 `dsh-mcp-connector@0.2.
|
|
11
|
+
| 前提 | <!-- generated:version -->正式 `dsh-mcp-connector@0.2.112`<!-- /generated:version -->;当前 Workspace;企查查 OAuth 可用;测试账号具有目标企业数据权限 |
|
|
12
12
|
| 权限/管理员 | 账号权限、组织授权和可见字段由服务商控制;企业组织可能需要管理员开通,当前文档不能替代审批 |
|
|
13
13
|
| 费用 | 可能受套餐、次数或字段权限影响;MCP连接器无法确认本次费用,调用前在服务商侧核对 |
|
|
14
14
|
| 运行/数据去向 | 远程 MCP Server;企业名称、查询参数和调用结果经 DSH Host 发送到/返回自 `agent.qcc.com` |
|
package/lib/host-tool-names.js
CHANGED
|
@@ -37,3 +37,20 @@ export function readHostToolNames(tools, { t = tZh } = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
return [...new Set(names)].sort();
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/** Pinned smart-mode contract: pre-restriction names, never schema materialization. */
|
|
42
|
+
export function readHostRestrictionNames(tools, agent) {
|
|
43
|
+
if (typeof tools?.view !== 'function') throw new Error('Host restrictable name view unavailable');
|
|
44
|
+
const view = tools.view(agent);
|
|
45
|
+
if (!(view?.visible instanceof Map) || !(view.knownNames instanceof Set)
|
|
46
|
+
|| !(view.restrictableNames instanceof Set)) throw new Error('Host restrictable name view incompatible');
|
|
47
|
+
const result = {
|
|
48
|
+
visible: [...view.visible.keys()].sort(),
|
|
49
|
+
known: [...view.knownNames].sort(),
|
|
50
|
+
restrictable: [...view.restrictableNames].sort(),
|
|
51
|
+
};
|
|
52
|
+
if (Object.values(result).some((names) => names.some((name) => typeof name !== 'string' || !name))) {
|
|
53
|
+
throw new Error('Host restrictable name format incompatible');
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"可信只读证据已校验(版本 {revision});准备时仍会复核权限和有效期。": "Trusted read-only evidence verified (revision {revision}); preparation still rechecks permissions and validity.",
|
|
3
|
+
"暂无可用的可信只读证据,请联系管理员完成核验交付。": "No valid trusted read-only evidence is available. Ask your administrator to deliver verified evidence.",
|
|
4
|
+
"当前完整定义已有可信只读核验;仍须满足有效期和调用权限。": "This complete definition has trusted read-only verification; validity and call permissions still apply.",
|
|
5
|
+
"工作区": "Workspace",
|
|
6
|
+
"请选择工作区": "Select a workspace",
|
|
7
|
+
"企查查企业数据 · 六个服务": "Qichacha enterprise data · six services",
|
|
8
|
+
"当前账号企业数据六个服务,仅影响新会话": "Six enterprise services for the current account; new sessions only",
|
|
9
|
+
"上下文已清空。": "The visible context has been cleared.",
|
|
10
|
+
"智能工具管理": "Smart tool management",
|
|
11
|
+
"返回连接器": "Back to connectors",
|
|
12
|
+
"新会话默认模式": "Default mode for new sessions",
|
|
13
|
+
"正在读取范围…": "Loading scope…",
|
|
14
|
+
"为新会话启用智能模式": "Use smart mode for new sessions",
|
|
15
|
+
"新会话使用兼容模式": "Use compatibility mode for new sessions",
|
|
16
|
+
"停用智能层": "Disable smart layer",
|
|
17
|
+
"恢复智能层": "Restore smart layer",
|
|
18
|
+
"模式切换只影响新会话,已有会话保留原模式。停用智能层会恢复原有工具视图。": "Mode changes apply to new sessions. Existing sessions keep their mode. Disabling the layer restores the original tool view.",
|
|
19
|
+
"会话": "Sessions",
|
|
20
|
+
"当前会话": "Current session",
|
|
21
|
+
"新建会话": "New session",
|
|
22
|
+
"恢复所选会话": "Restore selected session",
|
|
23
|
+
"清空可见上下文": "Clear visible context",
|
|
24
|
+
"压缩上下文": "Compact context",
|
|
25
|
+
"清空保留历史日志和模式记录,并释放本会话已准备的工具;压缩保留现有权限和模式。": "Clearing preserves history and mode records and releases prepared tools. Compaction preserves permissions and mode.",
|
|
26
|
+
"查找与选择来源": "Find and select a source",
|
|
27
|
+
"搜索工具": "Search tools",
|
|
28
|
+
"输入工具名称或关键词": "Enter a tool name or keyword",
|
|
29
|
+
"查找": "Search",
|
|
30
|
+
"查看当前完整工具定义": "View the current full tool definition",
|
|
31
|
+
"本会话明确使用此来源": "Use this source in this session",
|
|
32
|
+
"选择来源不会自动加载工具,也不会批准来源等价关系。": "Selecting a source does not load tools or approve source equivalence.",
|
|
33
|
+
"只读核验记录": "Read-only verification record",
|
|
34
|
+
"独立核验证据的 SHA-256": "SHA-256 of independent verification evidence",
|
|
35
|
+
"64 位十六进制哈希": "64-character hexadecimal hash",
|
|
36
|
+
"有效小时数": "Validity in hours",
|
|
37
|
+
"工具名称和只读提示不能代替核验。保存启用记录还须通过服务端独立核验策略。": "Names and read-only hints are insufficient. Enabled records also require independent server-side verification.",
|
|
38
|
+
"预览并保存只读核验": "Preview and save read-only verification",
|
|
39
|
+
"撤回当前只读核验": "Revoke this read-only verification",
|
|
40
|
+
"确认变更": "Confirm change",
|
|
41
|
+
"确认": "Confirm",
|
|
42
|
+
"取消": "Cancel",
|
|
43
|
+
"当前默认:{mode} · 智能层{status}": "Current default: {mode} · smart layer {status}",
|
|
44
|
+
"智能模式": "Smart mode",
|
|
45
|
+
"兼容模式": "Compatibility mode",
|
|
46
|
+
"已启用": "Enabled",
|
|
47
|
+
"已停用": "Disabled",
|
|
48
|
+
"已准备 {count}": "{count} prepared",
|
|
49
|
+
"变更已保存": "Change saved",
|
|
50
|
+
"智能层状态已更新": "Smart layer status updated",
|
|
51
|
+
"会话操作已完成": "Session operation completed",
|
|
52
|
+
"清空可见上下文并释放已准备工具?历史日志仍保留。": "Clear visible context and release prepared tools? History logs will be retained.",
|
|
53
|
+
"可见上下文已清空,历史日志保留": "Visible context cleared; history logs retained",
|
|
54
|
+
"{name} · 查看": "{name} · Inspect",
|
|
55
|
+
"定义指纹:{fingerprint}": "Definition fingerprint: {fingerprint}",
|
|
56
|
+
"记录版本 {revision} · {status}": "Record revision {revision} · {status}",
|
|
57
|
+
"已撤回": "Revoked",
|
|
58
|
+
"当前定义没有持久化只读核验": "No durable read-only verification for this definition",
|
|
59
|
+
"本会话比较此来源与首选": "Compare this source with the preferred source in this session",
|
|
60
|
+
"找到 {count} 项能力": "{count} capabilities found",
|
|
61
|
+
"压缩未完成,结果已记录在会话日志中。请检查当前上下文后重试。": "Compaction did not finish. Check the session log and current context before retrying.",
|
|
62
|
+
"预览已过期或已使用,请重新预览。": "Preview expired or was used. Create a new preview.",
|
|
63
|
+
"定义或会话已变化,请重新核对。": "The definition or session changed. Review it again.",
|
|
64
|
+
"未通过服务端独立只读核验,记录未启用。": "Independent read-only verification failed. The record was not enabled.",
|
|
65
|
+
"会话正在处理任务,请等待结束后重试。": "The session is busy. Retry when it is idle."
|
|
66
|
+
};
|