@kubb/mcp 5.0.0-beta.93 → 5.0.0-beta.95
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/index.cjs +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -38,7 +38,7 @@ let node_module = require("node:module");
|
|
|
38
38
|
let node_process = require("node:process");
|
|
39
39
|
node_process = __toESM(node_process, 1);
|
|
40
40
|
//#region package.json
|
|
41
|
-
var version = "5.0.0-beta.
|
|
41
|
+
var version = "5.0.0-beta.95";
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/schemas/generateSchema.ts
|
|
44
44
|
const generateSchema = valibot.object({
|
|
@@ -147,14 +147,11 @@ function resolvePlugins(pluginsFlag) {
|
|
|
147
147
|
return availablePlugins.filter((plugin) => requested.includes(plugin.value));
|
|
148
148
|
}
|
|
149
149
|
function generateConfigFile({ selectedPlugins, inputPath, outputPath }) {
|
|
150
|
-
return `import { defineConfig } from 'kubb'
|
|
150
|
+
return `import { defineConfig } from 'kubb/config'
|
|
151
151
|
${selectedPlugins.map((plugin) => `import { ${plugin.importName} } from '${plugin.packageName}'`).join("\n")}
|
|
152
152
|
|
|
153
153
|
export default defineConfig({
|
|
154
|
-
|
|
155
|
-
input: {
|
|
156
|
-
path: '${inputPath}',
|
|
157
|
-
},
|
|
154
|
+
input: '${inputPath}',
|
|
158
155
|
output: {
|
|
159
156
|
path: '${outputPath}',
|
|
160
157
|
clean: true,
|
|
@@ -6168,6 +6165,7 @@ async function loadUserConfig(configPath, { notify }) {
|
|
|
6168
6165
|
"kubb.config.mts",
|
|
6169
6166
|
"kubb.config.cts",
|
|
6170
6167
|
"kubb.config.js",
|
|
6168
|
+
"kubb.config.mjs",
|
|
6171
6169
|
"kubb.config.cjs"
|
|
6172
6170
|
];
|
|
6173
6171
|
for (const configFileName of configFileNames) {
|
|
@@ -6277,7 +6275,6 @@ const generateTool = (0, tmcp_tool.defineTool)({
|
|
|
6277
6275
|
});
|
|
6278
6276
|
} catch (error) {
|
|
6279
6277
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
6280
|
-
await notify("CONFIG_ERROR", errorMessage);
|
|
6281
6278
|
return tmcp_utils.tool.error(errorMessage);
|
|
6282
6279
|
}
|
|
6283
6280
|
const config = {
|