@kubb/plugin-mcp 4.12.7 → 4.12.9

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-CpxDos9S.cjs";
1
+ import { a as OperationSchemas } from "./index-C6oNjvTC.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-C-LVY3gp.js";
1
+ import { a as OperationSchemas } from "./index-oLv38PAo.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-CpxDos9S.cjs";
2
- import { n as PluginMcp } from "./types-DRW4csOo.cjs";
1
+ import { n as ReactGenerator } from "./index-C6oNjvTC.cjs";
2
+ import { n as PluginMcp } from "./types-BifCa9Oi.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-C-LVY3gp.js";
2
- import { n as PluginMcp } from "./types-D_NljKrY.js";
1
+ import { n as ReactGenerator } from "./index-oLv38PAo.js";
2
+ import { n as PluginMcp } from "./types-CN2KHTPO.js";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -134,21 +134,21 @@ interface KubbEvents {
134
134
  */
135
135
  'hooks:end': [];
136
136
  /**
137
- * Emitted when a single hook execution starts.
138
- */
139
- 'hook:start': [command: string];
140
- /**
141
- * Emitted to execute a hook command (e.g., format or lint).
137
+ * Emitted when a single hook execution starts. (e.g., format or lint).
142
138
  * The callback should be invoked when the command completes.
143
139
  */
144
- 'hook:execute': [{
145
- command: string | URL;
140
+ 'hook:start': [{
141
+ id?: string;
142
+ command: string;
146
143
  args?: readonly string[];
147
- }, cb: () => void];
144
+ }];
148
145
  /**
149
146
  * Emitted when a single hook execution completes.
150
147
  */
151
- 'hook:end': [command: string];
148
+ 'hook:end': [{
149
+ id?: string;
150
+ command: string;
151
+ }];
152
152
  /**
153
153
  * Emitted when a new version of Kubb is available.
154
154
  */
@@ -708,6 +708,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
708
708
  getRequestSchema(operation: Operation): SchemaObject | undefined;
709
709
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
710
710
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
711
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
711
712
  }
712
713
  //#endregion
713
714
  //#region ../plugin-oas/src/types.d.ts
@@ -1160,4 +1161,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1160
1161
  };
1161
1162
  //#endregion
1162
1163
  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 };
1163
- //# sourceMappingURL=index-CpxDos9S.d.cts.map
1164
+ //# sourceMappingURL=index-C6oNjvTC.d.cts.map
@@ -134,21 +134,21 @@ interface KubbEvents {
134
134
  */
135
135
  'hooks:end': [];
136
136
  /**
137
- * Emitted when a single hook execution starts.
138
- */
139
- 'hook:start': [command: string];
140
- /**
141
- * Emitted to execute a hook command (e.g., format or lint).
137
+ * Emitted when a single hook execution starts. (e.g., format or lint).
142
138
  * The callback should be invoked when the command completes.
143
139
  */
144
- 'hook:execute': [{
145
- command: string | URL;
140
+ 'hook:start': [{
141
+ id?: string;
142
+ command: string;
146
143
  args?: readonly string[];
147
- }, cb: () => void];
144
+ }];
148
145
  /**
149
146
  * Emitted when a single hook execution completes.
150
147
  */
151
- 'hook:end': [command: string];
148
+ 'hook:end': [{
149
+ id?: string;
150
+ command: string;
151
+ }];
152
152
  /**
153
153
  * Emitted when a new version of Kubb is available.
154
154
  */
@@ -708,6 +708,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
708
708
  getRequestSchema(operation: Operation): SchemaObject | undefined;
709
709
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
710
710
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
711
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
711
712
  }
712
713
  //#endregion
713
714
  //#region ../plugin-oas/src/types.d.ts
@@ -1160,4 +1161,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1160
1161
  };
1161
1162
  //#endregion
1162
1163
  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 };
1163
- //# sourceMappingURL=index-C-LVY3gp.d.ts.map
1164
+ //# sourceMappingURL=index-oLv38PAo.d.ts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-CpxDos9S.cjs";
2
- import { n as PluginMcp, t as Options } from "./types-DRW4csOo.cjs";
1
+ import { m as UserPluginWithLifeCycle } from "./index-C6oNjvTC.cjs";
2
+ import { n as PluginMcp, t as Options } from "./types-BifCa9Oi.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-C-LVY3gp.js";
2
- import { n as PluginMcp, t as Options } from "./types-D_NljKrY.js";
1
+ import { m as UserPluginWithLifeCycle } from "./index-oLv38PAo.js";
2
+ import { n as PluginMcp, t as Options } from "./types-CN2KHTPO.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-CpxDos9S.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-C6oNjvTC.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-DRW4csOo.d.cts.map
183
+ //# sourceMappingURL=types-BifCa9Oi.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-C-LVY3gp.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-oLv38PAo.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-D_NljKrY.d.ts.map
183
+ //# sourceMappingURL=types-CN2KHTPO.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-mcp",
3
- "version": "4.12.7",
3
+ "version": "4.12.9",
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.7.2",
73
- "@kubb/core": "4.12.7",
74
- "@kubb/oas": "4.12.7",
75
- "@kubb/plugin-client": "4.12.7",
76
- "@kubb/plugin-oas": "4.12.7",
77
- "@kubb/plugin-ts": "4.12.7",
78
- "@kubb/plugin-zod": "4.12.7"
72
+ "@kubb/react-fabric": "0.7.4",
73
+ "@kubb/core": "4.12.9",
74
+ "@kubb/oas": "4.12.9",
75
+ "@kubb/plugin-client": "4.12.9",
76
+ "@kubb/plugin-oas": "4.12.9",
77
+ "@kubb/plugin-ts": "4.12.9",
78
+ "@kubb/plugin-zod": "4.12.9"
79
79
  },
80
80
  "devDependencies": {},
81
81
  "engines": {