dsh-db-studio 0.0.0-stage → 1.0.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## v1.0.1 — 2026-10-24
4
+
5
+ 首个稳定版。
6
+
7
+ - 左侧栏「数据库」面板:连接管理、表结构浏览、分页数据、SQL 控制台
8
+ - 对话内「数据库」tab:在会话中直接查看和操作已选数据库
9
+ - 输入框旁多选下拉 + 紧凑连接状态条
10
+ - 4 个内置对话工具,按会话选择严格授权
11
+ - SQLite / PostgreSQL / MySQL 支持
12
+ - 中文 / English README、界面演示 GIF、GitHub Actions CI
13
+
14
+ ## v0.2.0
15
+
16
+ - 首个公开版本:数据库面板、对话数据库 tab、多选、状态条和 agent 工具
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jianjun Xiao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,84 @@
1
+ # dsh-db-studio
2
+
3
+ English | [简体中文](./README.md)
4
+
5
+ [![test](https://github.com/etShaw-zh/dsh-db-studio/actions/workflows/test.yml/badge.svg)](https://github.com/etShaw-zh/dsh-db-studio/actions/workflows/test.yml)
6
+ [![License](https://img.shields.io/github/license/etShaw-zh/dsh-db-studio)](LICENSE)
7
+ [![release](https://img.shields.io/github/v/release/etShaw-zh/dsh-db-studio)](https://github.com/etShaw-zh/dsh-db-studio/releases)
8
+
9
+ Connect to databases in [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH), then query and edit data right in the conversation.
10
+
11
+ ![Querying the demo database in a conversation](docs/demo.gif)
12
+
13
+ ## What it does
14
+
15
+ ### Browse and manage databases
16
+
17
+ - **Database panel in the sidebar**: browse connections, schemas and paginated data, and run SQL.
18
+ - **SQLite / PostgreSQL / MySQL**, with SQLite requiring no extra driver.
19
+
20
+ ### Work in the conversation
21
+
22
+ - **Database tab in a conversation**: view and work with the selected databases without leaving the chat.
23
+ - **Multi-select picker in the composer**: choose the databases this conversation may use.
24
+ - **Talk to the data**: four agent tools for querying, creating tables and writing data.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ # macOS desktop
30
+ DSH_CLI="/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh"
31
+ "$DSH_CLI" plugin --profile desktop add github:etShaw-zh/dsh-db-studio
32
+ ```
33
+
34
+ Restart DeepSeek Harness afterwards. Stable builds are listed in [Releases](https://github.com/etShaw-zh/dsh-db-studio/releases). On Windows / Linux use the `dsh` path installed on your machine.
35
+
36
+ From source:
37
+
38
+ ```bash
39
+ git clone https://github.com/etShaw-zh/dsh-db-studio.git
40
+ "$DSH_CLI" plugin --profile desktop add "$PWD/dsh-db-studio"
41
+ ```
42
+
43
+ ## Getting started
44
+
45
+ 1. Open **Database** in the sidebar and create a connection, or use the built-in demo database.
46
+ 2. Select the databases for the conversation, then ask the assistant to work with them:
47
+
48
+ > Show me the 10 most recent orders in the demo database, sorted by amount.
49
+ >
50
+ > Change every Hangzhou user's city to “Hangzhou · West Lake”.
51
+ >
52
+ > Add a notes field to the orders table.
53
+
54
+ The assistant can only access databases selected for the conversation; if none are selected, it asks you to choose one first.
55
+
56
+ ## Configuration
57
+
58
+ Set these in the profile's `cordis.patch.yml`:
59
+
60
+ | Key | Default | Meaning |
61
+ | --- | --- | --- |
62
+ | `demo` | `true` | Create a demo database when there are no connections |
63
+ | `allowWrite` | `true` | Allow write operations |
64
+ | `agentTools` | `true` | Register the conversation tools |
65
+ | `maxRows` | `200` | Maximum rows returned by a query |
66
+
67
+ ## Data and security
68
+
69
+ - Connections live in `~/.dsh/dsh-db-studio/connections.json` with file mode `0600`.
70
+ - Passwords stay on this machine and never reach the browser or the model context.
71
+ - For production databases, use a read-only account or connection, or set `allowWrite: false`.
72
+
73
+ ## Development
74
+
75
+ ```bash
76
+ npm install
77
+ npm test
78
+ ```
79
+
80
+ Issues and PRs are welcome: <https://github.com/etShaw-zh/dsh-db-studio>
81
+
82
+ ## License
83
+
84
+ MIT
package/README.md CHANGED
@@ -1,3 +1,82 @@
1
- # Temporary Holding Version
1
+ # dsh-db-studio
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 简体中文 | [English](./README.en.md)
4
+
5
+ [![test](https://github.com/etShaw-zh/dsh-db-studio/actions/workflows/test.yml/badge.svg)](https://github.com/etShaw-zh/dsh-db-studio/actions/workflows/test.yml)
6
+ [![License](https://img.shields.io/github/license/etShaw-zh/dsh-db-studio)](LICENSE)
7
+ [![release](https://img.shields.io/github/v/release/etShaw-zh/dsh-db-studio)](https://github.com/etShaw-zh/dsh-db-studio/releases)
8
+
9
+ 在 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH)里连接数据库,直接在对话中查数据、改数据。
10
+
11
+ ![在对话中查询示例数据库](docs/demo.gif)
12
+
13
+ ## 能做什么
14
+
15
+ ### 浏览和管理数据库
16
+ - **左侧栏「数据库」面板**:浏览连接、表结构、分页数据,执行 SQL。
17
+ - **支持 SQLite / PostgreSQL / MySQL**,SQLite 无需额外安装驱动。
18
+
19
+ ### 在对话里直接用
20
+ - **对话内「数据库」标签**:在当前对话里直接查看和操作已选数据库。
21
+ - **输入框旁多选下拉**:选择本次对话要使用的数据库,支持多选。
22
+ - **对话中直接操作**:内置 4 个助手工具,可以帮你查询、建表、写数据。
23
+
24
+ ## 安装
25
+
26
+ ```bash
27
+ # macOS 桌面端
28
+ DSH_CLI="/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh"
29
+ "$DSH_CLI" plugin --profile desktop add github:etShaw-zh/dsh-db-studio
30
+ ```
31
+
32
+ 安装后**重启 DeepSeek Harness**。稳定版见 [Releases](https://github.com/etShaw-zh/dsh-db-studio/releases)。Windows / Linux 使用本机对应的 `dsh` 路径即可。
33
+
34
+ 从源码安装:
35
+
36
+ ```bash
37
+ git clone https://github.com/etShaw-zh/dsh-db-studio.git
38
+ "$DSH_CLI" plugin --profile desktop add "$PWD/dsh-db-studio"
39
+ ```
40
+
41
+ ## 开始使用
42
+
43
+ 1. 左侧栏点击「数据库」,新建连接,或使用内置示例数据库。
44
+ 2. 在对话框里选中要用的数据库;也可以直接在对话里让助手操作:
45
+
46
+ > 查一下示例数据库里最近 10 笔订单,按金额排序
47
+ >
48
+ > 把 users 表里杭州的用户城市改成「杭州·西湖区」
49
+ >
50
+ > 给 orders 表加一个备注字段
51
+
52
+ 助手只能访问当前对话选中的数据库;没选数据库时会先提示你选择。
53
+
54
+ ## 配置
55
+
56
+ 插件配置写在 profile 的 `cordis.patch.yml`,常用项:
57
+
58
+ | 配置 | 默认 | 说明 |
59
+ | --- | --- | --- |
60
+ | `demo` | `true` | 没有连接时自动创建示例数据库 |
61
+ | `allowWrite` | `true` | 是否允许写操作 |
62
+ | `agentTools` | `true` | 是否注册对话工具 |
63
+ | `maxRows` | `200` | 查询最多返回行数 |
64
+
65
+ ## 数据与安全
66
+
67
+ - 连接信息保存在 `~/.dsh/dsh-db-studio/connections.json`,文件权限为 `0600`。
68
+ - 密码只保存在本机,不会发送到浏览器或模型上下文。
69
+ - 生产库建议使用只读账号、只读连接,或设置 `allowWrite: false`。
70
+
71
+ ## 开发
72
+
73
+ ```bash
74
+ npm install
75
+ npm test
76
+ ```
77
+
78
+ 欢迎提交 Issue 或 PR:<https://github.com/etShaw-zh/dsh-db-studio>
79
+
80
+ ## License
81
+
82
+ MIT
@@ -0,0 +1,11 @@
1
+ # dsh-db-studio bundle patch.
2
+ #
3
+ # `dsh plugin --profile <name> add dsh-db-studio` reads this file and appends the
4
+ # row below to the profile's bundle stack. The `name` is the npm package name,
5
+ # so Node module resolution finds the installed package.
6
+ - insert:
7
+ - id: db-studio
8
+ name: dsh-db-studio
9
+ config:
10
+ demo: true
11
+ allowWrite: true
Binary file
package/docs/demo.gif ADDED
Binary file
package/docs/panel.png ADDED
Binary file