@wanji_dsh/dsh-sales 0.9.7 → 0.10.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/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Version 0.9.0 adds local WeChat synchronization inside DSH. The Host manages separate Windows x64 and macOS arm64/x64 collectors, receives batches through loopback, commits messages/media/checkpoints in SQLite before acknowledging them, and schedules file-triggered incremental reads. The UI shows only real conversations and has no demo or simulated delivery controls. CRM binding is optional. It never sends WeChat messages. See [sync setup and platform limits](docs/wechat-sync.md).
4
4
 
5
- Source candidate version 0.9.7 keeps the existing business features and uses one universal main package with automatic Host-side retrieval of the matching frozen WeChat component. DSH source and installer remain unchanged.
5
+ Source version 0.9.7 keeps the existing business features and uses one universal main package with automatic Host-side retrieval of the matching frozen WeChat component. DSH source and installer remain unchanged.
6
6
 
7
7
  [中文](README.zh.md)
8
8
 
9
- This plugin belongs to the [Wanji plugins repository](https://gitlab.wanjisaas.com/AI-agent/wanji_dazi_dsh). Its sources live in `plugins/sales-assistant/` and its independent package name remains `@wanji_dsh/dsh-sales`.
9
+ This plugin belongs to the [Wanji plugins repository](https://gitlab.wanjisaas.com/AI-agent/wanji_dazi_dsh). Its sources live in `plugins/sales-assistant/` and its npm package name is `@wanji_dsh/dsh-sales` (historical tarball identity: `@wanji/dsh-sales`).
10
10
 
11
11
  ## Interactions
12
12
 
@@ -119,10 +119,14 @@ Servers/CDNs must preserve Content-Length and Range without dynamically recompre
119
119
 
120
120
  Pending/loading/unavailable voice messages use a compact voice card, retaining real retry and playback controls. Reading older messages keeps a message anchor; new messages show a “Jump to latest” action, while the bottom follows automatically. Image preview fits a bounded panel and includes zoom, fit-to-window and close controls with Escape/backdrop dismissal and focus return. The [production receipt](docs/releases/2026-11-16-sales-096-production.md) records validation and platform limits; published archives are never replaced.
121
121
 
122
- ## npm candidate (0.9.7)
122
+ ## npm installation and updates (0.9.7)
123
123
 
124
- The approved npm identity is `@wanji_dsh/dsh-sales`; this candidate is not published yet. After publication and public installation validation, enter this package name in DSH Add plugin. Registry installations are eligible for DSH's existing Versions/Update flow; publishing on npm does not enable unattended updates.
124
+ `@wanji_dsh/dsh-sales@0.9.7` is published and verified: [production receipt](docs/releases/2026-11-17-sales-097-npm-production.md). Enter `@wanji_dsh/dsh-sales` in DSH Add plugin and select the official registry `https://registry.npmjs.org/`. Opening plugin details or refreshing the list checks for newer versions; confirm Update to install one. Unattended background updates are not implemented. Installing a tarball URL does not create a registry-source installation.
125
125
 
126
126
  Existing `@wanji/dsh-sales` tarball installations require a one-time migration through the original manager. Record and retain the `wanji-sales` configuration and its exact `storageDir`, stop and remove the old installation, then install the new package and restore that configuration before enabling it. Enable only one bundle. The entry id and durable data format remain the same; do not clear SQLite or runtime caches. Record target-client migration and rollback separately. The 0.9.6 production URL remains available.
127
127
 
128
128
  The public archive includes user documentation and pinned runtime metadata; internal plans, raw validation logs and release receipts stay in the repository. Frozen runtime assets keep their existing content hashes.
129
+
130
+ ## Automatic plugin updates (from 0.10.0)
131
+
132
+ The source includes automatic version checks and idle patch installation, enabled by default with no setup or switch required. **Version & updates** shows progress and allows disabling automatic installation; an explicit opt-out survives restarts. Existing users must manually install a release containing this feature once, by its npm package name. Only compatible stable `latest` patches in the same minor are installed automatically, after all sales windows save and finish their tasks. Minor upgrades require confirmation. Tested DSH builds may need an app restart to activate the installed version; the plugin reports this and never forces a restart. Existing data and runtime caches are preserved. See the [update and recovery guide](docs/auto-update.md); a source version does not imply a public release.
package/README.zh.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  本轮接口、界面及开放话术复验见 [2026-11-13验收记录](../../docs/acceptance-2026-11-13.md)。
4
4
 
5
- 当前源码候选版本0.9.7:销售助手进入会话主界面后自动连接本机微信,Windows x64、Mac M芯片和Intel分别加载采集组件。Host常驻接收并在SQLite提交后确认,文件变化触发增量采集,页面关闭或最小化不停止Host调度。页面只展示真实会话,已移除演示、示例回复和模拟发送入口;同步进度、暂停、重连及必要授权直接显示在页面内。首次授权、平台限制与构建入口见[微信同步使用说明](docs/wechat-sync.md)。
5
+ 当前源码版本0.9.7:销售助手进入会话主界面后自动连接本机微信,Windows x64、Mac M芯片和Intel分别加载采集组件。Host常驻接收并在SQLite提交后确认,文件变化触发增量采集,页面关闭或最小化不停止Host调度。页面只展示真实会话,已移除演示、示例回复和模拟发送入口;同步进度、暂停、重连及必要授权直接显示在页面内。首次授权、平台限制与构建入口见[微信同步使用说明](docs/wechat-sync.md)。
6
6
 
7
7
  默认开放模式不向模型提供预编销售正文。Flash先从客户原话和上游资料理清本轮任务,再结合本单事实与真实检索的培训参考写稿;程序核算、金额/数据范围/已知风险检查、独立Flash事实与沟通核对,以及最后的知识有效期校验共同决定是否交付。修订后的完整草稿重新核对,失败不降级成未检查原稿。只有显式设置 `replyMode: source-bound` 才启用旧来源绑定对照分支。真实联系人无需先绑定CRM即可同步,明确绑定后复用首次CRM/通话快照。工程测试不等于真实成交效果已经验证。
8
8
 
@@ -12,7 +12,7 @@ DeepSeek Harness 内的销售辅助工作台。插件在左侧菜单注册“销
12
12
 
13
13
  [English](README.md)
14
14
 
15
- 本插件属于[万机插件集合仓库](https://gitlab.wanjisaas.com/AI-agent/wanji_dazi_dsh),源码位于 `plugins/sales-assistant/`,独立包名保持为 `@wanji_dsh/dsh-sales`。
15
+ 本插件属于[万机插件集合仓库](https://gitlab.wanjisaas.com/AI-agent/wanji_dazi_dsh),源码位于 `plugins/sales-assistant/`,npm安装包名为 `@wanji_dsh/dsh-sales`(历史tgz身份为`@wanji/dsh-sales`)。
16
16
 
17
17
  ## 可体验内容
18
18
 
@@ -181,10 +181,14 @@ npm run pack:distribution --workspace @wanji_dsh/dsh-sales -- --out /绝对路
181
181
 
182
182
  语音未同步、加载与失败统一显示语音占位气泡,失败可重试,就绪后沿用原播放控件。阅读历史时保持可见消息位置,新消息到达显示“有新消息 · 回到最新”;点击或滚到底部后清除,位于底部时继续自动跟随。图片使用视口内居中面板,提供缩放、适应窗口与关闭,支持Esc和遮罩退出并回到原图片。0.9.6已发布,验证范围及目标端限制见[生产回执](docs/releases/2026-11-16-sales-096-production.md);旧归档保持不可变。
183
183
 
184
- ## npm安装版候选(0.9.7)
184
+ ## npm安装与更新(0.9.7)
185
185
 
186
- 用户已指定npm包名`@wanji_dsh/dsh-sales`;本候选尚未公开发布。正式上架并完成公网验收后,DSH“添加插件”填写该包名,从npm registry按包名安装,后续由DSH现有“版本”检查与“更新”入口管理。注册到npm不等于自动静默升级。
186
+ `@wanji_dsh/dsh-sales@0.9.7`已正式公开发布并完成公网安装及原生版本检查资格验收,见[生产回执](docs/releases/2026-11-17-sales-097-npm-production.md)。DSH“添加插件”填写`@wanji_dsh/dsh-sales`,优先选择官方源`https://registry.npmjs.org/`,从registry按包名安装。打开插件详情或刷新插件列表会检查新版,再按提示确认“更新”;当前没有后台静默升级。直接使用tarball URL安装不属于registry身份。
187
187
 
188
188
  旧的`@wanji/dsh-sales`远程tgz安装不会自动迁移:先记录并保留`wanji-sales`的配置、`storageDir`及业务库,停止旧插件后通过原管理器移除旧安装,再安装新包并恢复相同配置,启用一个销售助手。不要同时启用两个包,也不要清理微信SQLite或运行时缓存。新包沿用`wanji-sales`入口ID与原数据格式;客户端实际迁移和回退结果单独记录。0.9.6旧生产URL继续可用。
189
189
 
190
190
  npm公开主包只带用户文档、业务代码及固定资源清单;内部计划、验证原始日志及发布回执留在仓库。三平台冻结资源继续按固定摘要由Host下载。具体本地验证与发布状态见仓库的npm迁移设计和发布回执。
191
+
192
+ ## 插件自动更新(0.10.0 起)
193
+
194
+ 本功能已加入源码,公开发布状态见发布回执。首次手动安装包含此功能的 npm 版本后,默认自动检查并在空闲时安装同一 minor 的正式补丁,无需打开面板或勾选开关。页头「版本与更新」可查看进度或关闭自动安装;主动关闭的选择会跨重启保留。安装前等待保存和任务完成,跨 minor 仍需确认。当前实测 DSH 安装完成后可能需要重启应用,新旧运行版本会分别显示;不会强制重启。保留消息、草稿、CRM 配置和组件缓存,不修改 DSH 源码。行为、失败恢复与迁移入口见[版本与更新指南](docs/auto-update.md)。