docs(upstream): 将 UPSTREAM.md 来源记录统一改为中文维护

把 12 份 UPSTREAM.md 来源记录全部翻译为中文,并把中文定为这份仓库自有
维护文档的强制语言。

- 翻译 hippo-memory-pi、pi-ask-user、pi-chrome、pi-compaction、
  pi-extension-codex-fast-mode、pi-minimal-footer、pi-notify、
  pi-permission-system/docs/auto-review、pi-ssh、pi-subagents 与
  pi-tool-search 的来源记录。
- 在 AGENTS.md 增加纪律:每个自维护扩展目录必须保留中文 UPSTREAM.md,
  内容涵盖官方仓库、tag/commit、导入版本、导入日期、许可证归属、本地
  改动清单与同步上游时的约束。
- 明确边界:UPSTREAM.md 属于仓库自有的维护文档,因此使用中文;上游自带
  的源码、测试、文档、README、CHANGELOG 与 LICENSE 一律保持原文,不翻
  译、不改写,避免同步上游时产生无意义 diff 并破坏许可证原文完整性。
- 所有 40 位 commit、tag/版本号、仓库 URL 与许可证路径原样保留,仅翻译
  叙述性文字。

验证:12 份文件均无残留英文正文;逐份复核了 commit、版本、URL 与
LICENSES/ 路径未发生改变。
This commit is contained in:
云服务部-叶林立
2026-10-13 23:19:01 -07:00
parent ff1e7400da
commit 879fc5d37f
12 changed files with 127 additions and 136 deletions
+17 -17
View File
@@ -1,22 +1,22 @@
# Upstream source
# 上游来源
- Project: `@smoose/pi-notify`
- Repository: <https://github.com/smoosex/pi-notify>
- Imported npm version: `0.1.1`
- Imported commit: `3a3691ab690b4bc37a4412ab0dcbd35ef14adcbf`
- Commit date: 2026-06-02
- npm tarball and repository source were compared before import.
- 项目:`@smoose/pi-notify`
- 仓库:<https://github.com/smoosex/pi-notify>
- 导入 npm 版本:`0.1.1`
- 导入 commit:`3a3691ab690b4bc37a4412ab0dcbd35ef14adcbf`
- Commit 日期:2026-06-02
- 导入前已对比 npm tarball 与仓库源码。
The source is maintained directly in this repository. It is not a submodule and does not retain an embedded `.git` directory or upstream build artifacts.
源码由本仓库直接维护。它不是 submodule,也不保留内嵌 `.git` 目录或上游构建产物。
## Local changes
## 本地改动
- Notify on `agent_settled` rather than `agent_end`, preserving elapsed time and the latest messages across retries.
- Restrict terminal output to TUI mode so OSC sequences cannot corrupt RPC, JSON, or print output.
- Give each Pi session a stable unique OSC 99 notification ID.
- Make Kitty click-to-focus explicit and default visibility to `always`, while retaining `unfocused` and `invisible` as opt-in policies.
- Add duration filtering, enable/privacy/action settings, status template fields, and `/notify` controls.
- Keep Base64 Kitty payloads, harden OSC metadata/fallback sanitization, and ignore detached-process spawn errors.
- Add lifecycle, multi-window metadata, fallback, parser, and configuration tests.
- 在 `agent_settled` 而非 `agent_end` 时通知,在重试期间保留已用时长和最新消息。
- 将终端输出限制在 TUI 模式,使 OSC 序列不会破坏 RPC、JSON 或 print 输出。
- 为每个 Pi Session 提供稳定的唯一 OSC 99 通知 ID。
- 将 Kitty 点击聚焦改为显式设置,并把可见性默认值设为 `always`,同时保留 `unfocused` 与 `invisible` 作为可选策略。
- 新增时长过滤、启用/隐私/动作设置、状态模板字段和 `/notify` 控制。
- 保留 Base64 Kitty payload,加固 OSC 元数据/回退净化,并忽略分离进程的 spawn 错误。
- 新增生命周期、多窗口元数据、回退、解析器和配置测试。
Upstream declares the project under the MIT license but did not include a `LICENSE` file at the imported commit or in the npm tarball. This directory adds the standard MIT text using the upstream author's GitHub identity and commit year so the declared license travels with the maintained source.
上游声明本项目使用 MIT 许可证,但在导入的 commit 和 npm tarball 中都没有包含 `LICENSE` 文件。本目录使用上游作者的 GitHub 身份和 commit 年份补充标准 MIT 文本,使声明的许可证随维护源码一起保留。