mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 10:45:22 +00:00
refactor: 移除 context-mode,Chrome 快照改为直接返回
context-mode 的 ctx_execute 系工具以真实 shell 执行且权限为 allow,绕过了 bash 策略与 protectedWrites;其每轮注入、独立 MCP 子进程与 skills 也与组合包 提示词单一所有权冲突。大输出职责已由 pi-overflow(入口截断)与 pi-compaction(压力遮蔽)承担: - 删除 context-mode 依赖、wrapper/过滤器、skills,以及 ctx_* 的权限、 tools.jsonc、路由规则、tool-search 常驻与 4 个分组 - better-sqlite3@12 仅为 context-mode 传递依赖,随之移除根 allowScripts - pi-chrome:按用户决定移除快照隐私规则与 .pi/chrome-context 临时文件机制, 快照 JSON 直接作为工具结果返回、details 只留小型元数据,超长由 pi-overflow 截断并用 overflow_query 提取;授权生命周期不变 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
2a6bf8c929
commit
56cbc83296
@@ -24,7 +24,6 @@
|
||||
"pi-compaction/LICENSES",
|
||||
"pi-compaction/UPSTREAM.md",
|
||||
"pi-chrome/extensions",
|
||||
"pi-chrome/src",
|
||||
"pi-chrome/package.json",
|
||||
"pi-chrome/README.md",
|
||||
"pi-chrome/CHANGELOG.md",
|
||||
@@ -125,7 +124,6 @@
|
||||
"./extensions/codegraph.ts",
|
||||
"./pi-rtk-optimizer/index.ts",
|
||||
"./extensions/hashline.ts",
|
||||
"./extensions/context-mode.ts",
|
||||
"./extensions/lsp.ts",
|
||||
"./pi-hermes-memory/src/index.ts",
|
||||
"./pi-compaction/index.ts",
|
||||
@@ -141,9 +139,6 @@
|
||||
"./pi-tool-search/extensions/index.ts",
|
||||
"./pi-overflow/index.ts",
|
||||
"./extensions/system-prompt.ts"
|
||||
],
|
||||
"skills": [
|
||||
"./node_modules/context-mode/skills"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -152,7 +147,6 @@
|
||||
"@ogulcancelik/pi-minimal-footer": "file:./pi-minimal-footer",
|
||||
"@smoose/pi-notify": "file:./pi-notify",
|
||||
"@tintinweb/pi-subagents": "file:./pi-subagents",
|
||||
"context-mode": "1.0.169",
|
||||
"jiti": "2.7.0",
|
||||
"pi-ask-user": "file:./pi-ask-user",
|
||||
"pi-chrome": "file:./pi-chrome",
|
||||
@@ -192,8 +186,5 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.19.0"
|
||||
},
|
||||
"allowScripts": {
|
||||
"better-sqlite3@12.11.1": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user