@haddowg/json-api-mcp 1.5.0 → 1.6.0

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/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as writeMcpModel } from "./generate-CRFMFxP7.mjs";
2
+ import { r as writeMcpModel } from "./generate-BhdKZFqD.mjs";
3
3
  import { realpathSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  //#region src/cli.ts
@@ -1463,9 +1463,9 @@ function buildEntry(op, parsed, inputCtx, outputCtx, descriptor) {
1463
1463
  */
1464
1464
  function assertContract(doc) {
1465
1465
  const contract = doc.info?.["x-generator"]?.contract;
1466
- if (typeof contract !== "number") throw new Error(`The OpenAPI document declares no generator contract (info.x-generator.contract). @haddowg/json-api-mcp reads contracts 13 to 20; regenerate the document from a newer haddowg/json-api server.`);
1467
- if (contract < 13) throw new Error(`The OpenAPI document declares generator contract ${contract}, older than this package reads (13 to 20). Regenerate it from a newer haddowg/json-api server.`);
1468
- if (contract > 20) throw new Error(`The OpenAPI document declares generator contract ${contract}, newer than this package reads (13 to 20). Upgrade @haddowg/json-api-mcp.`);
1466
+ if (typeof contract !== "number") throw new Error(`The OpenAPI document declares no generator contract (info.x-generator.contract). @haddowg/json-api-mcp reads contracts 13 to 21; regenerate the document from a newer haddowg/json-api server.`);
1467
+ if (contract < 13) throw new Error(`The OpenAPI document declares generator contract ${contract}, older than this package reads (13 to 21). Regenerate it from a newer haddowg/json-api server.`);
1468
+ if (contract > 21) throw new Error(`The OpenAPI document declares generator contract ${contract}, newer than this package reads (13 to 21). Upgrade @haddowg/json-api-mcp.`);
1469
1469
  return contract;
1470
1470
  }
1471
1471
  //#endregion
@@ -1612,4 +1612,4 @@ async function writeMcpModel(options) {
1612
1612
  //#endregion
1613
1613
  export { buildMcpModel as i, serialiseMcpModel as n, writeMcpModel as r, generateMcpModel as t };
1614
1614
 
1615
- //# sourceMappingURL=generate-CRFMFxP7.mjs.map
1615
+ //# sourceMappingURL=generate-BhdKZFqD.mjs.map