Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Add to your OpenCode config:
```jsonc
// opencode.jsonc
{
"plugin": ["@tarquinen/[email protected].21"]
"plugin": ["@tarquinen/[email protected].22"]
}
```

Expand Down
7 changes: 5 additions & 2 deletions lib/fetch-wrapper/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ export async function handleGemini(
contentModified = true
replacedCount++
// Preserve thoughtSignature if present (required for Gemini 3 Pro)
// Only replace the response content, not the structure
// response must be a Struct (object), not a plain string
return {
...part,
functionResponse: {
...part.functionResponse,
response: PRUNED_CONTENT_MESSAGE
response: {
name: part.functionResponse.name,
content: PRUNED_CONTENT_MESSAGE
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tarquinen/opencode-dcp",
"version": "0.3.21",
"version": "0.3.22",
"type": "module",
"description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
"main": "./dist/index.js",
Expand Down