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.
- package/index.mjs +7 -0
- 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)
|