@xi4z/dsh-utils 0.10.1 → 0.11.0

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -140,7 +140,7 @@ pnpm release --dry-run # 只看会不会发,不动 registry
140
140
 
141
141
  #### 配置的 Skill 仓库:从仓库根递归 + 定时更新
142
142
 
143
- `$DSH_HOME/utils/utils.json` 是 utils 的配置文件;面板「共享技能仓库」保存的就是这一份(首次读取时若文件不存在,会自动从旧的 `$DSH_HOME/storages/dsh-utils-ui.json` 迁移,旧文件保留不删):
143
+ `$DSH_HOME/utils/utils.json` 是 utils 的配置文件;面板「共享技能仓库」保存的就是这一份(首次读取时若文件不存在,会自动从旧的 `$DSH_HOME/storages/dsh-utils-ui.json` 迁移,旧文件保留不删;迁移不到仓库、或旧文件本身就是空配置 `{}` 时,会写入默认配置并继续使用,见下面的「默认配置」):
144
144
 
145
145
  ```json
146
146
  {
@@ -161,6 +161,7 @@ pnpm release --dry-run # 只看会不会发,不动 registry
161
161
  }
162
162
  ```
163
163
 
164
+ - **默认配置**:文件不存在又迁移不到仓库、或旧文件本身是空配置(`{}`、`{"version":1}`,没有任何仓库和设置)时,第一次读取会把它写成默认配置——`skillRepositories` 里放一个默认共享仓库(`https://github.com/xi4z/skills`、`Agent`、`$DSH_HOME/skills/utils-skill`),`autoUpdate`/`autoSyncPresets` 为 `true`、`updateIntervalMinutes` 为 `60`。**升级前配置为空的老 profile 因此会直接变成默认配置**;已经写了任何配置(仓库或 `autoUpdate` 等设置)的文件读取时原样保留,坏掉的 JSON 只按默认值读取、不覆盖,方便手工修复。想保持空仓库列表,写一条显式设置即可(例如 `"autoUpdate": false`)。
164
165
  - 每个 `targetDir` 都是一个发现根:从**仓库根**(depth 0)开始递归,仓库根自己的 `SKILL.md` 和任意深度的技能包都会进目录,不受 `minDepth` 限制;`maxDepth` 仍然生效,`ignoreDirs` 照旧跳过。
165
166
  - 配置仓库的 rank 是 90,优先于项目级/用户级技能根;同一文件同时通过软链接(如 `~/.dsh/skills -> <checkout>`)被两个根看到时,按真实路径去重,只保留 rank 更小的那份。
166
167
  - 定时更新:激活 5 分钟后第一次,之后每隔 `updateIntervalMinutes`(默认 60,可设 5–1440)执行 clone 或 `fetch` + `merge --ff-only`,再 `submodule sync --recursive` + `submodule update --init --recursive`;只有提交或子模块真的变了才刷新技能目录。
@@ -235,7 +236,7 @@ Deploy Key 按预设保存到 `$DSH_HOME/storages/dsh-utils-agents/<preset>.key`
235
236
  存储:
236
237
 
237
238
  - 设置:`$DSH_HOME/utils/utils.json`(`skillRepositories[]` 里的 `repoUrl` / `branch` / `targetDir` / `keyPath` / `recurseSubmodules` / `lastSync`,以及 `autoUpdate` / `autoSyncPresets` / `updateIntervalMinutes`)
238
- - 迁移:`$DSH_HOME/utils/utils.json` 不存在时读取一次旧的 `$DSH_HOME/storages/dsh-utils-ui.json` 并写回新文件;旧文件保留
239
+ - 迁移:`$DSH_HOME/utils/utils.json` 不存在时读取一次旧的 `$DSH_HOME/storages/dsh-utils-ui.json` 并写回新文件;旧文件保留。旧文件里没有仓库、或旧配置本身为空时,写回的是默认配置(默认共享仓库 + 默认开关)
239
240
  - Deploy Key:`$DSH_HOME/storages/dsh-utils-ui.deploy-key`(600,不返回浏览器;密钥不是配置,仍留在 `storages`)
240
241
  - 通用 Deploy Key:`$DSH_HOME/storages/dsh-utils-agents/deploy-key`(600,不返回浏览器)
241
242
  - 密钥优先级:`keyPath` 指向的私钥 > 该仓库保存的 Deploy Key > 通用 Deploy Key > 无;公开 `https://` / `file://` 可免密钥
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xi4z/dsh-utils",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "DeepSeek Harness utility bundle: a patch-only package that assembles five independently published components — the utils-agents preset/skill panel (nested SKILL.md discovery, model visibilities, skills, repositories and AGENTS.md), an unattended approval gate, a QQ approval card answerer, session notifications, and the shared browser UI that configures every row.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -58,11 +58,11 @@
58
58
  "node": ">=22.19.0"
59
59
  },
60
60
  "dependencies": {
61
- "@xi4z/dsh-utils-approval-policy": "0.10.1",
62
- "@xi4z/dsh-utils-approval-qq": "0.10.1",
63
- "@xi4z/dsh-utils-notify": "0.10.1",
64
- "@xi4z/dsh-utils-ui": "0.10.1",
65
- "@xi4z/dsh-utils-utils-agents": "0.10.1"
61
+ "@xi4z/dsh-utils-approval-policy": "0.11.0",
62
+ "@xi4z/dsh-utils-approval-qq": "0.11.0",
63
+ "@xi4z/dsh-utils-notify": "0.11.0",
64
+ "@xi4z/dsh-utils-ui": "0.11.0",
65
+ "@xi4z/dsh-utils-utils-agents": "0.11.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@deepseek-ai/cordis": "~4.1.0"