@kubb/plugin-mcp 4.14.0 → 4.15.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-DSbvNlVi.cjs";
1
+ import { a as OperationSchemas } from "./index-BvibV0mn.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-Bh7MsqBu.js";
1
+ import { a as OperationSchemas } from "./index-B7xNcUTE.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-DSbvNlVi.cjs";
2
- import { n as PluginMcp } from "./types-BfSEwsMt.cjs";
1
+ import { n as ReactGenerator } from "./index-BvibV0mn.cjs";
2
+ import { n as PluginMcp } from "./types-CK6LhrM2.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-Bh7MsqBu.js";
2
- import { n as PluginMcp } from "./types-Camk6ChE.js";
1
+ import { n as ReactGenerator } from "./index-B7xNcUTE.js";
2
+ import { n as PluginMcp } from "./types-B_BpDnol.js";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -357,6 +357,13 @@ type Config<TInput = Input> = {
357
357
  * @default 'simple'
358
358
  */
359
359
  defaultBanner?: 'simple' | 'full' | false;
360
+ /**
361
+ * Whether to override existing external files if they already exist.
362
+ * When setting the option in the global configuration, all plugins inherit the same behavior by default.
363
+ * However, all plugins also have an `output.override` option, which can be used to override the behavior for a specific plugin.
364
+ * @default false
365
+ */
366
+ override?: boolean;
360
367
  };
361
368
  /**
362
369
  * An array of Kubb plugins that will be used in the generation.
@@ -544,6 +551,11 @@ type Output<TOptions> = {
544
551
  * Add a footer text in the beginning of every file
545
552
  */
546
553
  footer?: string | ((options: TOptions) => string);
554
+ /**
555
+ * Whether to override existing external files if they already exist.
556
+ * @default false
557
+ */
558
+ override?: boolean;
547
559
  };
548
560
  type GroupContext = {
549
561
  group: string;
@@ -827,9 +839,11 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
827
839
  */
828
840
  plugin: Plugin<TPluginOptions>;
829
841
  mode: KubbFile.Mode;
842
+ UNSTABLE_NAMING?: true;
830
843
  };
831
844
  declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
832
845
  #private;
846
+ getOptions(operation: Operation$1, method: HttpMethod): Partial<TPluginOptions['resolvedOptions']>;
833
847
  getSchemas(operation: Operation$1, {
834
848
  resolveName
835
849
  }?: {
@@ -1163,4 +1177,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1163
1177
  };
1164
1178
  //#endregion
1165
1179
  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 };
1166
- //# sourceMappingURL=index-Bh7MsqBu.d.ts.map
1180
+ //# sourceMappingURL=index-B7xNcUTE.d.ts.map
@@ -357,6 +357,13 @@ type Config<TInput = Input> = {
357
357
  * @default 'simple'
358
358
  */
359
359
  defaultBanner?: 'simple' | 'full' | false;
360
+ /**
361
+ * Whether to override existing external files if they already exist.
362
+ * When setting the option in the global configuration, all plugins inherit the same behavior by default.
363
+ * However, all plugins also have an `output.override` option, which can be used to override the behavior for a specific plugin.
364
+ * @default false
365
+ */
366
+ override?: boolean;
360
367
  };
361
368
  /**
362
369
  * An array of Kubb plugins that will be used in the generation.
@@ -544,6 +551,11 @@ type Output<TOptions> = {
544
551
  * Add a footer text in the beginning of every file
545
552
  */
546
553
  footer?: string | ((options: TOptions) => string);
554
+ /**
555
+ * Whether to override existing external files if they already exist.
556
+ * @default false
557
+ */
558
+ override?: boolean;
547
559
  };
548
560
  type GroupContext = {
549
561
  group: string;
@@ -827,9 +839,11 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
827
839
  */
828
840
  plugin: Plugin<TPluginOptions>;
829
841
  mode: KubbFile.Mode;
842
+ UNSTABLE_NAMING?: true;
830
843
  };
831
844
  declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
832
845
  #private;
846
+ getOptions(operation: Operation$1, method: HttpMethod): Partial<TPluginOptions['resolvedOptions']>;
833
847
  getSchemas(operation: Operation$1, {
834
848
  resolveName
835
849
  }?: {
@@ -1163,4 +1177,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1163
1177
  };
1164
1178
  //#endregion
1165
1179
  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 };
1166
- //# sourceMappingURL=index-DSbvNlVi.d.cts.map
1180
+ //# sourceMappingURL=index-BvibV0mn.d.cts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-DSbvNlVi.cjs";
2
- import { n as PluginMcp, t as Options } from "./types-BfSEwsMt.cjs";
1
+ import { m as UserPluginWithLifeCycle } from "./index-BvibV0mn.cjs";
2
+ import { n as PluginMcp, t as Options } from "./types-CK6LhrM2.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-Bh7MsqBu.js";
2
- import { n as PluginMcp, t as Options } from "./types-Camk6ChE.js";
1
+ import { m as UserPluginWithLifeCycle } from "./index-B7xNcUTE.js";
2
+ import { n as PluginMcp, t as Options } from "./types-B_BpDnol.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-Bh7MsqBu.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-B7xNcUTE.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-Camk6ChE.d.ts.map
183
+ //# sourceMappingURL=types-B_BpDnol.d.ts.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-DSbvNlVi.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-BvibV0mn.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-BfSEwsMt.d.cts.map
183
+ //# sourceMappingURL=types-CK6LhrM2.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-mcp",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
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.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"
73
+ "@kubb/core": "4.15.0",
74
+ "@kubb/oas": "4.15.0",
75
+ "@kubb/plugin-client": "4.15.0",
76
+ "@kubb/plugin-oas": "4.15.0",
77
+ "@kubb/plugin-ts": "4.15.0",
78
+ "@kubb/plugin-zod": "4.15.0"
79
79
  },
80
80
  "devDependencies": {},
81
81
  "engines": {