gitnexus 1.6.12-rc.2 → 1.6.12-rc.3
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.
|
@@ -164,7 +164,13 @@ function normalizeToolParams(method, params) {
|
|
|
164
164
|
// Internal CLI callers materialize omitted optional flags as undefined.
|
|
165
165
|
if (value === undefined)
|
|
166
166
|
continue;
|
|
167
|
-
|
|
167
|
+
// Strict OpenAI/Anthropic adapters also materialize omitted optional
|
|
168
|
+
// string aliases as "". Treat those exactly like undefined. Required
|
|
169
|
+
// canonical values are still rejected by the method-specific check
|
|
170
|
+
// below, and non-string aliases remain invalid.
|
|
171
|
+
if (typeof value === 'string' && !value.trim())
|
|
172
|
+
continue;
|
|
173
|
+
if (typeof value !== 'string') {
|
|
168
174
|
return { error: `MCP parameter ${method}.${key} must be a non-empty string.` };
|
|
169
175
|
}
|
|
170
176
|
supplied.push({ key, value: value.trim() });
|
|
@@ -177,8 +183,8 @@ function normalizeToolParams(method, params) {
|
|
|
177
183
|
.join(', ')} must agree.`,
|
|
178
184
|
};
|
|
179
185
|
}
|
|
180
|
-
for (const
|
|
181
|
-
delete normalized[
|
|
186
|
+
for (const key of keys)
|
|
187
|
+
delete normalized[key];
|
|
182
188
|
if (supplied.length > 0)
|
|
183
189
|
normalized[canonical] = supplied[0].value;
|
|
184
190
|
}
|
package/package.json
CHANGED