@kubb/cli 4.15.1 → 4.16.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.
- package/dist/{generate-20ljlRne.js → generate-CpBScFFq.js} +2 -2
- package/dist/{generate-20ljlRne.js.map → generate-CpBScFFq.js.map} +1 -1
- package/dist/{generate-J8ueNHkw.cjs → generate-DYIG-CJG.cjs} +2 -2
- package/dist/{generate-J8ueNHkw.cjs.map → generate-DYIG-CJG.cjs.map} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{mcp-D7d_8Bma.cjs → mcp-BJkkfXtR.cjs} +3 -3
- package/dist/{mcp-D7d_8Bma.cjs.map → mcp-BJkkfXtR.cjs.map} +1 -1
- package/dist/{mcp-B5FWDVjp.js → mcp-_LE4TB4z.js} +3 -3
- package/dist/mcp-_LE4TB4z.js.map +1 -0
- package/dist/package-2CH3AUmM.js +6 -0
- package/dist/package-2CH3AUmM.js.map +1 -0
- package/dist/{package-B4hOXz7x.cjs → package-CsRM5Dps.cjs} +2 -2
- package/dist/package-CsRM5Dps.cjs.map +1 -0
- package/package.json +4 -4
- package/src/commands/mcp.ts +2 -2
- package/dist/mcp-B5FWDVjp.js.map +0 -1
- package/dist/package-B4hOXz7x.cjs.map +0 -1
- package/dist/package-BpkL__ZB.js +0 -6
- package/dist/package-BpkL__ZB.js.map +0 -1
|
@@ -24,11 +24,11 @@ const command = defineCommand({
|
|
|
24
24
|
} catch (_e) {
|
|
25
25
|
console.error(`Import of '@kubb/mcp' is required to start the MCP server`);
|
|
26
26
|
}
|
|
27
|
-
const {
|
|
27
|
+
const { run } = mod;
|
|
28
28
|
try {
|
|
29
29
|
console.log("⏳ Starting MCP server...");
|
|
30
30
|
console.warn(pc.yellow("This feature is still under development — use with caution"));
|
|
31
|
-
await
|
|
31
|
+
await run();
|
|
32
32
|
} catch (error) {
|
|
33
33
|
console.error(error?.message);
|
|
34
34
|
}
|
|
@@ -38,4 +38,4 @@ var mcp_default = command;
|
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { mcp_default as default };
|
|
41
|
-
//# sourceMappingURL=mcp-
|
|
41
|
+
//# sourceMappingURL=mcp-_LE4TB4z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-_LE4TB4z.js","names":["mod: any"],"sources":["../src/commands/mcp.ts"],"sourcesContent":["import type { ArgsDef } from 'citty'\nimport { defineCommand, showUsage } from 'citty'\nimport { createJiti } from 'jiti'\nimport pc from 'picocolors'\n\nconst jiti = createJiti(import.meta.url, {\n sourceMaps: true,\n})\n\nconst args = {\n help: {\n type: 'boolean',\n description: 'Show help',\n alias: 'h',\n default: false,\n },\n} as const satisfies ArgsDef\n\nconst command = defineCommand({\n meta: {\n name: 'mcp',\n description: 'Start the server to enable the MCP client to interact with the LLM.',\n },\n args,\n async run(commandContext) {\n const { args } = commandContext\n\n if (args.help) {\n return showUsage(command)\n }\n\n let mod: any\n try {\n mod = await jiti.import('@kubb/mcp', { default: true })\n } catch (_e) {\n console.error(`Import of '@kubb/mcp' is required to start the MCP server`)\n }\n\n const { run } = mod\n try {\n console.log('⏳ Starting MCP server...')\n console.warn(pc.yellow('This feature is still under development — use with caution'))\n await run()\n } catch (error) {\n console.error((error as Error)?.message)\n }\n },\n})\n\nexport default command\n"],"mappings":";;;;;AAKA,MAAM,OAAO,WAAW,OAAO,KAAK,KAAK,EACvC,YAAY,MACb,CAAC;AAWF,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,MAAM;EACN,aAAa;EACd;CACD,MAdW,EACX,MAAM;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,SAAS;EACV,EACF;CAQC,MAAM,IAAI,gBAAgB;EACxB,MAAM,EAAE,SAAS;AAEjB,MAAI,KAAK,KACP,QAAO,UAAU,QAAQ;EAG3B,IAAIA;AACJ,MAAI;AACF,SAAM,MAAM,KAAK,OAAO,aAAa,EAAE,SAAS,MAAM,CAAC;WAChD,IAAI;AACX,WAAQ,MAAM,4DAA4D;;EAG5E,MAAM,EAAE,QAAQ;AAChB,MAAI;AACF,WAAQ,IAAI,2BAA2B;AACvC,WAAQ,KAAK,GAAG,OAAO,6DAA6D,CAAC;AACrF,SAAM,KAAK;WACJ,OAAO;AACd,WAAQ,MAAO,OAAiB,QAAQ;;;CAG7C,CAAC;AAEF,kBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-2CH3AUmM.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "4.
|
|
3
|
+
var version = "4.16.0";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
Object.defineProperty(exports, 'version', {
|
|
@@ -9,4 +9,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
9
9
|
return version;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=package-
|
|
12
|
+
//# sourceMappingURL=package-CsRM5Dps.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-CsRM5Dps.cjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
4
4
|
"description": "Command-line interface for Kubb, enabling easy generation of TypeScript, React-Query, Zod, and other code from OpenAPI specifications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"seedrandom": "^3.0.5",
|
|
63
63
|
"semver": "^7.7.3",
|
|
64
64
|
"string-argv": "^0.3.2",
|
|
65
|
-
"@kubb/core": "4.
|
|
65
|
+
"@kubb/core": "4.16.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/seedrandom": "^3.0.8",
|
|
69
69
|
"@types/semver": "^7.7.1",
|
|
70
70
|
"source-map-support": "^0.5.21",
|
|
71
|
-
"@kubb/mcp": "4.
|
|
72
|
-
"@kubb/oas": "4.
|
|
71
|
+
"@kubb/mcp": "4.16.0",
|
|
72
|
+
"@kubb/oas": "4.16.0"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=20"
|
package/src/commands/mcp.ts
CHANGED
|
@@ -36,11 +36,11 @@ const command = defineCommand({
|
|
|
36
36
|
console.error(`Import of '@kubb/mcp' is required to start the MCP server`)
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
const {
|
|
39
|
+
const { run } = mod
|
|
40
40
|
try {
|
|
41
41
|
console.log('⏳ Starting MCP server...')
|
|
42
42
|
console.warn(pc.yellow('This feature is still under development — use with caution'))
|
|
43
|
-
await
|
|
43
|
+
await run()
|
|
44
44
|
} catch (error) {
|
|
45
45
|
console.error((error as Error)?.message)
|
|
46
46
|
}
|
package/dist/mcp-B5FWDVjp.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-B5FWDVjp.js","names":["mod: any"],"sources":["../src/commands/mcp.ts"],"sourcesContent":["import type { ArgsDef } from 'citty'\nimport { defineCommand, showUsage } from 'citty'\nimport { createJiti } from 'jiti'\nimport pc from 'picocolors'\n\nconst jiti = createJiti(import.meta.url, {\n sourceMaps: true,\n})\n\nconst args = {\n help: {\n type: 'boolean',\n description: 'Show help',\n alias: 'h',\n default: false,\n },\n} as const satisfies ArgsDef\n\nconst command = defineCommand({\n meta: {\n name: 'mcp',\n description: 'Start the server to enable the MCP client to interact with the LLM.',\n },\n args,\n async run(commandContext) {\n const { args } = commandContext\n\n if (args.help) {\n return showUsage(command)\n }\n\n let mod: any\n try {\n mod = await jiti.import('@kubb/mcp', { default: true })\n } catch (_e) {\n console.error(`Import of '@kubb/mcp' is required to start the MCP server`)\n }\n\n const { startServer } = mod\n try {\n console.log('⏳ Starting MCP server...')\n console.warn(pc.yellow('This feature is still under development — use with caution'))\n await startServer()\n } catch (error) {\n console.error((error as Error)?.message)\n }\n },\n})\n\nexport default command\n"],"mappings":";;;;;AAKA,MAAM,OAAO,WAAW,OAAO,KAAK,KAAK,EACvC,YAAY,MACb,CAAC;AAWF,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,MAAM;EACN,aAAa;EACd;CACD,MAdW,EACX,MAAM;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,SAAS;EACV,EACF;CAQC,MAAM,IAAI,gBAAgB;EACxB,MAAM,EAAE,SAAS;AAEjB,MAAI,KAAK,KACP,QAAO,UAAU,QAAQ;EAG3B,IAAIA;AACJ,MAAI;AACF,SAAM,MAAM,KAAK,OAAO,aAAa,EAAE,SAAS,MAAM,CAAC;WAChD,IAAI;AACX,WAAQ,MAAM,4DAA4D;;EAG5E,MAAM,EAAE,gBAAgB;AACxB,MAAI;AACF,WAAQ,IAAI,2BAA2B;AACvC,WAAQ,KAAK,GAAG,OAAO,6DAA6D,CAAC;AACrF,SAAM,aAAa;WACZ,OAAO;AACd,WAAQ,MAAO,OAAiB,QAAQ;;;CAG7C,CAAC;AAEF,kBAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-B4hOXz7x.cjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/package-BpkL__ZB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-BpkL__ZB.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|