@zhushanwen/pi-unified-hooks 0.2.5 → 0.2.7

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 +12 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # unified-hooks
2
2
 
3
+ > **[DEPRECATED] 本包已废弃,被 [`@zhushanwen/pi-base-tool-enhance`](https://www.npmjs.com/package/@zhushanwen/pi-base-tool-enhance) 取代,不再维护。**
4
+ >
5
+ > 能力承接落点:
6
+ >
7
+ > | 原 hook | 承接方式 |
8
+ > |---------|---------|
9
+ > | `test-timeout-guard` | base-tool-enhance 可配置 force-test 白名单:测试类命令**自动转后台执行**并返回 task_id(不再 block 打回补 timeout 参数) |
10
+ > | `network-timeout-guard` | 正则不迁入(这类命令时长不定且结果常被立即需要);挂死保护由模型显式 timeout + base-tool-enhance 可配置前台默认超时承接 |
11
+ > | `tool-error-handler` | base-tool-enhance 的 tool_error 审计(customType 保持 `unified-hooks:tool-error`,历史 entry 不断链) |
12
+ >
13
+ > 迁移指引:`pi uninstall npm:@zhushanwen/pi-unified-hooks` 后 `pi install npm:@zhushanwen/pi-base-tool-enhance`。两者同时安装会对 bash 产生双重拦截,务必先卸载本包。
14
+
3
15
  统一 hooks 管理器 — 将散落的 hooks 收集到一个扩展中统一维护,每个 hook 可独立启用/禁用。
4
16
 
5
17
  ## 功能
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-unified-hooks",
3
- "version": "0.2.5",
4
- "description": "Unified hooks extension - collect scattered hooks in one place for easy maintenance",
3
+ "version": "0.2.7",
4
+ "description": "[DEPRECATED] Unified hooks extension - collect scattered hooks in one place for easy maintenance",
5
+ "deprecated": "Superseded by @zhushanwen/pi-base-tool-enhance — install that instead; test-command guarding, tool-error audit and configurable timeouts are all covered.",
5
6
  "main": "index.ts",
6
7
  "type": "module",
7
8
  "xyz-agent": {