@kirrosh/zond 0.12.1 → 0.12.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirrosh/zond",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "API testing platform — define tests in YAML, run from CLI or WebUI, generate from OpenAPI specs",
5
5
  "license": "MIT",
6
6
  "module": "index.ts",
@@ -13,6 +13,7 @@ import {
13
13
  } from "../../core/generator/index.ts";
14
14
  import { loadEnvironment } from "../../core/parser/variables.ts";
15
15
  import { compressEndpointsWithSchemas, buildGenerationGuide } from "../../core/generator/guide-builder.ts";
16
+ import { findCollectionBySpec } from "../../db/queries.ts";
16
17
  import { planChunks, filterByTag } from "../../core/generator/chunker.ts";
17
18
  import { TOOL_DESCRIPTIONS } from "../descriptions.js";
18
19
  import { validateAndSave } from "./save-test-suite.ts";
@@ -39,7 +40,11 @@ export function registerGenerateAndSaveTool(server: McpServer) {
39
40
  const securitySchemes = extractSecuritySchemes(doc);
40
41
  const baseUrl = ((doc as any).servers?.[0]?.url) as string | undefined;
41
42
  const title = (doc as any).info?.title as string | undefined;
42
- const effectiveOutputDir = outputDir ?? "./tests/";
43
+ let effectiveOutputDir = outputDir;
44
+ if (!effectiveOutputDir) {
45
+ const collection = findCollectionBySpec(specPath);
46
+ effectiveOutputDir = collection?.test_path ?? "./tests/";
47
+ }
43
48
  const effectiveMode = mode ?? "generate";
44
49
 
45
50
  // Apply method filter