@kirrosh/zond 0.12.2 → 0.12.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.
package/package.json
CHANGED
|
@@ -128,12 +128,12 @@ export function registerGenerateAndSaveTool(server: McpServer) {
|
|
|
128
128
|
const fileName = (suite.fileStem ?? suite.name) + ".yaml";
|
|
129
129
|
const filePath = join(effectiveOutputDir, fileName);
|
|
130
130
|
|
|
131
|
-
const result = await validateAndSave(filePath, yaml, overwrite ?? false);
|
|
131
|
+
const { result: saveResult } = await validateAndSave(filePath, yaml, overwrite ?? false);
|
|
132
132
|
files.push({
|
|
133
|
-
saved:
|
|
134
|
-
filePath:
|
|
133
|
+
saved: saveResult.saved,
|
|
134
|
+
filePath: saveResult.filePath ?? filePath,
|
|
135
135
|
tests: suite.tests.length,
|
|
136
|
-
...(
|
|
136
|
+
...(saveResult.error ? { error: saveResult.error } : {}),
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
|