@kubb/plugin-mcp 4.19.0 → 4.19.1

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, h as __name } from "./index-Bc9Bo5uU.cjs";
1
+ import { a as OperationSchemas, h as __name } from "./index-Dkj8hJFT.cjs";
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
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { a as OperationSchemas } from "./index-BdZEAHoi.js";
2
+ import { a as OperationSchemas } from "./index-DeJDaV3A.js";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
5
5
 
@@ -1,5 +1,5 @@
1
- import { h as __name, n as ReactGenerator } from "./index-Bc9Bo5uU.cjs";
2
- import { n as PluginMcp } from "./types-ByF4lgWA.cjs";
1
+ import { h as __name, n as ReactGenerator } from "./index-Dkj8hJFT.cjs";
2
+ import { n as PluginMcp } from "./types-BmrdXe4i.cjs";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -1,6 +1,6 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { n as ReactGenerator } from "./index-BdZEAHoi.js";
3
- import { n as PluginMcp } from "./types-Dni3cedL.js";
2
+ import { n as ReactGenerator } from "./index-DeJDaV3A.js";
3
+ import { n as PluginMcp } from "./types-f0xmO4e7.js";
4
4
 
5
5
  //#region src/generators/mcpGenerator.d.ts
6
6
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -1118,6 +1118,11 @@ type SchemaGeneratorOptions = {
1118
1118
  emptySchemaType: 'any' | 'unknown' | 'void';
1119
1119
  enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1120
1120
  enumSuffix?: string;
1121
+ /**
1122
+ * @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
1123
+ * When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
1124
+ * @internal
1125
+ */
1121
1126
  usedEnumNames?: Record<string, number>;
1122
1127
  mapper?: Record<string, string>;
1123
1128
  typed?: boolean;
@@ -1138,6 +1143,7 @@ type SchemaProps$1 = {
1138
1143
  schema: SchemaObject$1 | null;
1139
1144
  name: string | null;
1140
1145
  parentName: string | null;
1146
+ rootName?: string | null;
1141
1147
  };
1142
1148
  declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
1143
1149
  #private;
@@ -1198,4 +1204,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1198
1204
  };
1199
1205
  //#endregion
1200
1206
  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 };
1201
- //# sourceMappingURL=index-BdZEAHoi.d.ts.map
1207
+ //# sourceMappingURL=index-DeJDaV3A.d.ts.map
@@ -1119,6 +1119,11 @@ type SchemaGeneratorOptions = {
1119
1119
  emptySchemaType: 'any' | 'unknown' | 'void';
1120
1120
  enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1121
1121
  enumSuffix?: string;
1122
+ /**
1123
+ * @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
1124
+ * When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
1125
+ * @internal
1126
+ */
1122
1127
  usedEnumNames?: Record<string, number>;
1123
1128
  mapper?: Record<string, string>;
1124
1129
  typed?: boolean;
@@ -1139,6 +1144,7 @@ type SchemaProps$1 = {
1139
1144
  schema: SchemaObject$1 | null;
1140
1145
  name: string | null;
1141
1146
  parentName: string | null;
1147
+ rootName?: string | null;
1142
1148
  };
1143
1149
  declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
1144
1150
  #private;
@@ -1199,4 +1205,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1199
1205
  };
1200
1206
  //#endregion
1201
1207
  export { OperationSchemas as a, Oas as c, Output as d, PluginFactoryOptions as f, __name as h, 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 };
1202
- //# sourceMappingURL=index-Bc9Bo5uU.d.cts.map
1208
+ //# sourceMappingURL=index-Dkj8hJFT.d.cts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { h as __name, m as UserPluginWithLifeCycle } from "./index-Bc9Bo5uU.cjs";
2
- import { n as PluginMcp, t as Options } from "./types-ByF4lgWA.cjs";
1
+ import { h as __name, m as UserPluginWithLifeCycle } from "./index-Dkj8hJFT.cjs";
2
+ import { n as PluginMcp, t as Options } from "./types-BmrdXe4i.cjs";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginMcpName = "plugin-mcp";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { m as UserPluginWithLifeCycle } from "./index-BdZEAHoi.js";
3
- import { n as PluginMcp, t as Options } from "./types-Dni3cedL.js";
2
+ import { m as UserPluginWithLifeCycle } from "./index-DeJDaV3A.js";
3
+ import { n as PluginMcp, t as Options } from "./types-f0xmO4e7.js";
4
4
 
5
5
  //#region src/plugin.d.ts
6
6
  declare const pluginMcpName = "plugin-mcp";
@@ -1,4 +1,4 @@
1
- import { c as Oas, d as Output, f as PluginFactoryOptions, h as __name, 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-Bc9Bo5uU.cjs";
1
+ import { c as Oas, d as Output, f as PluginFactoryOptions, h as __name, 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-Dkj8hJFT.cjs";
2
2
 
3
3
  //#region ../plugin-client/src/types.d.ts
4
4
 
@@ -183,4 +183,4 @@ type ResolvedOptions = {
183
183
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
184
184
  //#endregion
185
185
  export { PluginMcp as n, Options as t };
186
- //# sourceMappingURL=types-ByF4lgWA.d.cts.map
186
+ //# sourceMappingURL=types-BmrdXe4i.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- 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-BdZEAHoi.js";
2
+ 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-DeJDaV3A.js";
3
3
 
4
4
  //#region ../plugin-client/src/types.d.ts
5
5
  type Options$1 = {
@@ -183,4 +183,4 @@ type ResolvedOptions = {
183
183
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
184
184
  //#endregion
185
185
  export { PluginMcp as n, Options as t };
186
- //# sourceMappingURL=types-Dni3cedL.d.ts.map
186
+ //# sourceMappingURL=types-f0xmO4e7.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-mcp",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "description": "Generator mcp",
5
5
  "keywords": [
6
6
  "typescript",
@@ -70,12 +70,12 @@
70
70
  ],
71
71
  "dependencies": {
72
72
  "@kubb/react-fabric": "0.12.4",
73
- "@kubb/core": "4.19.0",
74
- "@kubb/oas": "4.19.0",
75
- "@kubb/plugin-client": "4.19.0",
76
- "@kubb/plugin-oas": "4.19.0",
77
- "@kubb/plugin-ts": "4.19.0",
78
- "@kubb/plugin-zod": "4.19.0"
73
+ "@kubb/core": "4.19.1",
74
+ "@kubb/oas": "4.19.1",
75
+ "@kubb/plugin-client": "4.19.1",
76
+ "@kubb/plugin-oas": "4.19.1",
77
+ "@kubb/plugin-ts": "4.19.1",
78
+ "@kubb/plugin-zod": "4.19.1"
79
79
  },
80
80
  "devDependencies": {},
81
81
  "engines": {