@@ -18,7 +18,7 @@ export interface PruneConfig {
|
||||
export const DEFAULT_PRUNE_CONFIG: PruneConfig = {
|
||||
protectTokens: 40_000,
|
||||
minimumSavings: 20_000,
|
||||
protectedTools: ["skill", "open", "read"],
|
||||
protectedTools: ["skill", "read"],
|
||||
};
|
||||
|
||||
export interface PruneResult {
|
||||
|
||||
@@ -44,8 +44,7 @@ export function extractFileOpsFromMessage(message: AgentMessage, fileOps: FileOp
|
||||
if (!path) continue;
|
||||
|
||||
switch (block.name) {
|
||||
case "read": // legacy alias
|
||||
case "open":
|
||||
case "read":
|
||||
fileOps.read.add(path);
|
||||
break;
|
||||
case "write":
|
||||
|
||||
Reference in New Issue
Block a user