@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.js
CHANGED
|
@@ -2511,9 +2511,15 @@ async function captureHtmlMulti(options) {
|
|
|
2511
2511
|
// src/tools/capture.ts
|
|
2512
2512
|
var registry2 = createDefaultRegistry2();
|
|
2513
2513
|
function openPreview(filePath) {
|
|
2514
|
-
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2515
|
-
|
|
2516
|
-
|
|
2514
|
+
const cmd = process.platform === "darwin" ? "/usr/bin/open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2515
|
+
console.error(`[openPreview] opening: ${filePath}`);
|
|
2516
|
+
exec(`${cmd} "${filePath}"`, (err, _stdout, stderr) => {
|
|
2517
|
+
if (err) {
|
|
2518
|
+
console.error(`[openPreview] exec error: ${err.message}`);
|
|
2519
|
+
}
|
|
2520
|
+
if (stderr) {
|
|
2521
|
+
console.error(`[openPreview] stderr: ${stderr}`);
|
|
2522
|
+
}
|
|
2517
2523
|
});
|
|
2518
2524
|
}
|
|
2519
2525
|
function applyOverrides(sketch, overrides) {
|
|
@@ -5213,8 +5219,7 @@ function registerSketchTools(server, state) {
|
|
|
5213
5219
|
{
|
|
5214
5220
|
type: "image",
|
|
5215
5221
|
data: captureResult.previewJpegBase64,
|
|
5216
|
-
mimeType: "image/jpeg"
|
|
5217
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5222
|
+
mimeType: "image/jpeg"
|
|
5218
5223
|
},
|
|
5219
5224
|
{ type: "text", text: JSON.stringify({
|
|
5220
5225
|
...result,
|
|
@@ -5804,8 +5809,7 @@ function registerCaptureTools(server, state) {
|
|
|
5804
5809
|
{
|
|
5805
5810
|
type: "image",
|
|
5806
5811
|
data: result.previewJpegBase64,
|
|
5807
|
-
mimeType: "image/jpeg"
|
|
5808
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5812
|
+
mimeType: "image/jpeg"
|
|
5809
5813
|
},
|
|
5810
5814
|
{ type: "text", text: JSON.stringify(result.metadata, null, 2) }
|
|
5811
5815
|
]
|
|
@@ -5836,8 +5840,7 @@ function registerCaptureTools(server, state) {
|
|
|
5836
5840
|
content.push({
|
|
5837
5841
|
type: "image",
|
|
5838
5842
|
data: item.inlineJpegBase64,
|
|
5839
|
-
mimeType: "image/jpeg"
|
|
5840
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5843
|
+
mimeType: "image/jpeg"
|
|
5841
5844
|
});
|
|
5842
5845
|
content.push({
|
|
5843
5846
|
type: "text",
|