dsh-harness-toolbox 1.8.8 → 1.8.9

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,13 @@
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.9`。
4
+
5
+ ## 1.8.9 — 2026-11-24
6
+
7
+ - **插件说明重写**:插件页里那段说明原来是 1,343 字(英文 3,190 字符)的一大段流水账——GitHub CLI 讲了两遍、「组件管理」栏出现两次、还留着早已删掉的 1.4.x 仓库面板。现在按「五档压缩 / 四个工具 / 全局规则 / 组件管理 / 会话仓库 / 限制」分成六块,中文 669 字、英文 1,668 字符(各减一半),每块自带主语,浏览器把换行折叠掉也读得通。
8
+ - **显示名改为「压缩分档与工具箱」**(英文 `Compression tiers & toolbox`):功能早就超出「压缩分档」,包名也是 toolbox;加载器 id、状态目录、工具名都不变。
9
+ - `package.json` 的 `description` 从 470 字符压到 235,`keywords` 补 `toolbox` / `ffmpeg` / `github`,npm 搜索页不再是一长串。
10
+ - 说明里同步了这几版的新事实:掉线自动重试、已完成归档复用、安装替换失败回滚、会话标题下的仓库选择器。
4
11
 
5
12
  ## 1.8.8 — 2026-11-21
6
13
 
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 automatic compaction tiers — gentle / light / standard / aggressive / max: picking one writes thresholdRatio and retainRatio into every mounted preset compacting engine, no restart needed; the choice lives in <DSH home>/compression-tiers/settings.json, every tier keeps automatic pressure compaction, and /compact still works by hand.\n\nFour agent tools: compression_tiers reads or changes the tier (optional per-route headroom overrides); compression_context reports live occupancy and the room left; compression_compact queues one proactive compaction that runs after the turn and resumes by itself; github_push publishes the current work (network probe, secret scan, 60-second deadline, a failure family plus whatever is still local).\n\nGlobal rules: the page edits <DSH home>/AGENTS.md atomically, the system prompt carries the newest 2,000-character clip, and no agent tool can rewrite that file.\n\nComponents: four managed builds — GitHub CLI 2.76.2, git 2.56.1, ffmpeg/ffprobe, Python 3.11.18. PATH detection, a managed download with resume (retries a dropped link, probes before swapping the tree in, rolls back on failure, reuses a finished archive), managed copies first on this process PATH, one migratable download root for all four, and gh device-code sign-in beside them.\n\nSession repository: a selector under the session title binds the session to one writable repository, and github_push targets it by default (it only changes the push target, never clones or edits the workspace).\n\nLimits: the tiers assume 256k-token windows or more, only preset-isolated engines are updated, and another plugin managing the same engines will fight over the policy.",
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": "五档自动压缩:极轻 / 轻量 / 标准 / 积极 / 最大,选中即写入所有已挂载预设的压缩引擎,无需重启;设置存在 <DSH home>/compression-tiers/settings.json,每档保留自动压力压缩,/compact 仍可手动触发。\n\n四个智能体工具:compression_tiers 读取或切换档位(可按路由覆盖 headroom);compression_context 报实时占用与剩余空间;compression_compact 排队一次主动压缩,本轮结束后执行并自动继续;github_push 发布当前工作区(网络体检、密钥扫描、60 秒超时,失败给出分类与仍在本地的东西)。\n\n全局规则:设置页原子编辑 <DSH home>/AGENTS.md,系统提示只带最新 2000 字符摘要,智能体没有改写它的工具。\n\n组件管理:四套托管组件 GitHub CLI 2.76.2、git 2.56.1、ffmpeg / ffprobe、Python 3.11.18。检测系统 PATH,可下载托管版(断点续传、掉线自动重试、自检后整树替换、失败回滚、复用已下载的归档),托管版优先并插到本进程 PATH 最前;四套共用一个可整体迁移的下载根目录,同栏有 gh 设备码登录。\n\n会话仓库:标题下的选择器把当前会话绑到一个可写仓库,github_push 默认推到它(只改推送目标,不克隆也不改工作区)。\n\n限制:档位按 ≥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.9",
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 for DeepSeek Harness plus global rules editing, a managed component installer (gh, git, ffmpeg/ffprobe, Python) below one migratable download root, GitHub device login and per-session repository publishing.",
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",