@genart-dev/mcp-server 0.4.9 → 0.4.10
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 +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/lib.cjs +12 -9
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +12 -9
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/lib.cjs
CHANGED
|
@@ -2529,9 +2529,15 @@ async function captureHtmlMulti(options) {
|
|
|
2529
2529
|
// src/tools/capture.ts
|
|
2530
2530
|
var registry2 = (0, import_core8.createDefaultRegistry)();
|
|
2531
2531
|
function openPreview(filePath) {
|
|
2532
|
-
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2533
|
-
|
|
2534
|
-
|
|
2532
|
+
const cmd = process.platform === "darwin" ? "/usr/bin/open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2533
|
+
console.error(`[openPreview] opening: ${filePath}`);
|
|
2534
|
+
(0, import_child_process.exec)(`${cmd} "${filePath}"`, (err, _stdout, stderr) => {
|
|
2535
|
+
if (err) {
|
|
2536
|
+
console.error(`[openPreview] exec error: ${err.message}`);
|
|
2537
|
+
}
|
|
2538
|
+
if (stderr) {
|
|
2539
|
+
console.error(`[openPreview] stderr: ${stderr}`);
|
|
2540
|
+
}
|
|
2535
2541
|
});
|
|
2536
2542
|
}
|
|
2537
2543
|
function applyOverrides(sketch, overrides) {
|
|
@@ -5218,8 +5224,7 @@ function registerSketchTools(server, state) {
|
|
|
5218
5224
|
{
|
|
5219
5225
|
type: "image",
|
|
5220
5226
|
data: captureResult.previewJpegBase64,
|
|
5221
|
-
mimeType: "image/jpeg"
|
|
5222
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5227
|
+
mimeType: "image/jpeg"
|
|
5223
5228
|
},
|
|
5224
5229
|
{ type: "text", text: JSON.stringify({
|
|
5225
5230
|
...result,
|
|
@@ -5809,8 +5814,7 @@ function registerCaptureTools(server, state) {
|
|
|
5809
5814
|
{
|
|
5810
5815
|
type: "image",
|
|
5811
5816
|
data: result.previewJpegBase64,
|
|
5812
|
-
mimeType: "image/jpeg"
|
|
5813
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5817
|
+
mimeType: "image/jpeg"
|
|
5814
5818
|
},
|
|
5815
5819
|
{ type: "text", text: JSON.stringify(result.metadata, null, 2) }
|
|
5816
5820
|
]
|
|
@@ -5841,8 +5845,7 @@ function registerCaptureTools(server, state) {
|
|
|
5841
5845
|
content.push({
|
|
5842
5846
|
type: "image",
|
|
5843
5847
|
data: item.inlineJpegBase64,
|
|
5844
|
-
mimeType: "image/jpeg"
|
|
5845
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5848
|
+
mimeType: "image/jpeg"
|
|
5846
5849
|
});
|
|
5847
5850
|
content.push({
|
|
5848
5851
|
type: "text",
|