dsh-vt-web-chat 1.0.1 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/client.js +11 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  1. **插件市场(推荐)**:在「插件 → 发现 → 添加索引源」里填入
26
26
  `https://vontean.github.io/vt-dsh-plugin/index.json`,找到「网页对话」点安装。
27
- 2. **npm**:`dsh plugin --profile <profile> add dsh-vt-web-chat@1.0.1`。
27
+ 2. **npm**:`dsh plugin --profile <profile> add dsh-vt-web-chat@1.0.2`。
28
28
  3. **Release tarball**:从 GitHub Release 下载 `.tgz`,再执行
29
29
  `dsh plugin --profile <profile> add <该 .tgz 的本地路径或 URL>`。
30
30
 
package/client.js CHANGED
@@ -21,19 +21,21 @@
21
21
  * Leaving the panel releases the guest, so the page remembers the last
22
22
  * conversation URL and reopens there instead of starting a new chat each time.
23
23
  */
24
- /** Package identity: one source for the module id and every log/storage prefix. */
25
- const PLUGIN_ID = 'dsh-vt-web-chat';
26
- /** Must equal `version` in package.json; printed once in the mount trace below. */
27
- const VERSION = '1.0.1';
28
-
29
- // Mount trace: one line naming the loaded build (DevTools → verbose level).
30
- console.debug(`[${PLUGIN_ID}] v${VERSION}`);
31
-
32
24
  window.__ModuleLoader__.load({
33
- id: PLUGIN_ID,
25
+ // 模块 id 必须与包名一致;装载器把多个 client.js 拼进同一个脚本,所以顶层只能有
26
+ // 这一个 load() 调用,其余常量一律放进 factory 的作用域,避免重名 SyntaxError。
27
+ id: 'dsh-vt-web-chat',
34
28
  factory(require) {
35
29
  'use strict';
36
30
 
31
+ /** Package identity: one source for the module id and every log/storage prefix. */
32
+ const PLUGIN_ID = 'dsh-vt-web-chat';
33
+ /** Must equal `version` in package.json; printed once in the mount trace below. */
34
+ const VERSION = '1.0.2';
35
+
36
+ // Mount trace: one line naming the loaded build (DevTools → verbose level).
37
+ console.debug(`[${PLUGIN_ID}] v${VERSION}`);
38
+
37
39
  const reactModule = require('react');
38
40
  const React =
39
41
  reactModule !== null && typeof reactModule.createElement === 'function'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-vt-web-chat",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Adds a Web Chat entry under New Session that opens chat.deepseek.com as a full main-area panel in the desktop embedded browser and remembers the last conversation.",
6
6
  "license": "MIT",