MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / buildConfig

Function buildConfig

tests/compress-range.test.ts:20–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18mkdirSync(testConfigHome, { recursive: true })
19
20function 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
70function textPart(messageID: string, sessionID: string, id: string, text: string) {
71 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected