dsh-mcp-connector 0.2.41 → 0.2.42

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 CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.2.42] - 2026-09-11
8
+
9
+ ### Fixed
10
+
11
+ - 示例 Prompt 的“发送”动作会在 DSH 0.1.2 优先调用 `uiWorkspace.connectWorkspace`,并兼容 DSH 0.1.1 的 `workspaces.connectWorkspace` 与 `sessions.create` 安全降级;不再因工作区导航 API 迁移报错。
12
+
7
13
  ## [0.2.41] - 2026-09-09
8
14
 
9
15
  ### Added
@@ -638,7 +644,8 @@
638
644
  - 外部 URL 与导入 Header 执行安全校验。
639
645
  - iframe 消息校验同源和消息来源。
640
646
 
641
- [Unreleased]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.41...HEAD
647
+ [Unreleased]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.42...HEAD
648
+ [0.2.42]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.41...v0.2.42
642
649
  [0.2.41]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.40...v0.2.41
643
650
  [0.2.40]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.39...v0.2.40
644
651
  [0.2.39]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.38...v0.2.39
package/README.en.md CHANGED
@@ -68,7 +68,7 @@ If the plugin helps you connect an MCP server faster, consider [starring the rep
68
68
  - Explicit, non-destructive migration from the two earlier Qichacha OAuth plugins, plus active-plugin conflict detection that blocks duplicate server management and credential overwrites.
69
69
 
70
70
  <!-- catalog-stats:start -->
71
- As of 2026-09-05, the public Registry publishes 105 connector descriptors. After merging and deduplicating them with the 4 bundled Qichacha cards, the Marketplace exposes 109 cards across 9 business categories. Recommendations remain limited to the four Qichacha cards, PKULaw, and Wind, for 6 featured cards in total. The Registry evolves independently; the badge shown after a client refresh and the live badges above are the authoritative current counts.
71
+ As of 2026-09-11, the public Registry publishes 106 connector descriptors. After merging and deduplicating them with the 4 bundled Qichacha cards, the Marketplace exposes 110 cards across 9 business categories. Recommendations remain limited to the four Qichacha cards, PKULaw, and Wind, for 6 featured cards in total. The Registry evolves independently; the badge shown after a client refresh and the live badges above are the authoritative current counts.
72
72
  <!-- catalog-stats:end -->
73
73
 
74
74
  ## Interface and demo
@@ -176,7 +176,7 @@ npm run dev:ui
176
176
 
177
177
  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.
178
178
 
179
- The current public version is [`dsh-mcp-connector@0.2.41`](https://www.npmjs.com/package/dsh-mcp-connector), with [GitHub Release v0.2.41](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.41).
179
+ The current public version is [`dsh-mcp-connector@0.2.42`](https://www.npmjs.com/package/dsh-mcp-connector), with [GitHub Release v0.2.42](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.42).
180
180
 
181
181
  See [CHANGELOG.md](CHANGELOG.md) for version history and [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md) for the Desktop release checklist.
182
182
 
package/README.md CHANGED
@@ -70,7 +70,7 @@ dsh plugin --profile web add dsh-mcp-connector
70
70
  - 对话工具:`mcp_connector_catalog`、`connect`、`configure`、`import_json`、`export_config`、`snapshot`、`install_from_url`、`status`、`scope`、`health_check`、`policy`、`set_enabled`、`disconnect`、`refresh_catalog`、`publish`、`tools_list`。
71
71
 
72
72
  <!-- catalog-stats:start -->
73
- 截至 2026-09-05,公共 Registry 已发布 105 条连接器描述;与随包的 4 张企查查卡片合并去重后,市场页可浏览 109 张卡片,覆盖企业数据、金融投资、法律合规、开发工具、办公协作、调研分析、设计创意、效率工具、其他 9 类。推荐位严格保留 4 张企查查卡片、北大法宝和 Wind,共 6 张;其他连接器按业务分类展示。Registry 可独立持续更新,实际数量以客户端刷新后的市场页签徽标和上方实时统计徽标为准。
73
+ 截至 2026-09-11,公共 Registry 已发布 106 条连接器描述;与随包的 4 张企查查卡片合并去重后,市场页可浏览 110 张卡片,覆盖企业数据、金融投资、法律合规、开发工具、办公协作、调研分析、设计创意、效率工具、其他 9 类。推荐位严格保留 4 张企查查卡片、北大法宝和 Wind,共 6 张;其他连接器按业务分类展示。Registry 可独立持续更新,实际数量以客户端刷新后的市场页签徽标和上方实时统计徽标为准。
74
74
  <!-- catalog-stats:end -->
75
75
 
76
76
  ## 界面与演示
@@ -172,7 +172,7 @@ npm run dev:ui
172
172
 
173
173
  公共 Registry 每次合并后会生成 `catalog-stats.json`;本仓库的定时工作流每小时同步中英文介绍和统计快照。npm 页面中的静态正文随版本发布更新,上方动态统计徽标则直接读取 Registry,可在不发布新 npm 版本时保持实时数量一致。
174
174
 
175
- 当前公开版本为 [`dsh-mcp-connector@0.2.41`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.41](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.41)。
175
+ 当前公开版本为 [`dsh-mcp-connector@0.2.42`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.42](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.42)。
176
176
 
177
177
  版本能力与变更记录见 [CHANGELOG.md](CHANGELOG.md)。
178
178
  Desktop 发版回归见 [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md)。
package/lib/client.js CHANGED
@@ -999,7 +999,23 @@ window.__ModuleLoader__.load({
999
999
  if (targetWorkspaceId === void 0) {
1000
1000
  throw new Error("请先选择一个工作空间,再使用示例 Prompt");
1001
1001
  }
1002
- const sessionId = await ctx.workspaces.connectWorkspace(targetWorkspaceId);
1002
+ // DSH 0.1.2 将跨 Controller 的导航能力从 workspaces 移到
1003
+ // uiWorkspace;0.1.1 Desktop 仍暴露旧方法。优先使用当前公开能力,
1004
+ // 再兼容旧版,最后以 sessions.create 保证未来移除桥接方法时仍能
1005
+ // 在目标 Workspace 创建原生会话。
1006
+ const uiWorkspace = typeof ctx.get === "function"
1007
+ ? ctx.get("uiWorkspace")
1008
+ : ctx.uiWorkspace;
1009
+ let sessionId;
1010
+ if (typeof uiWorkspace?.connectWorkspace === "function") {
1011
+ sessionId = await uiWorkspace.connectWorkspace(targetWorkspaceId);
1012
+ } else if (typeof ctx.workspaces?.connectWorkspace === "function") {
1013
+ sessionId = await ctx.workspaces.connectWorkspace(targetWorkspaceId);
1014
+ } else if (typeof ctx.sessions?.create === "function") {
1015
+ sessionId = await ctx.sessions.create({ workspaceId: targetWorkspaceId });
1016
+ } else {
1017
+ throw new Error("当前 DSH 版本没有可用的工作区会话创建能力,请升级 DSH 后重试");
1018
+ }
1003
1019
  const conversation = ctx.get("conversation");
1004
1020
  if (conversation === void 0) {
1005
1021
  throw new Error("DSH 对话服务尚未就绪,请稍后重试");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mcp-connector",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "description": "DeepSeek Harness MCP Connector and MCP Server marketplace with over one hundred MCP connectors, continuously updated. Discover, authorize, and manage connections in one place; supports OAuth 2.0 PKCE, API keys, stdio/HTTP, mcpServers JSON import, and tool and prompt discovery. Maintained by Qichacha/QCC.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -41,11 +41,12 @@
41
41
  ],
42
42
  "scripts": {
43
43
  "test": "node --test",
44
- "lint": "node --check lib/index.js && node --check lib/web.js && node --check lib/client.js && node --check lib/settings.js && node --check lib/version-status.js && node --check lib/schema.js && node --check lib/catalog.js && node --check lib/prompts.js && node --check lib/probe.js && node --check lib/diagnostics.js && node --check lib/connection-backup.js && node --check lib/connection-editor.js && node --check lib/connection-scopes.js && node --check lib/governance.js && node --check lib/mcp-validation.js && node --check lib/mcp-http.js && node --check lib/migration.js && node --check lib/stores.js && node --check lib/grant-journal.js && node --check lib/oauth.js && node --check lib/grant-lifecycle.js && node --check lib/callback-server.js && node --check lib/mcp-provision.js && node --check lib/util.js && node --check lib/constants.js && node --check lib/tools.js && node --check lib/connectors/oauth-connector.js && node --check lib/connectors/manual-connector.js && node --check lib/connectors/json-connector.js && node --check scripts/probe-connector.mjs && node --check scripts/build-registry.mjs && node --check scripts/ui-harness.mjs && node --check scripts/check-market-registration.mjs && node --check scripts/check-readme-version.mjs && node --check scripts/check-marketing-metadata.mjs && node --check scripts/check-storefront-screenshots.mjs && node --check scripts/sync-registry-stats.mjs && node --check scripts/verify-pack.mjs",
44
+ "lint": "node --check lib/index.js && node --check lib/web.js && node --check lib/client.js && node --check lib/settings.js && node --check lib/version-status.js && node --check lib/schema.js && node --check lib/catalog.js && node --check lib/prompts.js && node --check lib/probe.js && node --check lib/diagnostics.js && node --check lib/connection-backup.js && node --check lib/connection-editor.js && node --check lib/connection-scopes.js && node --check lib/governance.js && node --check lib/mcp-validation.js && node --check lib/mcp-http.js && node --check lib/migration.js && node --check lib/stores.js && node --check lib/grant-journal.js && node --check lib/oauth.js && node --check lib/grant-lifecycle.js && node --check lib/callback-server.js && node --check lib/mcp-provision.js && node --check lib/util.js && node --check lib/constants.js && node --check lib/tools.js && node --check lib/connectors/oauth-connector.js && node --check lib/connectors/manual-connector.js && node --check lib/connectors/json-connector.js && node --check scripts/probe-connector.mjs && node --check scripts/build-registry.mjs && node --check scripts/ui-harness.mjs && node --check scripts/check-market-registration.mjs && node --check scripts/check-distribution-sync.mjs && node --check scripts/check-readme-version.mjs && node --check scripts/check-marketing-metadata.mjs && node --check scripts/check-storefront-screenshots.mjs && node --check scripts/sync-registry-stats.mjs && node --check scripts/verify-pack.mjs",
45
45
  "registry:build": "node scripts/build-registry.mjs",
46
46
  "registry:validate": "node scripts/probe-connector.mjs catalog/catalog.json --validate-only",
47
47
  "dev:ui": "node scripts/ui-harness.mjs",
48
48
  "market:check": "node scripts/check-market-registration.mjs",
49
+ "distribution:check:live": "node scripts/check-distribution-sync.mjs --strict-sync",
49
50
  "registry:stats:sync": "node scripts/sync-registry-stats.mjs",
50
51
  "docs:check": "node scripts/check-readme-version.mjs",
51
52
  "marketing:check": "node scripts/check-marketing-metadata.mjs",