Commit Graph
24 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
云服务部-叶林立 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
云服务部-叶林立 e80959cc3f feat(pi-condense): vendor source and add summarizer retries 2026-08-31 15:13:41 +08:00
云服务部-叶林立 b83413d670 Merge branch 'my-pi-worktree1'
# Conflicts:
#	AGENTS.md
2026-08-28 15:22: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
云服务部-叶林立 b7758b239e Merge remote-tracking branch 'origin/my-pi-worktree1'
# Conflicts:
#	AGENTS.md
2026-08-26 11:04:54 +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
云服务部-叶林立 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
叶林立 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
云服务部-叶林立 198584daf8 feat: add search API key configuration 2026-08-19 12:45:47 +08:00