()
| 1123 | } |
| 1124 | |
| 1125 | export function createCompactCanUseTool(): CanUseToolFn { |
| 1126 | return async () => ({ |
| 1127 | behavior: 'deny' as const, |
| 1128 | message: 'Tool use is not allowed during compaction', |
| 1129 | decisionReason: { |
| 1130 | type: 'other' as const, |
| 1131 | reason: 'compaction agent should only produce text summary', |
| 1132 | }, |
| 1133 | }) |
| 1134 | } |
| 1135 | |
| 1136 | async function streamCompactSummary({ |
| 1137 | messages, |
no outgoing calls
no test coverage detected