@bamboocss/mcp 1.60.1 → 1.60.3
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.
|
@@ -8,7 +8,7 @@ import { resolve } from "node:path";
|
|
|
8
8
|
import * as z from "zod/v4";
|
|
9
9
|
import { statSync } from "node:fs";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.60.
|
|
11
|
+
var version = "1.60.3";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/context-source.ts
|
|
14
14
|
/**
|
|
@@ -245,6 +245,16 @@ function createMcpServer(options) {
|
|
|
245
245
|
* Unheard, that reached the handler `@bamboocss/node` installs for uncaught errors, which logged
|
|
246
246
|
* it — into a pipe without a reader, failing again — and kept the process alive doing so. Losing
|
|
247
247
|
* stderr alone is a client that stopped reading the log, which costs only the log.
|
|
248
|
+
*
|
|
249
|
+
* That needs a write, though, and a client that goes closes stdin first. Nothing listened for it,
|
|
250
|
+
* so a config keeping the event loop busy — a timer, a watcher of its own — kept the server running
|
|
251
|
+
* with no client, until something killed it. Stdin ending is the client gone, so the server leaves.
|
|
252
|
+
*
|
|
253
|
+
* And an uncaught error is the end of it, as Node would have it: the handler `@bamboocss/node`
|
|
254
|
+
* installs logs one and goes on, which suits a watch, but the logger here can be silenced — by
|
|
255
|
+
* `silent`, by the config's `logLevel` — and a server whose state an error left unknown went on
|
|
256
|
+
* answering, saying nothing. It is written to stderr, which a client shows as the server's log,
|
|
257
|
+
* and the server leaves, for the client to start another.
|
|
248
258
|
*/
|
|
249
259
|
let guarded = false;
|
|
250
260
|
function guardStdio() {
|
|
@@ -268,6 +278,17 @@ function guardStdio() {
|
|
|
268
278
|
process.stderr.on("error", (error) => {
|
|
269
279
|
if (!withoutReader(error)) throw error;
|
|
270
280
|
});
|
|
281
|
+
const leave = () => process.exit(0);
|
|
282
|
+
process.stdin.once("end", leave);
|
|
283
|
+
process.stdin.once("close", leave);
|
|
284
|
+
const fatal = (what) => (error) => {
|
|
285
|
+
try {
|
|
286
|
+
process.stderr.write(`Bamboo CSS MCP server: ${what}: ${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
|
|
287
|
+
} catch {}
|
|
288
|
+
process.exit(1);
|
|
289
|
+
};
|
|
290
|
+
process.on("uncaughtException", fatal("uncaught exception"));
|
|
291
|
+
process.on("unhandledRejection", fatal("unhandled rejection"));
|
|
271
292
|
}
|
|
272
293
|
/**
|
|
273
294
|
* Start the MCP server with the given options.
|
|
@@ -31,7 +31,7 @@ let zod_v4 = require("zod/v4");
|
|
|
31
31
|
zod_v4 = __toESM(zod_v4);
|
|
32
32
|
let node_fs = require("node:fs");
|
|
33
33
|
//#region package.json
|
|
34
|
-
var version = "1.60.
|
|
34
|
+
var version = "1.60.3";
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/context-source.ts
|
|
37
37
|
/**
|
|
@@ -268,6 +268,16 @@ function createMcpServer(options) {
|
|
|
268
268
|
* Unheard, that reached the handler `@bamboocss/node` installs for uncaught errors, which logged
|
|
269
269
|
* it — into a pipe without a reader, failing again — and kept the process alive doing so. Losing
|
|
270
270
|
* stderr alone is a client that stopped reading the log, which costs only the log.
|
|
271
|
+
*
|
|
272
|
+
* That needs a write, though, and a client that goes closes stdin first. Nothing listened for it,
|
|
273
|
+
* so a config keeping the event loop busy — a timer, a watcher of its own — kept the server running
|
|
274
|
+
* with no client, until something killed it. Stdin ending is the client gone, so the server leaves.
|
|
275
|
+
*
|
|
276
|
+
* And an uncaught error is the end of it, as Node would have it: the handler `@bamboocss/node`
|
|
277
|
+
* installs logs one and goes on, which suits a watch, but the logger here can be silenced — by
|
|
278
|
+
* `silent`, by the config's `logLevel` — and a server whose state an error left unknown went on
|
|
279
|
+
* answering, saying nothing. It is written to stderr, which a client shows as the server's log,
|
|
280
|
+
* and the server leaves, for the client to start another.
|
|
271
281
|
*/
|
|
272
282
|
let guarded = false;
|
|
273
283
|
function guardStdio() {
|
|
@@ -291,6 +301,17 @@ function guardStdio() {
|
|
|
291
301
|
process.stderr.on("error", (error) => {
|
|
292
302
|
if (!withoutReader(error)) throw error;
|
|
293
303
|
});
|
|
304
|
+
const leave = () => process.exit(0);
|
|
305
|
+
process.stdin.once("end", leave);
|
|
306
|
+
process.stdin.once("close", leave);
|
|
307
|
+
const fatal = (what) => (error) => {
|
|
308
|
+
try {
|
|
309
|
+
process.stderr.write(`Bamboo CSS MCP server: ${what}: ${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
|
|
310
|
+
} catch {}
|
|
311
|
+
process.exit(1);
|
|
312
|
+
};
|
|
313
|
+
process.on("uncaughtException", fatal("uncaught exception"));
|
|
314
|
+
process.on("unhandledRejection", fatal("unhandled rejection"));
|
|
294
315
|
}
|
|
295
316
|
/**
|
|
296
317
|
* Start the MCP server with the given options.
|
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as runMcpCli, t as parseArgs } from "./cli-
|
|
1
|
+
import { n as runMcpCli, t as parseArgs } from "./cli-DEqZJs6p.mjs";
|
|
2
2
|
export { parseArgs, runMcpCli };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cli = require("./cli-
|
|
2
|
+
const require_cli = require("./cli-E4bPmqVQ.cjs");
|
|
3
3
|
exports.createMcpServer = require_cli.createMcpServer;
|
|
4
4
|
exports.runMcpCli = require_cli.runMcpCli;
|
|
5
5
|
exports.startMcpServer = require_cli.startMcpServer;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as startMcpServer, n as runMcpCli, r as createMcpServer } from "./cli-
|
|
1
|
+
import { i as startMcpServer, n as runMcpCli, r as createMcpServer } from "./cli-DEqZJs6p.mjs";
|
|
2
2
|
export { createMcpServer, runMcpCli, startMcpServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/mcp",
|
|
3
|
-
"version": "1.60.
|
|
3
|
+
"version": "1.60.3",
|
|
4
4
|
"description": "MCP server for Bamboo CSS AI assistants",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
42
42
|
"zod": "^4.0.0",
|
|
43
|
-
"@bamboocss/logger": "1.60.
|
|
44
|
-
"@bamboocss/node": "1.60.
|
|
45
|
-
"@bamboocss/token-dictionary": "1.60.
|
|
46
|
-
"@bamboocss/types": "1.60.
|
|
43
|
+
"@bamboocss/logger": "1.60.3",
|
|
44
|
+
"@bamboocss/node": "1.60.3",
|
|
45
|
+
"@bamboocss/token-dictionary": "1.60.3",
|
|
46
|
+
"@bamboocss/types": "1.60.3"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.12.0"
|