dbx-plugin-skill 0.1.2 → 0.1.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "dbx-plugin-skill",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "DBX 插件开发 skill:覆盖插件创建、开发、调试、打包、发布到 dbx-store 上架的全流程,安装到 DSH / Claude Code / agents 技能目录",
5
5
  "type": "module",
6
6
  "bin": {
package/skill/SKILL.md CHANGED
@@ -104,6 +104,7 @@ dbx-plugin create my-plugin \
104
104
  - 所有 UI 必须构建为包内静态资源;**不要把 Vite dev server 或 CDN 地址写进发行包**。
105
105
  - 需要原生能力(S3/SSH/系统凭据/长连接/高性能)才写 Sidecar。Sidecar 不是 OS 沙箱,以当前用户权限运行。
106
106
  - 连接表单可用 `visible_when` / `required_when` 的 `all_of`、`any_of`、`not` 组合条件,以及 `picker` 提供本地文件选择;依赖这些能力时设置足够新的 `engines.dbx`。
107
+ - 若握手可能超过通用超时,连接表单可声明 `config` 字段 `connect_timeout_secs`;DBX 会用其解析值作为 `connection/test` 与 `connection/connect` 的 deadline。Sidecar 进程按插件共享、跨标签页复用,后端会话应按 `connection.id` 管理。
107
108
 
108
109
  ### 步骤 3:本地调试
109
110
 
@@ -49,6 +49,10 @@
49
49
  插件自定义的连接类型标识(如 `ssh`、`example-files`)。**它不会给 DBX 内置数据库枚举添加成员**;保存后存放在 `plugin_connection_type`。
50
50
 
51
51
  ### `fields`
52
+
53
+ #### `connect_timeout_secs`(可选的内置字段键)
54
+
55
+ 如果传输或握手可能超过 DBX 默认的通用超时,可声明一个 `binding: "config"` 且 `key: "connect_timeout_secs"` 的 `number` 字段。DBX 会把用户值(或声明的 `default`)写入类型化连接配置,并让 `connection/test`、`connection/connect` 的请求 deadline 使用这个解析后的值;已保存的 `external_config` 优先于默认值。声明后,连接对话框里的通用超时选项不再覆盖该值。
52
56
  每个字段必须有 `key`(`identifier`)、`label`(非空)、`type`。
53
57
 
54
58
  - `type` 枚举:`text`、`password`、`number`、`boolean`、`select`、`radio`、`textarea`。