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