@kubb/plugin-mcp 4.13.0 → 4.14.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.
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas } from "./index-BTxiFtLf.cjs";
1
+ import { a as OperationSchemas } from "./index-DSbvNlVi.cjs";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas } from "./index-CBqa0LV5.js";
1
+ import { a as OperationSchemas } from "./index-Bh7MsqBu.js";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,5 @@
1
- import { n as ReactGenerator } from "./index-BTxiFtLf.cjs";
2
- import { n as PluginMcp } from "./types-BSHA4r7i.cjs";
1
+ import { n as ReactGenerator } from "./index-DSbvNlVi.cjs";
2
+ import { n as PluginMcp } from "./types-BfSEwsMt.cjs";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -1,5 +1,5 @@
1
- import { n as ReactGenerator } from "./index-CBqa0LV5.js";
2
- import { n as PluginMcp } from "./types-C-T02h7R.js";
1
+ import { n as ReactGenerator } from "./index-Bh7MsqBu.js";
2
+ import { n as PluginMcp } from "./types-Camk6ChE.js";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -1,5 +1,5 @@
1
- import { KubbFile } from "@kubb/fabric-core/types";
2
1
  import { Fabric } from "@kubb/react-fabric";
2
+ import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
4
  import BaseOas from "oas";
5
5
  import { Operation } from "oas/operation";
@@ -147,6 +147,8 @@ interface KubbEvents {
147
147
  id?: string;
148
148
  command: string;
149
149
  args?: readonly string[];
150
+ success: boolean;
151
+ error: Error | null;
150
152
  }];
151
153
  /**
152
154
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1161,4 +1163,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1161
1163
  };
1162
1164
  //#endregion
1163
1165
  export { OperationSchemas as a, Oas as c, Output as d, PluginFactoryOptions as f, Include as i, contentType as l, UserPluginWithLifeCycle as m, ReactGenerator as n, Override as o, ResolveNameParams as p, Exclude$1 as r, ResolvePathOptions as s, Generator as t, Group as u };
1164
- //# sourceMappingURL=index-BTxiFtLf.d.cts.map
1166
+ //# sourceMappingURL=index-Bh7MsqBu.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Fabric } from "@kubb/react-fabric";
2
1
  import { KubbFile } from "@kubb/fabric-core/types";
2
+ import { Fabric } from "@kubb/react-fabric";
3
3
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
4
  import BaseOas from "oas";
5
5
  import { Operation } from "oas/operation";
@@ -147,6 +147,8 @@ interface KubbEvents {
147
147
  id?: string;
148
148
  command: string;
149
149
  args?: readonly string[];
150
+ success: boolean;
151
+ error: Error | null;
150
152
  }];
151
153
  /**
152
154
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1161,4 +1163,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1161
1163
  };
1162
1164
  //#endregion
1163
1165
  export { OperationSchemas as a, Oas as c, Output as d, PluginFactoryOptions as f, Include as i, contentType as l, UserPluginWithLifeCycle as m, ReactGenerator as n, Override as o, ResolveNameParams as p, Exclude$1 as r, ResolvePathOptions as s, Generator as t, Group as u };
1164
- //# sourceMappingURL=index-CBqa0LV5.d.ts.map
1166
+ //# sourceMappingURL=index-DSbvNlVi.d.cts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-BTxiFtLf.cjs";
2
- import { n as PluginMcp, t as Options } from "./types-BSHA4r7i.cjs";
1
+ import { m as UserPluginWithLifeCycle } from "./index-DSbvNlVi.cjs";
2
+ import { n as PluginMcp, t as Options } from "./types-BfSEwsMt.cjs";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginMcpName = "plugin-mcp";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-CBqa0LV5.js";
2
- import { n as PluginMcp, t as Options } from "./types-C-T02h7R.js";
1
+ import { m as UserPluginWithLifeCycle } from "./index-Bh7MsqBu.js";
2
+ import { n as PluginMcp, t as Options } from "./types-Camk6ChE.js";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginMcpName = "plugin-mcp";
@@ -1,4 +1,4 @@
1
- import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-BTxiFtLf.cjs";
1
+ import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-DSbvNlVi.cjs";
2
2
 
3
3
  //#region ../plugin-client/src/types.d.ts
4
4
 
@@ -180,4 +180,4 @@ type ResolvedOptions = {
180
180
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
181
181
  //#endregion
182
182
  export { PluginMcp as n, Options as t };
183
- //# sourceMappingURL=types-BSHA4r7i.d.cts.map
183
+ //# sourceMappingURL=types-BfSEwsMt.d.cts.map
@@ -1,4 +1,4 @@
1
- import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-CBqa0LV5.js";
1
+ import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-Bh7MsqBu.js";
2
2
 
3
3
  //#region ../plugin-client/src/types.d.ts
4
4
 
@@ -180,4 +180,4 @@ type ResolvedOptions = {
180
180
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
181
181
  //#endregion
182
182
  export { PluginMcp as n, Options as t };
183
- //# sourceMappingURL=types-C-T02h7R.d.ts.map
183
+ //# sourceMappingURL=types-Camk6ChE.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-mcp",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Generator mcp",
5
5
  "keywords": [
6
6
  "typescript",
@@ -69,13 +69,13 @@
69
69
  }
70
70
  ],
71
71
  "dependencies": {
72
- "@kubb/react-fabric": "0.9.0",
73
- "@kubb/core": "4.13.0",
74
- "@kubb/plugin-client": "4.13.0",
75
- "@kubb/oas": "4.13.0",
76
- "@kubb/plugin-oas": "4.13.0",
77
- "@kubb/plugin-ts": "4.13.0",
78
- "@kubb/plugin-zod": "4.13.0"
72
+ "@kubb/react-fabric": "0.9.2",
73
+ "@kubb/core": "4.14.0",
74
+ "@kubb/oas": "4.14.0",
75
+ "@kubb/plugin-client": "4.14.0",
76
+ "@kubb/plugin-oas": "4.14.0",
77
+ "@kubb/plugin-ts": "4.14.0",
78
+ "@kubb/plugin-zod": "4.14.0"
79
79
  },
80
80
  "devDependencies": {},
81
81
  "engines": {