dsh-auto-sight 0.4.6 → 0.4.7

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
@@ -1,5 +1,7 @@
1
1
  # dsh-auto-vision
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/dsh-auto-sight)](https://www.npmjs.com/package/dsh-auto-sight) [![npm downloads](https://img.shields.io/npm/dm/dsh-auto-sight)](https://www.npmjs.com/package/dsh-auto-sight)
4
+
3
5
  **English** | [简体中文](README.zh-CN.md)
4
6
 
5
7
  Let a text-only model see images. When the selected model has no image input, **Auto Vision** asks a vision-capable model on the same provider to read each image, then sends the original request with that description in place of the image.
@@ -34,6 +36,8 @@ dsh plugin add github:thanderming/dsh-auto-vision
34
36
 
35
37
  Or install it from the plugin marketplace.
36
38
 
39
+ The same code is published to npm as [`dsh-auto-sight`](https://www.npmjs.com/package/dsh-auto-sight) (`npm i dsh-auto-sight`). The npm build is prebuilt — no install-time build step or `allowBuilds` prompt — and its download count is visible on the package page.
40
+
37
41
  ## Settings
38
42
 
39
43
  **Settings → Auto Vision**: pick the vision model (grouped per provider), or leave it on *Automatic*. The selection is stored in volatile config and applies to the next image request.
package/README.zh-CN.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-auto-vision
2
2
 
3
+ [![npm 版本](https://img.shields.io/npm/v/dsh-auto-sight)](https://www.npmjs.com/package/dsh-auto-sight) [![npm 下载量](https://img.shields.io/npm/dm/dsh-auto-sight)](https://www.npmjs.com/package/dsh-auto-sight)
4
+
3
5
  [English](README.md) | **简体中文**
4
6
 
5
7
  让纯文本模型也能看图。当所选模型不支持图片输入时,**自动视觉**会调用同一 API 下可识别图片的模型读图,再把图片替换成那段描述,交给原模型完成这一次请求。
@@ -34,6 +36,8 @@ dsh plugin add github:thanderming/dsh-auto-vision
34
36
 
35
37
  也可以在插件市场里安装。
36
38
 
39
+ 同一份代码已发布到 npm:[`dsh-auto-sight`](https://www.npmjs.com/package/dsh-auto-sight)(`npm i dsh-auto-sight`)。npm 上是预构建产物——安装时不需要构建步骤,也不会触发 `allowBuilds` 授权——下载量可以在包页面看到。
40
+
37
41
  ## 设置
38
42
 
39
43
  **设置 → 自动视觉**:选择视觉模型(按 provider 分组),或保持「自动」。选择写入 volatile 配置,对下一次图片请求生效。
package/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: 'dsh-auto-vision',
2
+ id: 'dsh-auto-sight',
3
3
  factory(require) {
4
4
  const React = require('react')
5
5
  const h = React.createElement
package/index.js CHANGED
@@ -11,7 +11,7 @@ import { createHash } from 'node:crypto'
11
11
 
12
12
  import z from '@deepseek-ai/schemastery'
13
13
 
14
- export const name = 'dsh-auto-vision'
14
+ export const name = 'dsh-auto-sight'
15
15
  export const inject = ['llm', 'settings', 'credentials', 'attachments']
16
16
 
17
17
  /** The two selection fields are volatile so the Settings page can switch them without a remount. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-auto-sight",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "type": "module",
5
5
  "description": "Let a text-only model see images by automatically calling a vision model from the same provider.",
6
6
  "keywords": [
@@ -45,7 +45,9 @@
45
45
  "client": {
46
46
  "platform": "web",
47
47
  "immediately": true,
48
- "inject": ["@deepseek-ai/dsh-client-ui-settings"]
48
+ "inject": [
49
+ "@deepseek-ai/dsh-client-ui-settings"
50
+ ]
49
51
  }
50
52
  },
51
53
  "peerDependencies": {