()
| 18 | mkdirSync(testConfigHome, { recursive: true }) |
| 19 | |
| 20 | function buildConfig(): PluginConfig { |
| 21 | return { |
| 22 | enabled: true, |
| 23 | debug: false, |
| 24 | pruneNotification: "off", |
| 25 | pruneNotificationType: "chat", |
| 26 | commands: { |
| 27 | enabled: true, |
| 28 | protectedTools: [], |
| 29 | }, |
| 30 | manualMode: { |
| 31 | enabled: false, |
| 32 | automaticStrategies: true, |
| 33 | }, |
| 34 | turnProtection: { |
| 35 | enabled: false, |
| 36 | turns: 4, |
| 37 | }, |
| 38 | experimental: { |
| 39 | allowSubAgents: true, |
| 40 | customPrompts: false, |
| 41 | }, |
| 42 | protectedFilePatterns: [], |
| 43 | compress: { |
| 44 | mode: "range", |
| 45 | permission: "allow", |
| 46 | showCompression: false, |
| 47 | maxContextLimit: 150000, |
| 48 | minContextLimit: 50000, |
| 49 | nudgeFrequency: 5, |
| 50 | iterationNudgeThreshold: 15, |
| 51 | nudgeForce: "soft", |
| 52 | protectedTools: [], |
| 53 | protectTags: false, |
| 54 | protectUserMessages: false, |
| 55 | }, |
| 56 | strategies: { |
| 57 | deduplication: { |
| 58 | enabled: true, |
| 59 | protectedTools: [], |
| 60 | }, |
| 61 | purgeErrors: { |
| 62 | enabled: true, |
| 63 | turns: 4, |
| 64 | protectedTools: [], |
| 65 | }, |
| 66 | }, |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | function textPart(messageID: string, sessionID: string, id: string, text: string) { |
| 71 | return { |
no outgoing calls
no test coverage detected