bb-browser 0.4.0 → 0.4.1
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/{chunk-CWLDHQGR.js → chunk-H7M4J4CW.js} +2 -9
- package/dist/{chunk-CWLDHQGR.js.map → chunk-H7M4J4CW.js.map} +1 -1
- package/dist/cli.js +11 -3629
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +1 -1
- package/dist/mcp.js +11 -8
- package/dist/mcp.js.map +1 -1
- package/package.json +1 -1
package/dist/daemon.js
CHANGED
package/dist/mcp.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
__export,
|
|
7
7
|
__toESM,
|
|
8
8
|
generateId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H7M4J4CW.js";
|
|
10
10
|
|
|
11
11
|
// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
12
12
|
var require_code = __commonJS({
|
|
@@ -18262,13 +18262,13 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
18262
18262
|
}, true) ?? parseAnyDef(refs)
|
|
18263
18263
|
}), {}) : void 0;
|
|
18264
18264
|
const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? void 0 : options?.name;
|
|
18265
|
-
const
|
|
18265
|
+
const main = parseDef(schema._def, name === void 0 ? refs : {
|
|
18266
18266
|
...refs,
|
|
18267
18267
|
currentPath: [...refs.basePath, refs.definitionPath, name]
|
|
18268
18268
|
}, false) ?? parseAnyDef(refs);
|
|
18269
18269
|
const title = typeof options === "object" && options.name !== void 0 && options.nameStrategy === "title" ? options.name : void 0;
|
|
18270
18270
|
if (title !== void 0) {
|
|
18271
|
-
|
|
18271
|
+
main.title = title;
|
|
18272
18272
|
}
|
|
18273
18273
|
if (refs.flags.hasReferencedOpenAiAnyType) {
|
|
18274
18274
|
if (!definitions) {
|
|
@@ -18289,9 +18289,9 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
18289
18289
|
}
|
|
18290
18290
|
}
|
|
18291
18291
|
const combined = name === void 0 ? definitions ? {
|
|
18292
|
-
...
|
|
18292
|
+
...main,
|
|
18293
18293
|
[refs.definitionPath]: definitions
|
|
18294
|
-
} :
|
|
18294
|
+
} : main : {
|
|
18295
18295
|
$ref: [
|
|
18296
18296
|
...refs.$refStrategy === "relative" ? [] : refs.basePath,
|
|
18297
18297
|
refs.definitionPath,
|
|
@@ -18299,7 +18299,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
18299
18299
|
].join("/"),
|
|
18300
18300
|
[refs.definitionPath]: {
|
|
18301
18301
|
...definitions,
|
|
18302
|
-
[name]:
|
|
18302
|
+
[name]: main
|
|
18303
18303
|
}
|
|
18304
18304
|
};
|
|
18305
18305
|
if (refs.target === "jsonSchema7") {
|
|
@@ -21229,12 +21229,15 @@ server.tool(
|
|
|
21229
21229
|
return textResult(resp.data || `Waited ${time3}ms`);
|
|
21230
21230
|
}
|
|
21231
21231
|
);
|
|
21232
|
-
async function
|
|
21232
|
+
async function startMcpServer() {
|
|
21233
21233
|
const transport = new StdioServerTransport();
|
|
21234
21234
|
await server.connect(transport);
|
|
21235
21235
|
}
|
|
21236
|
-
|
|
21236
|
+
startMcpServer().catch((error2) => {
|
|
21237
21237
|
console.error(error2);
|
|
21238
21238
|
process.exit(1);
|
|
21239
21239
|
});
|
|
21240
|
+
export {
|
|
21241
|
+
startMcpServer
|
|
21242
|
+
};
|
|
21240
21243
|
//# sourceMappingURL=mcp.js.map
|