@mhfire/dsh-im-bridge 0.4.2 → 0.4.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/package.json CHANGED
@@ -1,92 +1,94 @@
1
- {
2
- "name": "@mhfire/dsh-im-bridge",
3
- "version": "0.4.2",
4
- "description": "企业微信智能机器人 ⇄ DeepSeek Harness Agent 桥接插件:进程内按企微窗口创建 Agent(单聊一人一条、同一群共用一条),会话在 GUI 实时可见;含 Settings 插件配置卡片",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/MHfire/dsh-im-bridge.git"
9
- },
10
- "type": "module",
11
- "main": "lib/index.js",
12
- "exports": {
13
- ".": "./lib/index.js",
14
- "./client": "./lib/client.js",
15
- "./cordis.patch.yml": "./cordis.patch.yml",
16
- "./package.json": "./package.json"
17
- },
18
- "files": [
19
- "src",
20
- "lib",
21
- "tsdown.host.ts",
22
- "tsdown.client.ts",
23
- "tsconfig.json",
24
- "cordis.patch.yml",
25
- "persona.default.md",
26
- "persona.default.en.md",
27
- "persona.example.md",
28
- "README.md",
29
- "README.en.md"
30
- ],
31
- "scripts": {
32
- "build": "tsdown --config tsdown.host.ts && tsdown --config tsdown.client.ts",
33
- "prepare": "tsdown --config tsdown.host.ts && tsdown --config tsdown.client.ts",
34
- "test": "node --experimental-strip-types --test tests/reply-images.test.ts tests/session-key.test.ts tests/wecom-cli.test.ts"
35
- },
36
- "dsh": {
37
- "bundle": {
38
- "patch": "./cordis.patch.yml"
39
- },
40
- "client": {
41
- "inject": [
42
- "@deepseek-ai/dsh-client-connection",
43
- "@deepseek-ai/dsh-client-locale",
44
- "@deepseek-ai/dsh-client-runtime",
45
- "@deepseek-ai/dsh-client-ui-settings",
46
- "@deepseek-ai/dsh-client-ui-settings-plugins",
47
- "@deepseek-ai/dsh-api-remotes"
48
- ],
49
- "platform": "web"
50
- }
51
- },
52
- "peerDependencies": {
53
- "@deepseek-ai/cordis": "*",
54
- "@deepseek-ai/dsh-agent": "*",
55
- "@deepseek-ai/dsh-llm": "*",
56
- "@deepseek-ai/dsh-session": "*",
57
- "@deepseek-ai/dsh-settings": "*",
58
- "@deepseek-ai/schemastery": "*"
59
- },
60
- "peerDependenciesMeta": {
61
- "@deepseek-ai/cordis": {
62
- "optional": true
63
- },
64
- "@deepseek-ai/dsh-agent": {
65
- "optional": true
66
- },
67
- "@deepseek-ai/dsh-llm": {
68
- "optional": true
69
- },
70
- "@deepseek-ai/dsh-session": {
71
- "optional": true
72
- },
73
- "@deepseek-ai/dsh-settings": {
74
- "optional": true
75
- },
76
- "@deepseek-ai/schemastery": {
77
- "optional": true
78
- }
79
- },
80
- "dependencies": {
81
- "@wecom/aibot-node-sdk": "^1.0.7",
82
- "@wecom/cli": "^1.2.0",
83
- "fflate": "^0.8.3",
84
- "yaml": "^2.8.1"
85
- },
86
- "devDependencies": {
87
- "@types/react": "~18.3.1",
88
- "lightningcss": "^1.32.0",
89
- "react": "^18.2.0",
90
- "tsdown": "^0.22.2"
91
- }
92
- }
1
+ {
2
+ "name": "@mhfire/dsh-im-bridge",
3
+ "version": "0.4.3",
4
+ "description": "企业微信智能机器人 ⇄ DeepSeek Harness Agent 桥接插件:进程内按企微窗口创建 Agent(单聊一人一条、同一群共用一条),会话在 GUI 实时可见;含 Settings 插件配置卡片",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/MHfire/dsh-im-bridge.git"
9
+ },
10
+ "type": "module",
11
+ "main": "lib/index.js",
12
+ "exports": {
13
+ ".": "./lib/index.js",
14
+ "./client": "./lib/client.js",
15
+ "./cordis.patch.yml": "./cordis.patch.yml",
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "src",
20
+ "lib",
21
+ "tsdown.host.ts",
22
+ "tsdown.client.ts",
23
+ "tsconfig.json",
24
+ "cordis.patch.yml",
25
+ "persona.default.md",
26
+ "persona.default.en.md",
27
+ "persona.example.md",
28
+ "README.md",
29
+ "README.en.md"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsdown --config tsdown.host.ts && tsdown --config tsdown.client.ts",
33
+ "prepare": "tsdown --config tsdown.host.ts && tsdown --config tsdown.client.ts",
34
+ "typecheck": "tsc -p tsconfig.typecheck.json",
35
+ "test": "npm run typecheck && node --experimental-strip-types --test tests/reply-images.test.ts tests/session-key.test.ts tests/wecom-cli.test.ts"
36
+ },
37
+ "dsh": {
38
+ "bundle": {
39
+ "patch": "./cordis.patch.yml"
40
+ },
41
+ "client": {
42
+ "inject": [
43
+ "@deepseek-ai/dsh-client-connection",
44
+ "@deepseek-ai/dsh-client-locale",
45
+ "@deepseek-ai/dsh-client-ui-settings",
46
+ "@deepseek-ai/dsh-client-ui-settings-plugins",
47
+ "@deepseek-ai/dsh-api-remotes"
48
+ ],
49
+ "platform": "web"
50
+ }
51
+ },
52
+ "peerDependencies": {
53
+ "@deepseek-ai/cordis": "*",
54
+ "@deepseek-ai/dsh-agent": "*",
55
+ "@deepseek-ai/dsh-llm": "*",
56
+ "@deepseek-ai/dsh-session": "*",
57
+ "@deepseek-ai/dsh-settings": "*",
58
+ "@deepseek-ai/schemastery": "*"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "@deepseek-ai/cordis": {
62
+ "optional": true
63
+ },
64
+ "@deepseek-ai/dsh-agent": {
65
+ "optional": true
66
+ },
67
+ "@deepseek-ai/dsh-llm": {
68
+ "optional": true
69
+ },
70
+ "@deepseek-ai/dsh-session": {
71
+ "optional": true
72
+ },
73
+ "@deepseek-ai/dsh-settings": {
74
+ "optional": true
75
+ },
76
+ "@deepseek-ai/schemastery": {
77
+ "optional": true
78
+ }
79
+ },
80
+ "dependencies": {
81
+ "@wecom/aibot-node-sdk": "^1.0.7",
82
+ "@wecom/cli": "^1.2.0",
83
+ "fflate": "^0.8.3",
84
+ "yaml": "^2.8.1"
85
+ },
86
+ "devDependencies": {
87
+ "@types/node": "^22.20.0",
88
+ "@types/react": "~18.3.1",
89
+ "lightningcss": "^1.32.0",
90
+ "react": "^18.2.0",
91
+ "tsdown": "^0.22.2",
92
+ "typescript": "^6.0.3"
93
+ }
94
+ }
@@ -1,6 +1,7 @@
1
1
  /** Staged form over the `im-bridge` settings namespace. */
2
2
 
3
- import type { SettingsScope, SnapshotStore } from '@deepseek-ai/dsh-client-runtime/client'
3
+ import type { SnapshotStore } from '@deepseek-ai/dsh-client-store'
4
+ import type { SettingsScope } from '@deepseek-ai/dsh-client-ui-settings/client'
4
5
  import {
5
6
  CardForm,
6
7
  csvField,
@@ -3,12 +3,8 @@
3
3
  * Mirrors the Host Plugins section model without importing its chrome.
4
4
  */
5
5
 
6
- import {
7
- createSnapshotStore,
8
- type SettingsScope,
9
- type SettingsScopeSnapshot,
10
- type SnapshotStore,
11
- } from '@deepseek-ai/dsh-client-runtime/client'
6
+ import { createSnapshotStore, type SnapshotStore } from '@deepseek-ai/dsh-client-store'
7
+ import type { SettingsScope, SettingsScopeSnapshot } from '@deepseek-ai/dsh-client-ui-settings/client'
12
8
 
13
9
  /** Write one staged field performs on save. */
14
10
  export type FieldWrite =
@@ -2,8 +2,12 @@
2
2
  * Browser half: Settings card keyed by the `im-bridge` namespace.
3
3
  */
4
4
 
5
- import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client'
6
- // Type-only: ctx.settingsScope.describe and the keyed slot declaration.
5
+ import type { Context as ClientContext } from '@deepseek-ai/cordis'
6
+ // Type-only: ctx.slots, ctx.locale, ctx.settingsScope.describe, and the keyed
7
+ // slot declaration. Behavior crosses packages through services and slots only.
8
+ import type {} from '@deepseek-ai/dsh-client-ui-slots'
9
+ import type {} from '@deepseek-ai/dsh-client-ui-renderer/client'
10
+ import type {} from '@deepseek-ai/dsh-client-locale/client'
7
11
  import type {} from '@deepseek-ai/dsh-client-ui-settings/client'
8
12
  import type {} from '@deepseek-ai/dsh-client-ui-settings-plugins/client'
9
13
  import { WecomCard } from './WecomCard.tsx'