@yejiming/dsh-data-agent 0.1.3 → 0.1.5

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.en.md CHANGED
@@ -11,6 +11,8 @@
11
11
   
12
12
  <a href="https://dshfind.com/en/plugins/omdsh-dev/dsh-data-agent?ref=badge"><img src="https://dshfind.com/api/badge/omdsh-dev/dsh-data-agent" alt="dshfind badge"></a>
13
13
  &nbsp;
14
+ <a href="https://dshfind.com/en/plugins/omdsh-dev/dsh-data-agent?ref=badge"><img src="https://dshfind.com/api/badge/omdsh-dev/dsh-data-agent?metric=downloads" alt="dshfind downloads"></a>
15
+ &nbsp;
14
16
  <img src="https://img.shields.io/github/stars/omdsh-dev/dsh-data-agent?style=flat-square" alt="Stars">
15
17
  &nbsp;
16
18
  <img src="https://img.shields.io/npm/v/@yejiming%2Fdsh-data-agent?style=flat-square&label=npm" alt="npm">
@@ -67,12 +69,14 @@ dsh plugin --profile dsh-tui add @yejiming/dsh-data-agent
67
69
 
68
70
  ### 3. Start Analyzing
69
71
 
72
+ On the first start after a plugin upgrade, recognized, unmodified legacy `data-agent` presets are updated automatically to supply the `persona.config.prefix` required by newer DSH versions while retaining `text` for older hosts. Customized presets are never overwritten. If startup reports `$.prefix missing required value`, back up `$DSH_HOME/.agent-presets/data-agent/agent.cordis.yml` (`DSH_HOME` defaults to `~/.dsh`), give `prefix` the same prompt as the existing `text` in the persona config, and restart.
73
+
70
74
  #### Method 1: Web Interface (Recommended)
71
75
  Start the Web console, create a new session, and select **"Data Mode"**:
72
76
  ```bash
73
77
  dsh --profile web
74
78
  ```
75
- 1. Click the **Database icon** in the top-right of the composer, then fill in your connection details (supports connection testing);
79
+ 1. On the New Session screen, click **Connection Settings** beside **Data Mode**; after the session opens, you can use the **Database icon** in the top-right of the composer. Fill in your connection details in the same workbench (supports connection testing);
76
80
  2. Once connected, ask your business analysis question directly in the chat box;
77
81
  3. Ask follow-up questions to drill down deeper based on preliminary conclusions.
78
82
 
package/README.md CHANGED
@@ -11,6 +11,8 @@
11
11
  &nbsp;
12
12
  <a href="https://dshfind.com/zh/plugins/omdsh-dev/dsh-data-agent?ref=badge"><img src="https://dshfind.com/api/badge/omdsh-dev/dsh-data-agent?lang=zh" alt="dshfind 小标"></a>
13
13
  &nbsp;
14
+ <a href="https://dshfind.com/zh/plugins/omdsh-dev/dsh-data-agent?ref=badge"><img src="https://dshfind.com/api/badge/omdsh-dev/dsh-data-agent?metric=downloads&lang=zh" alt="dshfind 下载量"></a>
15
+ &nbsp;
14
16
  <img src="https://img.shields.io/github/stars/omdsh-dev/dsh-data-agent?style=flat-square" alt="Stars">
15
17
  &nbsp;
16
18
  <img src="https://img.shields.io/npm/v/@yejiming%2Fdsh-data-agent?style=flat-square&label=npm" alt="npm">
@@ -67,12 +69,14 @@ dsh plugin --profile dsh-tui add @yejiming/dsh-data-agent
67
69
 
68
70
  ### 3. 开始分析
69
71
 
72
+ 升级插件后首次启动会自动更新已识别的原版 `data-agent` 预设,使其兼容新版 DSH 必填的 `persona.config.prefix`,同时保留旧版 DSH 使用的 `text`。自定义过的预设不会被覆盖;若启动报 `$.prefix missing required value`,请备份 `$DSH_HOME/.agent-presets/data-agent/agent.cordis.yml`(默认位于 `~/.dsh`),在 persona 的 config 中让 `prefix` 与原 `text` 使用相同提示词,再重启。
73
+
70
74
  #### 方式一:Web 界面(推荐)
71
75
  启动 Web 控制台后,新建会话并选择 **「数据模式」**:
72
76
  ```bash
73
77
  dsh --profile web
74
78
  ```
75
- 1. 点击输入框右上角的 **数据库图标**,在弹出的工作台中填写连接信息(支持测试连接);
79
+ 1. 在新会话页点击 **「数据模式」** 旁的 **「连接配置」**,或进入会话后点击输入框右上角的 **数据库图标**,在弹出的工作台中填写连接信息(支持测试连接);
76
80
  2. 连接成功后,直接在对话框中用自然语言提出你的业务分析问题;
77
81
  3. 根据初步结论继续追问,AI 会沿着上下文层层下钻深挖。
78
82
 
@@ -50,6 +50,7 @@
50
50
  "POST query"
51
51
  ],
52
52
  "webSlots": [
53
+ "conversation.hero.agentPreset",
53
54
  "conversation.input.right",
54
55
  "tool.call.toolview"
55
56
  ],
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "io.github.omdsh-dev.dsh-data-agent",
5
5
  "name": "DSH Data Agent",
6
- "version": "0.1.3",
6
+ "version": "0.1.5",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/ecosystem.js",