dsh-chat-manager-wide 1.4.0

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 ADDED
@@ -0,0 +1,159 @@
1
+ {
2
+ "name": "dsh-chat-manager-wide",
3
+ "version": "1.4.0",
4
+ "description": "DeepSeek Harness chat history and session management (wide fork of dsh-chat-manager 1.3.4): a full-width archived-session browser that reads archived conversations in place",
5
+ "type": "module",
6
+ "main": "./src/index.js",
7
+ "exports": {
8
+ ".": "./src/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "compatibility.json",
14
+ "cordis.patch.yml",
15
+ "lib/client.js",
16
+ "scripts/build-client.mjs",
17
+ "scripts/smoke-ui.mjs",
18
+ "src/index.js",
19
+ "src/host/archive-manager.mjs",
20
+ "src/host/delete-session.mjs",
21
+ "README.md",
22
+ "README.zh-CN.md",
23
+ "AGENTS.md",
24
+ "LICENSE",
25
+ "SECURITY.md",
26
+ "THIRD_PARTY_NOTICES.md",
27
+ "scripts/build-client-local.mjs",
28
+ "CHANGELOG.md",
29
+ "PUBLISH.md"
30
+ ],
31
+ "dsh": {
32
+ "bundle": {
33
+ "patch": "./cordis.patch.yml"
34
+ },
35
+ "client": {
36
+ "inject": [
37
+ "@deepseek-ai/dsh-api-remotes",
38
+ "@deepseek-ai/dsh-api-session-controller",
39
+ "@deepseek-ai/dsh-api-workspace-controller",
40
+ "@deepseek-ai/dsh-client-connection",
41
+ "@deepseek-ai/dsh-client-locale",
42
+ "@deepseek-ai/dsh-client-ui-conversation",
43
+ "@deepseek-ai/dsh-client-ui-renderer",
44
+ "@deepseek-ai/dsh-client-ui-session",
45
+ "@deepseek-ai/dsh-client-ui-sidebar"
46
+ ],
47
+ "platform": "web"
48
+ }
49
+ },
50
+ "keywords": [
51
+ "dsh-plugin",
52
+ "deepseek-harness",
53
+ "session",
54
+ "session-manager",
55
+ "session-management",
56
+ "conversation",
57
+ "archive",
58
+ "unarchive",
59
+ "restore",
60
+ "history-search",
61
+ "chat-history",
62
+ "conversation-history",
63
+ "archived-sessions",
64
+ "session-delete",
65
+ "permanent-delete",
66
+ "deepseek",
67
+ "delete",
68
+ "privacy",
69
+ "fork",
70
+ "archived-conversation",
71
+ "conversation-viewer"
72
+ ],
73
+ "license": "MIT",
74
+ "publishConfig": {
75
+ "access": "public",
76
+ "registry": "https://registry.npmjs.org/"
77
+ },
78
+ "engines": {
79
+ "node": "^22.19.0 || >=24.0.0"
80
+ },
81
+ "dependencies": {
82
+ "clsx": "^2.0.0"
83
+ },
84
+ "peerDependencies": {
85
+ "@deepseek-ai/cordis": "4.0.1 || 4.0.2",
86
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
87
+ "@deepseek-ai/dsh-client-locale": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
88
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
89
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
90
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
91
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
92
+ "@deepseek-ai/dsh-invariants": "0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.6-alpha.1",
93
+ "react": "^18.2.0"
94
+ },
95
+ "peerDependenciesMeta": {
96
+ "@deepseek-ai/cordis": {
97
+ "optional": true
98
+ },
99
+ "@deepseek-ai/dsh-client-connection": {
100
+ "optional": true
101
+ },
102
+ "@deepseek-ai/dsh-client-locale": {
103
+ "optional": true
104
+ },
105
+ "@deepseek-ai/dsh-client-ui-conversation": {
106
+ "optional": true
107
+ },
108
+ "@deepseek-ai/dsh-client-ui-primitives": {
109
+ "optional": true
110
+ },
111
+ "@deepseek-ai/dsh-client-ui-sidebar": {
112
+ "optional": true
113
+ },
114
+ "@deepseek-ai/dsh-client-ui-slots": {
115
+ "optional": true
116
+ },
117
+ "@deepseek-ai/dsh-invariants": {
118
+ "optional": true
119
+ },
120
+ "react": {
121
+ "optional": true
122
+ }
123
+ },
124
+ "devDependencies": {
125
+ "@deepseek-ai/cordis": "4.0.2",
126
+ "@deepseek-ai/cordis-plugin-include": "1.0.7",
127
+ "@deepseek-ai/cordis-plugin-loader": "1.0.3",
128
+ "@deepseek-ai/dsh-client-connection": "0.1.5-rc.1",
129
+ "@deepseek-ai/dsh-client-locale": "0.1.5-rc.1",
130
+ "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
131
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
132
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
133
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.1.5-rc.1",
134
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
135
+ "@deepseek-ai/dsh-client-ui-workspace": "0.1.5-rc.1",
136
+ "@deepseek-ai/dsh-invariants": "0.1.5-rc.1",
137
+ "dsh-ui-workspace-alpha1": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.5-alpha.1",
138
+ "dsh-ui-workspace-alpha2": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.5-alpha.2",
139
+ "dsh-ui-workspace-alpha3": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.2-alpha.3",
140
+ "dsh-ui-workspace-alpha4": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.2-alpha.4",
141
+ "dsh-ui-workspace-alpha5": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.2-alpha.5",
142
+ "dsh-ui-workspace-rc1": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.1-rc.1",
143
+ "dsh-ui-workspace-rc2": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.1-rc.2",
144
+ "dsh-ui-workspace-rc6": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.0-rc.6",
145
+ "dsh-ui-workspace-rc7": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.0-rc.7",
146
+ "dsh-ui-workspace-rc8": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.0-rc.8",
147
+ "playwright": "1.62.1",
148
+ "dsh-ui-workspace-0-1-2-rc-1": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.2-rc.1"
149
+ },
150
+ "scripts": {
151
+ "build": "node scripts/build-client.mjs",
152
+ "test:behavior": "node --test tests/archive-manager-host.test.mjs tests/delete-session-client.test.mjs tests/delete-session-host.test.mjs tests/smoke-ui.test.mjs",
153
+ "test:delivery": "node --test tests/accept-official-dsh.test.mjs tests/package-contract.test.mjs tests/prepare-compat-release.test.mjs",
154
+ "test": "node --test tests/*.test.mjs",
155
+ "check": "pnpm run test && pnpm run build && pnpm pack --pack-destination .artifacts",
156
+ "smoke:ui": "node scripts/smoke-ui.mjs",
157
+ "build:local": "node scripts/build-client-local.mjs"
158
+ }
159
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Local rebuild entry for an installed copy of this plugin.
3
+ *
4
+ * `scripts/build-client.mjs` composes the shipped bundle from pinned upstream
5
+ * fixture packages (devDependencies) that are absent from a normal
6
+ * `dsh plugin add` installation. This entry patches the upstream workspace
7
+ * client that the running DSH actually serves instead, and uses the same
8
+ * patched source for both factory branches of the compatibility shim.
9
+ *
10
+ * Usage:
11
+ * node scripts/build-client-local.mjs
12
+ * DSH_CHAT_MANAGER_OUTPUT=/tmp/client.js node scripts/build-client-local.mjs
13
+ * DSH_WORKSPACE_CLIENT_PATH=/path/to/ui-workspace/lib/client.js node scripts/build-client-local.mjs
14
+ */
15
+ import { mkdir, readFile, writeFile } from 'node:fs/promises'
16
+ import { dirname, resolve } from 'node:path'
17
+ import { fileURLToPath } from 'node:url'
18
+ import {
19
+ composeCompatibleClients,
20
+ patchWorkspaceClient,
21
+ resolveUpstreamClient,
22
+ resolveUpstreamManifest,
23
+ } from './build-client.mjs'
24
+
25
+ const here = dirname(fileURLToPath(import.meta.url))
26
+ const output = process.env.DSH_CHAT_MANAGER_OUTPUT === undefined
27
+ ? resolve(here, '../lib/client.js')
28
+ : resolve(process.env.DSH_CHAT_MANAGER_OUTPUT)
29
+
30
+ const clientPath = resolveUpstreamClient()
31
+ const manifestPath = resolveUpstreamManifest()
32
+ const manifest = JSON.parse(await readFile(manifestPath, 'utf8'))
33
+ const upstream = await readFile(clientPath, 'utf8')
34
+ const patched = patchWorkspaceClient(upstream, manifest.version)
35
+
36
+ await mkdir(dirname(output), { recursive: true })
37
+ await writeFile(output, composeCompatibleClients(patched, patched), 'utf8')
38
+ process.stdout.write(`${output}\n`)