@rezti/dsh-rez-suite 0.1.7 → 0.1.8

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/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { homedir } from "node:os";
3
3
  import { dirname, join } from "node:path";
4
- import { REZ_CREDENTIAL_REFS, REZ_DEFAULT_CONNECTIONS, REZ_SYSTEMS, mergeConnections, secretConfigured, writeManagedCredential } from "@rezti/dsh-rez-sso";
4
+ import { REZ_CREDENTIAL_REFS, REZ_DEFAULT_CONNECTIONS, REZ_SYSTEMS, lastMcpStartError, mergeConnections, secretConfigured, writeManagedCredential } from "@rezti/dsh-rez-sso";
5
5
  import { mkdirSync, renameSync, writeFileSync } from "node:fs";
6
6
  import { DatabaseSync } from "node:sqlite";
7
7
  //#region ../../node_modules/.pnpm/@deepseek-ai+cosmokit@1.8.2/node_modules/@deepseek-ai/cosmokit/lib/index.js
@@ -2905,13 +2905,14 @@ function observeServer(server, input) {
2905
2905
  registeredTools: 0,
2906
2906
  lastError: "未配置 " + ref
2907
2907
  };
2908
+ const startError = (input.startError ?? lastMcpStartError)(server);
2908
2909
  return {
2909
2910
  server,
2910
2911
  enabled: true,
2911
2912
  state: "disconnected",
2912
2913
  toolCount: 0,
2913
2914
  registeredTools: 0,
2914
- lastError: ref + " 已配置,但本机尚未注册 " + mcpToolPrefix(server) + "*(dsh-mcp-client 未挂上)"
2915
+ lastError: startError !== void 0 ? ref + " 已配置,但 MCP 未挂上:" + startError : ref + " 已配置,但本机尚未注册 " + mcpToolPrefix(server) + "*(dsh-mcp-client 未挂上)"
2915
2916
  };
2916
2917
  }
2917
2918
  function observeComposedServers(input) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rezti/dsh-rez-suite",
3
3
  "description": "ReZ-TI employee plugin for DeepSeek Harness: one install enables company MCP (Odoo / Nextcloud / WeCom / Weixin-ClawBot / Home Assistant) and work identity.",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": "^22.19.0 || >=24.0.0"
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "^1.30.0",
40
40
  "zod": "^4.4.3",
41
- "@rezti/dsh-rez-ha-bridge": "0.1.5",
41
+ "@rezti/dsh-rez-ha-bridge": "0.1.6",
42
42
  "@rezti/dsh-rez-intent": "0.1.3",
43
- "@rezti/dsh-rez-nextcloud": "0.1.5",
44
- "@rezti/dsh-rez-sso": "0.1.5",
45
- "@rezti/dsh-rez-odoo": "0.1.5",
43
+ "@rezti/dsh-rez-nextcloud": "0.1.6",
44
+ "@rezti/dsh-rez-odoo": "0.1.6",
45
+ "@rezti/dsh-rez-sso": "0.1.6",
46
46
  "@rezti/dsh-rez-token-manager": "0.1.3",
47
- "@rezti/dsh-rez-wechat": "0.1.5"
47
+ "@rezti/dsh-rez-wechat": "0.1.6"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.2.0",
@@ -6,7 +6,7 @@
6
6
  * moved; this module reads the same registry the agent sees.
7
7
  */
8
8
 
9
- import { REZ_CREDENTIAL_REFS, secretConfigured, type RezSystem } from '@rezti/dsh-rez-sso'
9
+ import { lastMcpStartError, REZ_CREDENTIAL_REFS, secretConfigured, type RezSystem } from '@rezti/dsh-rez-sso'
10
10
  import type { RezConfig, RezServerStatus, RezTestResult } from './protocol.ts'
11
11
 
12
12
  export const COMPOSED_SERVERS = ['odoo', 'nextcloud', 'wechat', 'homeassistant'] as const
@@ -40,6 +40,7 @@ export interface ObserveInput {
40
40
  config: RezConfig
41
41
  toolNames: readonly string[]
42
42
  secretPresent?: (server: RezSystem) => boolean
43
+ startError?: (server: RezSystem) => string | undefined
43
44
  }
44
45
 
45
46
  function isEnabled(config: RezConfig, server: ComposedServer): boolean {
@@ -87,13 +88,16 @@ export function observeServer(
87
88
  }
88
89
  }
89
90
 
91
+ const startError = (input.startError ?? lastMcpStartError)(server)
90
92
  return {
91
93
  server,
92
94
  enabled: true,
93
95
  state: 'disconnected',
94
96
  toolCount: 0,
95
97
  registeredTools: 0,
96
- lastError: ref + ' 已配置,但本机尚未注册 ' + mcpToolPrefix(server) + '*(dsh-mcp-client 未挂上)',
98
+ lastError: startError !== undefined
99
+ ? ref + ' 已配置,但 MCP 未挂上:' + startError
100
+ : ref + ' 已配置,但本机尚未注册 ' + mcpToolPrefix(server) + '*(dsh-mcp-client 未挂上)',
97
101
  }
98
102
  }
99
103