dsh-harness-toolbox 1.8.8 → 1.8.10

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 CHANGED
@@ -1,6 +1,20 @@
1
1
  # 变更记录
2
2
 
3
- > 版本号以 `package.json` 为准,每个发布版本对应一个 `vX.Y.Z` tag。安装方可以锁 `git+https://github.com/Homer4033/dsh-harness-toolbox.git#v1.8.8`。
3
+ > 版本号以 `package.json` 为准,每个发布版本对应一个 `vX.Y.Z` tag。安装方可以锁 `git+https://github.com/Homer4033/dsh-harness-toolbox.git#v1.8.10`。
4
+
5
+ ## 1.8.10 — 2026-11-24
6
+
7
+ - **按官方体例重写插件说明**:翻了 DSH 自带的 `references/plugin-details.md`(插件详情规范)和仓库里能拿到的其它插件——官方插件基本是「标题 + 一句话」(`计时服务 — 为其他插件提供延时和周期执行能力。`,17–40 字),第三方里最长的「红利量化」也只有 486 字。上一版(1.8.9)压到 669 字仍然像说明书。
8
+ - 现在中文 438 字、英文 971 字符,一段话七句:第一句是整包的定位(插件列表把说明裁成一行,只有这句会露出来),随后按「档位 / 组件 / 仓库 / 四个工具 / 联网与关闭后的变化 / 限制」展开,并补上规范要求的「数据去了哪里」与「关掉插件会怎样」。
9
+ - 规范里另外两条也确认过了:详情文档只能是一行图片(`docs/DETAIL*.md` 保持原样),功能与用法一律写在 `meta.description` 里。
10
+ - 8.9 的 stage 作废,改用这一版的 stage。
11
+
12
+ ## 1.8.9 — 2026-11-24
13
+
14
+ - **插件说明重写**:插件页里那段说明原来是 1,343 字(英文 3,190 字符)的一大段流水账——GitHub CLI 讲了两遍、「组件管理」栏出现两次、还留着早已删掉的 1.4.x 仓库面板。先按「五档压缩 / 四个工具 / 全局规则 / 组件管理 / 会话仓库 / 限制」分成六块,中文 669 字、英文 1,668 字符(各减一半);随后在 1.8.10 里按官方体例进一步压到 438 / 971。
15
+ - **显示名改为「压缩分档与工具箱」**(英文 `Compression tiers & toolbox`):功能早就超出「压缩分档」,包名也是 toolbox;加载器 id、状态目录、工具名都不变。
16
+ - `package.json` 的 `description` 从 470 字符压到 235,`keywords` 补 `toolbox` / `ffmpeg` / `github`,npm 搜索页不再是一长串。
17
+ - 说明里同步了这几版的新事实:掉线自动重试、已完成归档复用、安装替换失败回滚、会话标题下的仓库选择器。
4
18
 
5
19
  ## 1.8.8 — 2026-11-21
6
20
 
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Context compression tiers",
4
- "description": "Adds a Context compression page under Settings with five automatic compaction tiers (gentle, light, standard, aggressive, max). Picking a tier pushes its thresholdRatio and retainRatio into every mounted agent preset compaction engine immediately, so no restart is needed, and stores the choice in <DSH home>/compression-tiers/settings.json. The plugin also adds four agent tools: compression_tiers reads or changes the tier and accepts optional per-route headroom overrides; compression_context reports live occupancy, the tier threshold and the room left; compression_compact queues a proactive compaction that runs after the turn and resumes the conversation by itself; github_push publishes the current work — the session working directory by default — after a network probe and a secret scan, with a 60-second push deadline and a failure family plus whatever is still local when it fails. A [context] line at the conversation tail reports the same occupancy. Every tier keeps automatic pressure compaction on, and /compact remains available to the human. The lower half of the page also edits the global rules: it reads and atomically writes the official instruction file <DSH home>/AGENTS.md (the official dsh-agent-instructions plugin injects it into later sessions), and the system prompt carries the newest 2,000-character clip; agents get no tool to rewrite that file, only a save on the page writes it. The page's Components panel manages GitHub CLI: it detects a gh on PATH and downloads a managed pinned gh 2.76.2 copy (resumable, atomic install, rollback on failure); a separate GitHub sign-in panel runs the gh auth login --web device flow for the official change-request panel, and the credential stays in gh's own store, which the plugin never reads. The Components panel keeps four managed components in one place: GitHub CLI 2.76.2, git 2.56.1 (MinGit), ffmpeg and ffprobe (the gyan.dev release build) and Python 3.11.18 (python-build-standalone). Each row detects the PATH copy and can download the managed build (unpacked into a staging directory, probed, then swapped in as a whole tree with rollback on failure); the managed copy wins and goes first on this process's PATH. All four share one configurable download root (default <DSH home>/compression-tiers) that the same panel can move as a whole. A repository selector beside the session title lists the account's repositories with gh repo list and binds one to the session; github_push then publishes to https://github.com/owner/name.git by default (it only changes the push target, never clones or edits the workspace), and the binding lives in sessionRepos in settings.json. Limitations: the tiers are designed for windows of at least 256k tokens (the official 65,536-token headroom caps smaller windows); the plugin updates preset-isolated engines and leaves the host-plane row alone; remove any other plugin that manages the same compaction engines or the two will fight over the policy; the 1.4.x sidebar repository panel is gone, and several repositories are published from each session through github_push; changing a tier updates the engines live, but a browser reload may be needed to see the page again.",
3
+ "title": "Compression tiers & toolbox",
4
+ "description": "Five-tier context compression plus global rules editing, managed downloads for four components and per-session repository publishing. Tiers switch under Settings → Context compression and apply to every preset engine at once, no restart, with automatic pressure compaction kept on each tier; components are detected on PATH or downloaded under Settings → Components (GitHub CLI, git, ffmpeg/ffprobe, Python — resumable, rollback on failure, managed copy first on PATH); the repository selector under the session title decides where github_push publishes. Tools: compression_tiers, compression_context, compression_compact, github_push. It downloads those components from GitHub releases, gyan.dev and python-build-standalone and edits <DSH home>/AGENTS.md atomically; with the plugin off, tiers stop syncing, managed directories leave PATH, and the tools and panels disappear. Limits: tiers assume 256k-token windows or more, and only preset-isolated engines are updated.",
5
5
  "detail": "docs/DETAIL.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
- "title": "上下文压缩分档",
4
- "description": "在「设置 → 上下文压缩」里提供五档自动压缩策略(极轻、轻量、标准、积极、最大)。选中档位后立即把 thresholdRatio / retainRatio 写入每个已挂载的 Agent 预设压缩引擎,无需重启;选择保存在 <DSH home>/compression-tiers/settings.json。插件还提供四个智能体工具:compression_tiers 读取或切换档位,并接受可选的按路由 headroom 覆盖;compression_context 返回实时占用、本档阈值与剩余空间;compression_compact 排队一次主动压缩,本轮结束后执行并自动继续;github_push 发布当前工作区——默认取本会话的工作目录,先做网络体检与密钥扫描,再带 60 秒超时推送,失败时给出分类与仍在本地的东西。对话尾部的 [context] 行会报告同样的占用信息。每档都保留自动压力压缩,人类仍可使用 /compact。设置页下半部分还能编辑全局规则:直接读写官方指令文件 <DSH home>/AGENTS.md(官方 dsh-agent-instructions 会在之后的会话里注入它),保存是原子写入,系统提示里另带最新 2000 字符的摘要;智能体没有改写该文件的工具,只有你在设置页保存才会写入。设置页的「组件管理」栏管理 GitHub CLI:识别系统 PATH、下载固定版本 gh 2.76.2 的托管副本(断点续传、原子安装、失败回滚);另有独立的 GitHub 登录栏,用 gh auth login --web 的设备码流程登录,供官方变更请求面板使用;凭据存在 gh 自己的存储里,插件不读取。设置页的「组件管理」栏把四套托管组件放在一起:GitHub CLI 2.76.2、git 2.56.1(MinGit)、ffmpeg / ffprobe(gyan.dev 的 release 构建)与 Python 3.11.18(python-build-standalone);逐个检测系统 PATH,并可断点续传下载托管版(解压到临时目录、先自检再原子替换整棵目录,失败回滚),托管版优先并插到本进程 PATH 最前;四套组件共用一个可配置的下载根目录(默认 <DSH home>/compression-tiers),可在同一栏整体迁移。会话标题旁有一个在线仓库选择器:用 gh repo list 列出账号可写仓库,为当前会话绑定一个;绑定后 github_push 默认推到 https://github.com/owner/name.git(只改推送目标,不克隆也不改工作区),绑定保存在 settings.json 的 sessionRepos 里。限制:五档按 ≥256k tokens 窗口设计(官方 65,536 输出余量会限制更小的窗口);插件只更新预设隔离域里的引擎,不改宿主平面上的那一行;如果同时安装其他管理同一批压缩引擎或同名职责的插件,两者会互相覆盖策略;1.4.x 的左侧栏仓库面板已删除,多仓库由各会话里的 github_push 负责;切换档位后引擎立即生效,但设置页可能需要刷新浏览器才能重新读取。",
3
+ "title": "压缩分档与工具箱",
4
+ "description": "五档上下文压缩,外加全局规则编辑、四套组件托管下载与会话仓库发布。档位在「设置 → 上下文压缩」切换,选中即写入所有预设的压缩引擎、无需重启,每档保留自动压力压缩;组件在「设置 → 组件管理」检测 PATH 或下载托管版(GitHub CLI、git、ffmpeg / ffprobe、Python,断点续传、失败回滚、托管版优先入 PATH);会话标题下的「仓库」选择器决定 github_push 推到哪里。四个工具:compression_tiers、compression_context、compression_compact、github_push。会联网从 GitHub release、gyan.dev 与 python-build-standalone 下载组件,并原子编辑 <DSH home>/AGENTS.md;关掉插件后档位停止同步、托管目录离开 PATH、工具与面板消失。限制:档位按 ≥256k tokens 窗口设计,只更新预设隔离域里的引擎。",
5
5
  "detail": "docs/DETAIL.zh.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "dsh-harness-toolbox",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "private": false,
5
5
  "type": "module",
6
- "description": "Five-tier context compression policy for official DeepSeek Harness plus a global rules editor and GitHub publishing: settings page, agent tools (compression_tiers, compression_context, compression_compact, github_push), live occupancy meter, proactive compaction, /AGENTS.md, a component manager that installs and PATH-prefixes the GitHub CLI, git, ffmpeg/ffprobe and Python below one configurable download root (whole-directory migration), GitHub device-code login, and a per-session online repository binding in the session header.",
6
+ "description": "Five-tier context compaction, global rules editing, managed installs for gh / git / ffmpeg / Python below one migratable root, and per-session repository publishing for DeepSeek Harness.",
7
7
  "license": "MIT",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -15,7 +15,10 @@
15
15
  "dsh-plugin",
16
16
  "context",
17
17
  "compaction",
18
- "rules"
18
+ "rules",
19
+ "toolbox",
20
+ "ffmpeg",
21
+ "github"
19
22
  ],
20
23
  "repository": {
21
24
  "type": "git",