pi-dynamic-context-pruning 0.1.15 → 0.1.16

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 (3) hide show
  1. package/README.md +4 -2
  2. package/index.ts +5 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -109,7 +109,8 @@ Before any strategy is allowed to propose a prune, several protections apply:
109
109
 
110
110
  - **Protected tool names** (case-insensitive, never pruned): `todo`, `task`,
111
111
  `subagent`, `agent`, `skill`, `oracle`, `librarian`, `contrarian`,
112
- `code_reviewer`, `gnosis`, `triage_comments`.
112
+ `code_reviewer`, `gnosis`, `triage_comments`, `developer`, `diff_summarizer`,
113
+ `repo_scout`, `test_runner`, `web_scout`.
113
114
  - **Protected path globs** (never pruned if any string argument matches):
114
115
  `**/.env`, `**/.env.*`, `**/*.pem`, `**/*.key`, `**/id_rsa*`,
115
116
  `**/id_ed25519*`, `**/secrets/**`, `**/*.p12`, `**/*.pfx`.
@@ -118,6 +119,7 @@ Before any strategy is allowed to propose a prune, several protections apply:
118
119
  what they contain.
119
120
 
120
121
  All three lists/values are configurable (see [Configuration](#configuration)).
122
+ A user-set `protections.toolNames` replaces the default list.
121
123
 
122
124
  ## Savings accounting and the net-benefit gate
123
125
 
@@ -219,7 +221,7 @@ never required to exist. Full shape, with defaults:
219
221
  {
220
222
  "enabled": true,
221
223
  "protections": {
222
- "toolNames": ["todo", "task", "subagent", "agent", "skill", "oracle", "librarian", "contrarian", "code_reviewer", "gnosis", "triage_comments"],
224
+ "toolNames": ["todo", "task", "subagent", "agent", "skill", "oracle", "librarian", "contrarian", "code_reviewer", "gnosis", "triage_comments", "developer", "diff_summarizer", "repo_scout", "test_runner", "web_scout"],
223
225
  "pathGlobs": ["**/.env", "**/.env.*", "**/*.pem", "**/*.key", "**/id_rsa*", "**/id_ed25519*", "**/secrets/**", "**/*.p12", "**/*.pfx"],
224
226
  "recentTurns": 4
225
227
  },
package/index.ts CHANGED
@@ -177,6 +177,11 @@ const DEFAULT_PROTECTED_TOOL_NAMES = [
177
177
  "code_reviewer",
178
178
  "gnosis",
179
179
  "triage_comments",
180
+ "developer",
181
+ "diff_summarizer",
182
+ "repo_scout",
183
+ "test_runner",
184
+ "web_scout",
180
185
  ];
181
186
 
182
187
  /** File globs never pruned by default: secrets/credential-shaped paths. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dynamic-context-pruning",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "A pi extension that dynamically prunes stale context to keep sessions lean.",
6
6
  "keywords": [