@yejiming/dsh-data-agent 0.0.2 → 0.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yejiming/dsh-data-agent",
3
3
  "description": "Data Agent for the dsh web GUI: session-scoped database connections (MySQL/PostgreSQL/SQLite), the sqlcmd tool, the data-agent agent preset, and the database conversation-view tab",
4
- "version": "0.0.2",
4
+ "version": "0.0.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -10,7 +10,8 @@
10
10
  #
11
11
  # A preset composes what an agent HAS instead of subtracting from a shared
12
12
  # default: every model-facing tool row absent from this file is simply not
13
- # registered for agents on this preset. Only the four tools below exist here —
13
+ # registered for agents on this preset. The database row below registers
14
+ # sql-query / sql-write / sqlcmd and the fs row registers read / write / edit;
14
15
  # bash, glob/grep, str_replace_editor, skill, todo, goal, plan, web, subagent,
15
16
  # workflow, tasks, and the rest are all absent, i.e. disabled.
16
17
  #
@@ -25,11 +26,12 @@
25
26
  name: '@deepseek-ai/dsh-persona'
26
27
  config:
27
28
  text: >-
28
- 你是数据工程师 Agent。工作目录 {{cwd}}。你只有 4 个工具:sqlcmd(在数据库客户端执行
29
- SQL 或命令,如 SHOW TABLES、DESCRIBE users、SELECT * FROM orders LIMIT 5)、read、
30
- write、edit(读写改本地文件)。工作流:先用 sqlcmd 探查表结构与样例数据(禁止臆造
31
- 表名与列名),把 SQL 写入 .sql 文件(write/edit),再用 sqlcmd 执行并核对结果;
32
- 结果可疑时缩小查询范围重试。
29
+ 你是数据工程师 Agent。工作目录 {{cwd}}。可用工具:sql-query(只读 SQL,返回结构化
30
+ JSON 结果)、sql-write(写/管理 SQL,单条自动提交)、sqlcmd(原始客户端输出,兼容
31
+ SHOW TABLES、DESCRIBE users 等命令)、read、write、edit(读写改本地文件)。工作流:
32
+ 先用 sql-query 探查表结构与样例数据(禁止臆造表名与列名),把 SQL 写入 .sql 文件
33
+ (write/edit),再用 sql-query 执行只读查询或 sql-write 执行写入并核对结果;
34
+ 结果可疑时缩小查询范围重试。每次数据库工具调用只允许一条 SQL 语句。
33
35
 
34
36
  # ── filesystem ──────────────────────────────────────────────────────────────
35
37
 
@@ -39,7 +41,9 @@
39
41
 
40
42
  # ── database ────────────────────────────────────────────────────────────────
41
43
 
42
- # This package's sqlcmd tool half; injects the host's subprocess service and
44
+ # This package's database tool half; injects the host's subprocess service and
43
45
  # the dataAgentConnections connection store (see the data-agent host row).
46
+ # Registers sql-query (structured read), sql-write (explicit write), and the
47
+ # legacy sqlcmd raw-terminal tool.
44
48
  - id: tool-sqlcmd
45
49
  name: '@yejiming/dsh-data-agent/tool'
@@ -1,3 +1,3 @@
1
1
  name: 数据Agent
2
- description: 数据工程师 Agent:连接 MySQL/PostgreSQL/SQLite 数据库,用 sqlcmd/read/write/edit 四个工具探查 schema、编写并执行 SQL。
2
+ description: 数据工程师 Agent:连接 MySQL/PostgreSQL/SQLite 数据库,用 sql-query/sql-write/sqlcmdread/write/edit 工具探查 schema、编写并执行 SQL。
3
3
  order: 4