@kubb/plugin-mcp 4.12.6 → 4.12.8
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/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +2 -2
- package/dist/generators.d.ts +2 -2
- package/dist/{index-CkVh6UKa.d.cts → index-B7E2dVPx.d.cts} +21 -13
- package/dist/{index-Bg8E5WWf.d.ts → index-BwyYBwa9.d.ts} +21 -13
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-COUCgQPC.d.ts → types-BTusZEGx.d.ts} +2 -2
- package/dist/{types-UMVHNvJx.d.cts → types-Cq6ANmJY.d.cts} +2 -2
- package/package.json +8 -8
package/dist/components.d.cts
CHANGED
package/dist/components.d.ts
CHANGED
package/dist/generators.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactGenerator } from "./index-
|
|
2
|
-
import { n as PluginMcp } from "./types-
|
|
1
|
+
import { n as ReactGenerator } from "./index-B7E2dVPx.cjs";
|
|
2
|
+
import { n as PluginMcp } from "./types-Cq6ANmJY.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/mcpGenerator.d.ts
|
|
5
5
|
declare const mcpGenerator: ReactGenerator<PluginMcp>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactGenerator } from "./index-
|
|
2
|
-
import { n as PluginMcp } from "./types-
|
|
1
|
+
import { n as ReactGenerator } from "./index-BwyYBwa9.js";
|
|
2
|
+
import { n as PluginMcp } from "./types-BTusZEGx.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/mcpGenerator.d.ts
|
|
5
5
|
declare const mcpGenerator: ReactGenerator<PluginMcp>;
|
|
@@ -65,7 +65,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
65
65
|
* console.log('Starting Kubb generation')
|
|
66
66
|
* })
|
|
67
67
|
*
|
|
68
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
68
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
69
69
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
70
70
|
* })
|
|
71
71
|
* ```
|
|
@@ -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:
|
|
145
|
-
|
|
140
|
+
'hook:start': [{
|
|
141
|
+
id?: string;
|
|
142
|
+
command: string;
|
|
146
143
|
args?: readonly string[];
|
|
147
|
-
}
|
|
144
|
+
}];
|
|
148
145
|
/**
|
|
149
146
|
* Emitted when a single hook execution completes.
|
|
150
147
|
*/
|
|
151
|
-
'hook:end': [
|
|
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
|
*/
|
|
@@ -211,8 +211,13 @@ interface KubbEvents {
|
|
|
211
211
|
'plugin:start': [plugin: Plugin];
|
|
212
212
|
/**
|
|
213
213
|
* Emitted when a plugin completes execution.
|
|
214
|
+
* Duration in ms
|
|
214
215
|
*/
|
|
215
|
-
'plugin:end': [plugin: Plugin,
|
|
216
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
217
|
+
duration: number;
|
|
218
|
+
success: boolean;
|
|
219
|
+
error?: Error;
|
|
220
|
+
}];
|
|
216
221
|
/**
|
|
217
222
|
* Emitted when plugin hook progress tracking starts.
|
|
218
223
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
706
711
|
}
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1152,4 +1160,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1152
1160
|
};
|
|
1153
1161
|
//#endregion
|
|
1154
1162
|
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 };
|
|
1155
|
-
//# sourceMappingURL=index-
|
|
1163
|
+
//# sourceMappingURL=index-B7E2dVPx.d.cts.map
|
|
@@ -65,7 +65,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
65
65
|
* console.log('Starting Kubb generation')
|
|
66
66
|
* })
|
|
67
67
|
*
|
|
68
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
68
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
69
69
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
70
70
|
* })
|
|
71
71
|
* ```
|
|
@@ -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:
|
|
145
|
-
|
|
140
|
+
'hook:start': [{
|
|
141
|
+
id?: string;
|
|
142
|
+
command: string;
|
|
146
143
|
args?: readonly string[];
|
|
147
|
-
}
|
|
144
|
+
}];
|
|
148
145
|
/**
|
|
149
146
|
* Emitted when a single hook execution completes.
|
|
150
147
|
*/
|
|
151
|
-
'hook:end': [
|
|
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
|
*/
|
|
@@ -211,8 +211,13 @@ interface KubbEvents {
|
|
|
211
211
|
'plugin:start': [plugin: Plugin];
|
|
212
212
|
/**
|
|
213
213
|
* Emitted when a plugin completes execution.
|
|
214
|
+
* Duration in ms
|
|
214
215
|
*/
|
|
215
|
-
'plugin:end': [plugin: Plugin,
|
|
216
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
217
|
+
duration: number;
|
|
218
|
+
success: boolean;
|
|
219
|
+
error?: Error;
|
|
220
|
+
}];
|
|
216
221
|
/**
|
|
217
222
|
* Emitted when plugin hook progress tracking starts.
|
|
218
223
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
706
711
|
}
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1152,4 +1160,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1152
1160
|
};
|
|
1153
1161
|
//#endregion
|
|
1154
1162
|
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 };
|
|
1155
|
-
//# sourceMappingURL=index-
|
|
1163
|
+
//# sourceMappingURL=index-BwyYBwa9.d.ts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as UserPluginWithLifeCycle } from "./index-
|
|
2
|
-
import { n as PluginMcp, t as Options } from "./types-
|
|
1
|
+
import { m as UserPluginWithLifeCycle } from "./index-B7E2dVPx.cjs";
|
|
2
|
+
import { n as PluginMcp, t as Options } from "./types-Cq6ANmJY.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-
|
|
2
|
-
import { n as PluginMcp, t as Options } from "./types-
|
|
1
|
+
import { m as UserPluginWithLifeCycle } from "./index-BwyYBwa9.js";
|
|
2
|
+
import { n as PluginMcp, t as Options } from "./types-BTusZEGx.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-
|
|
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-BwyYBwa9.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-
|
|
183
|
+
//# sourceMappingURL=types-BTusZEGx.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-
|
|
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-B7E2dVPx.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-
|
|
183
|
+
//# sourceMappingURL=types-Cq6ANmJY.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-mcp",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.8",
|
|
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.
|
|
73
|
-
"@kubb/core": "4.12.
|
|
74
|
-
"@kubb/oas": "4.12.
|
|
75
|
-
"@kubb/plugin-client": "4.12.
|
|
76
|
-
"@kubb/plugin-oas": "4.12.
|
|
77
|
-
"@kubb/plugin-ts": "4.12.
|
|
78
|
-
"@kubb/plugin-zod": "4.12.
|
|
72
|
+
"@kubb/react-fabric": "0.7.4",
|
|
73
|
+
"@kubb/core": "4.12.8",
|
|
74
|
+
"@kubb/oas": "4.12.8",
|
|
75
|
+
"@kubb/plugin-client": "4.12.8",
|
|
76
|
+
"@kubb/plugin-oas": "4.12.8",
|
|
77
|
+
"@kubb/plugin-ts": "4.12.8",
|
|
78
|
+
"@kubb/plugin-zod": "4.12.8"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {},
|
|
81
81
|
"engines": {
|