opencode-claude-code-wrapper 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +7 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -280,6 +280,13 @@ async function handleClaudeCodeRequest(input, init) {
280
280
 
281
281
  // Log full request body to separate file for detailed inspection
282
282
  try {
283
+ // Save requests with tools to a separate file
284
+ if (requestBody.tools?.length > 0) {
285
+ writeFileSync(
286
+ join(METRICS_DIR, "last_request_with_tools.json"),
287
+ JSON.stringify(requestBody, null, 2)
288
+ );
289
+ }
283
290
  writeFileSync(
284
291
  join(METRICS_DIR, "last_request.json"),
285
292
  JSON.stringify(requestBody, null, 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-claude-code-wrapper",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "OpenCode plugin that wraps Claude Code CLI for API-like access",
5
5
  "main": "./index.mjs",
6
6
  "type": "module",