@dev-anywhere/proxy 0.5.30 → 0.5.31

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/dist/serve.js CHANGED
@@ -1183,6 +1183,13 @@ function normalizeHistoryToolParameters(rawToolName, input) {
1183
1183
  delete rest.cmd;
1184
1184
  return { ...rest, command };
1185
1185
  }
1186
+ if (typeof input === "string" && input.trim()) {
1187
+ try {
1188
+ JSON.parse(input);
1189
+ } catch {
1190
+ return { ...parameters, command: input };
1191
+ }
1192
+ }
1186
1193
  }
1187
1194
  if (toolName === "Patch" && typeof input === "string" && !parameters.content) {
1188
1195
  return { ...parameters, content: input };