Commit Graph
61 Commits
Author SHA1 Message Date
云服务部-叶林立 73f3117a7e feat(pi-hermes-memory): 接入持久记忆扩展并移除 Hippo
用仓库内 pi-hermes-memory 替换 hippo-memory-pi,清理 Hippo 在组合包中的
全部注入点。

移除 Hippo:
- 删除 hippo-memory-pi/ 与 config/hippo-memory-version。
- extensions/plugin-init.ts 只保留 CodeGraph 初始化目标与预检。
- install.sh / update.sh / uninstall.sh 移除 Hippo CLI 的安装、升级、卸载
  与版本校验逻辑;uninstall.sh 同时删除仅服务于该提示的死代码 ask_yes_no。
- 删除 tests/hippo-extension.test.ts 与 tests/hippo-scripts.test.ts。
- tests/extension-load.test.ts 反转“不得加载 Hermes”的断言为必须加载,
  并断言其排在 pi-compaction 之前。

接入 pi-hermes-memory:
- package.json 增加 file:./pi-hermes-memory 依赖、files 条目与加载入口;
  加载顺序位于 pi-compaction 之前,否则 flushOnCompact 会被 pi-compaction
  的 { cancel: true } 静默跳过。
- 六个记忆工具在 Tool Search 中常驻:memory_search 与 session_search 连同
  context_tree_query 归入 memory-recall,memory_add / memory_replace /
  memory_remove / skill_manage 归入 memory-management。常驻是必需的——注入
  的 memory policy 会在普通工作中指示模型调用它们,schema 不可见会让模型
  静默放弃而不是去 tool_search,同时常驻也保持请求前缀缓存稳定。
- bundleDefaultsVersion 由 2 升到 3;migrate-tool-search-settings.mjs 新增
  上一版快照到当前版本的迁移路径,仍只迁移完整匹配的默认快照并保留自定义
  配置。
- config/pi-permission-policy.jsonc 为六个工具设置 allow:它们只写扩展自己的
  agent 目录数据、不触碰工作区,且 memory_search 每轮都可能被调用,落入
  默认 ask 会产生每轮 AutoReview 往返。

依赖:
- pi-hermes-memory 的 devDependencies 由上游 ^0.80.2 等范围改为与根包一致的
  精确版本。上游范围与根包 0.84.2 不兼容,会让 npm 在本目录嵌套安装第二套
  Pi runtime(实测 229 MB),违反“不得在组合包内再安装一套 Pi runtime”的
  纪律。
- 根 allowScripts 保持只有 better-sqlite3@12.11.1。hermes 的
  better-sqlite3@13 运行时 dlopen 的是包内 N-API 预编译二进制
  prebuilds/<platform>.node,npm 因 binding.gyp 推断出的 node-gyp rebuild
  无需执行;实测删除 build/ 目录后仍正常工作。

文档:AGENTS.md 与 README.md 改写记忆章节,新增 pi-hermes-memory 开发约定,
替换文末的 Hippo 项目记忆块。

验证:根 12 个测试文件、pi-tool-search 的 typecheck/test/build、
pi-permission-system 的 typecheck/2569 测试、pi-hermes-memory 自带的 59 个
测试文件全部通过;隔离 Pi 环境联合加载无错误并生成 bundleDefaultsVersion 3;
npm install 幂等;迁移 helper 对 v2 快照迁移、对自定义配置保留。
2026-10-14 00:56:41 -07:00
云服务部-叶林立 312bb2ba5a feat(pi-hermes-memory): 导入上游 v0.9.10 源码快照
从官方 Git 仓库导入 chandra447/pi-hermes-memory 在 tag v0.9.10
(df624056a2e8c68bc89ba0a81e1c120856ec9665,2026-10-02)的源码快照。
本次仅导入源码,尚未接入组合包:package.json、加载顺序、依赖与权限策略
均未改动。

- 原样导入 src/、tests/、docs/、scripts/、README、CHANGELOG、PLAN、
  AGENTS 与 LICENSE;该快照共 156 个上游文件。
- 剔除嵌套 .git、上游 .github 工作流、.ralph/、.claude/、node_modules、
  覆盖率与构建产物。
- 新增中文 UPSTREAM.md,记录来源,以及启用前必须完成的待决事项:
  在 pi-compaction 之前注册加载顺序、better-sqlite3 版本与根 allowScripts
  对齐、strip-ansi 解析确认。
- 说明选择 tag 而非 main 的原因:导入时上游 main 已领先至
  24fcd8ad26fc27badb8d7dbaf8034645de07b893(2026-10-11),选 tag 是为
  对应一个已发布、可复现的版本。

尚未接线。启用前还需反转 tests/extension-load.test.ts 中"不得加载
Hermes"的断言,并同步 pi-tool-search 分组、权限策略与文档。

验证:快照 156 个上游文件全部导入,目录内仅多出 UPSTREAM.md 一份;
已确认与上游 main 内容存在差异,证明取的是 tag 而非 main。
2026-10-13 23:19:35 -07:00
云服务部-叶林立 879fc5d37f 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/ 路径未发生改变。
2026-10-13 23:19:01 -07:00
云服务部-叶林立 ff1e7400da feat(compaction): support SubAPI native remote compaction
- support sub-api/openai-responses through the public Responses endpoint
- preserve explicit Authorization and support header-only authentication
- retain Codex JWT requirements and native compaction failure fallback
- restore SubAPI checkpoints and preserve portable model-switching summaries
- add provider, authentication and checkpoint lifecycle regression tests
- document compatibility requirements and the Sub2API protocol reference
2026-09-07 16:25:48 +08:00
云服务部-叶林立 6e7effa792 refactor(permission-system): simplify policy and autoreview flow 2026-09-03 02:01:06 +08:00
云服务部-叶林立 180da95ab7 feat(permission): integrate auto-review and hard guards 2026-09-02 15:34:29 +08:00
云服务部-叶林立 a4807dde67 feat: unify context compaction 2026-09-01 14:52:43 +08:00
云服务部-叶林立 44f27f7585 feat(pi-ask-user): support RPC UI dialogs 2026-09-01 11:04:31 +08:00
云服务部-叶林立 e80959cc3f feat(pi-condense): vendor source and add summarizer retries 2026-08-31 15:13:41 +08:00
云服务部-叶林立 8002d7c213 feat(pi-notify): notify on permission prompts 2026-08-28 16:35:33 +08:00
云服务部-叶林立 b83413d670 Merge branch 'my-pi-worktree1'
# Conflicts:
#	AGENTS.md
2026-08-28 15:22:42 +08:00
云服务部-叶林立 29ea39f9b1 fix(update): recover from incomplete git clean 2026-08-28 15:08:42 +08:00
云服务部-叶林立 f3a2abe1e4 feat(chrome): hand snapshots to context mode 2026-08-28 14:45:37 +08:00
云服务部-叶林立 5dd333882a Disable bundled subagents extension 2026-08-28 14:42:24 +08:00
云服务部-叶林立 d1b11f86f7 fix(ask): always allow custom select answers 2026-08-28 14:26:58 +08:00
云服务部-叶林立 221e978622 add gitignore 2026-08-28 12:18:06 +08:00
云服务部-叶林立 0c80a8b537 feat(condense): tune default pruning policy 2026-08-28 12:14:19 +08:00
云服务部-叶林立 2dcec0207c feat(tool-search): expand dynamic group activation 2026-08-28 12:05:11 +08:00
云服务部-叶林立 bf874455db fix(tool-search): avoid blocking known group activation 2026-08-27 10:13:52 +08:00
云服务部-叶林立 874d4da096 feat(pi-ssh): support SSH agent authentication 2026-08-26 20:01:45 +08:00
云服务部-叶林立 b7758b239e Merge remote-tracking branch 'origin/my-pi-worktree1'
# Conflicts:
#	AGENTS.md
2026-08-26 11:04:54 +08:00
云服务部-叶林立 ad0bd09eb9 Merge remote-tracking branch 'origin/main' 2026-08-26 11:03:56 +08:00
叶林立 ca0a7c0bfd Merge branch 'main' of bitbucket.org:siakitem/my-pi
# Conflicts:
#	AGENTS.md
#	README.md
#	package-lock.json
#	package.json
#	pi-tool-search/CHANGELOG.md
#	pi-tool-search/README.md
#	pi-tool-search/docs/dynamic-tool-loading.md
#	pi-tool-search/extensions/bundle-groups.ts
#	pi-tool-search/test/bundle-groups.test.ts
2026-08-26 10:59:34 +08:00
叶林立 7571ba6dd9 feat: enable permission-aware subagents 2026-08-26 10:49:26 +08:00
云服务部-叶林立 b658e52367 feat: integrate pi-chrome with tool search 2026-08-26 10:46:47 +08:00
云服务部-叶林立 fcdaa25b8f fix(pi-notify): default Kitty visibility to always 2026-08-26 10:36:03 +08:00
云服务部-叶林立 dc925e1eeb Merge branch 'my-pi-worktree1'
# Conflicts:
#	AGENTS.md
#	pi-tool-search/CHANGELOG.md
#	pi-tool-search/docs/dynamic-tool-loading.md
2026-08-25 15:18:58 +08:00
云服务部-叶林立 d2746fe5ae Merge branch 'main' of bitbucket.org:siakitem/my-pi 2026-08-24 23:04:50 +08:00
云服务部-叶林立 aff91b0972 fix(pi-ssh): harden remote execution and search 2026-08-24 23:04:29 +08:00
云服务部-叶林立 939139b5f3 feat: add interactive ask-user extension 2026-08-24 20:23:54 +08:00
叶林立 ea6c69bddf Merge origin/main into worktree-1 2026-08-24 20:17:49 +08:00
叶林立 d65ce3800c feat: add Kitty-aware completion notifications 2026-08-24 20:13:12 +08:00
云服务部-叶林立 e941e71ed8 feat: add project plugin initializer command 2026-08-24 19:30:59 +08:00
云服务部-叶林立 a7891f18bf feat(pi-ssh): add reviewed agent connection flow 2026-08-21 20:52:50 +08:00
云服务部-叶林立 0ac50eb581 feat: add pure ssh2 remote operations 2026-08-21 19:51:43 +08:00
叶林立 d3bf562189 feat: vendor and persist Codex fast mode 2026-08-20 00:06:39 +08:00
叶林立 bd7ff978e9 docs: add Hippo memory workflow 2026-08-19 22:26:57 +08:00
叶林立 5c4d6c6a87 feat: show fast mode in minimal footer 2026-08-19 22:24:37 +08:00
云服务部-叶林立 3cdcc3510b feat: vendor official hippo memory extension 2026-08-19 21:07:23 +08:00
云服务部-叶林立 9b2ec36a2d feat: delegate external read-only tools to auto-review 2026-08-19 16:48:45 +08:00
云服务部-叶林立 3507f85363 feat: vendor grouped tool search 2026-08-19 16:43:36 +08:00
云服务部-叶林立 779a845e18 feat: add minimal footer extension 2026-08-19 15:13:27 +08:00
云服务部-叶林立 6ce932df60 feat: add pi-condense with default enablement 2026-08-19 15:06:40 +08:00
云服务部-叶林立 410c50a3e5 feat: vendor permission system source 2026-08-19 14:35:19 +08:00
云服务部-叶林立 198584daf8 feat: add search API key configuration 2026-08-19 12:45:47 +08:00
云服务部-叶林立 6293ef1c63 fix: route Exa and CodeGraph through shared mcp adapter 2026-08-19 12:10:24 +08:00
云服务部-叶林立 a0a4ae44d4 docs: clarify TypeScript LSP validation 2026-08-19 11:15:26 +08:00
云服务部-叶林立 5a85660b5d feat: add routed online search providers 2026-08-19 11:04:03 +08:00
云服务部-叶林立 bf8bb42a09 feat: add hashline editing and TypeScript LSP 2026-08-19 10:24:03 +08:00
云服务部-叶林立 3d431a353d fix: document ctx_execute_file workspace boundary 2026-08-19 09:40:42 +08:00