()
| 1157 | } |
| 1158 | |
| 1159 | export function createCompactCanUseTool(): CanUseToolFn { |
| 1160 | return async () => ({ |
| 1161 | behavior: 'deny' as const, |
| 1162 | message: 'Tool use is not allowed during compaction', |
| 1163 | decisionReason: { |
| 1164 | type: 'other' as const, |
| 1165 | reason: 'compaction agent should only produce text summary', |
| 1166 | }, |
| 1167 | }) |
| 1168 | } |
| 1169 | |
| 1170 | async function streamCompactSummary({ |
| 1171 | messages, |
no outgoing calls
no test coverage detected