@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/index.js
CHANGED
|
@@ -2830,9 +2830,15 @@ async function captureHtmlMulti(options) {
|
|
|
2830
2830
|
// src/tools/capture.ts
|
|
2831
2831
|
var registry2 = createDefaultRegistry2();
|
|
2832
2832
|
function openPreview(filePath) {
|
|
2833
|
-
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2834
|
-
|
|
2835
|
-
|
|
2833
|
+
const cmd = process.platform === "darwin" ? "/usr/bin/open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
2834
|
+
console.error(`[openPreview] opening: ${filePath}`);
|
|
2835
|
+
exec(`${cmd} "${filePath}"`, (err, _stdout, stderr) => {
|
|
2836
|
+
if (err) {
|
|
2837
|
+
console.error(`[openPreview] exec error: ${err.message}`);
|
|
2838
|
+
}
|
|
2839
|
+
if (stderr) {
|
|
2840
|
+
console.error(`[openPreview] stderr: ${stderr}`);
|
|
2841
|
+
}
|
|
2836
2842
|
});
|
|
2837
2843
|
}
|
|
2838
2844
|
function applyOverrides(sketch, overrides) {
|
|
@@ -5532,8 +5538,7 @@ function registerSketchTools(server, state) {
|
|
|
5532
5538
|
{
|
|
5533
5539
|
type: "image",
|
|
5534
5540
|
data: captureResult.previewJpegBase64,
|
|
5535
|
-
mimeType: "image/jpeg"
|
|
5536
|
-
annotations: { audience: ["user", "assistant"] }
|
|
5541
|
+
mimeType: "image/jpeg"
|
|
5537
5542
|
},
|
|
5538
5543
|
{ type: "text", text: JSON.stringify({
|
|
5539
5544
|
...result,
|
|
@@ -6123,8 +6128,7 @@ function registerCaptureTools(server, state) {
|
|
|
6123
6128
|
{
|
|
6124
6129
|
type: "image",
|
|
6125
6130
|
data: result.previewJpegBase64,
|
|
6126
|
-
mimeType: "image/jpeg"
|
|
6127
|
-
annotations: { audience: ["user", "assistant"] }
|
|
6131
|
+
mimeType: "image/jpeg"
|
|
6128
6132
|
},
|
|
6129
6133
|
{ type: "text", text: JSON.stringify(result.metadata, null, 2) }
|
|
6130
6134
|
]
|
|
@@ -6155,8 +6159,7 @@ function registerCaptureTools(server, state) {
|
|
|
6155
6159
|
content.push({
|
|
6156
6160
|
type: "image",
|
|
6157
6161
|
data: item.inlineJpegBase64,
|
|
6158
|
-
mimeType: "image/jpeg"
|
|
6159
|
-
annotations: { audience: ["user", "assistant"] }
|
|
6162
|
+
mimeType: "image/jpeg"
|
|
6160
6163
|
});
|
|
6161
6164
|
content.push({
|
|
6162
6165
|
type: "text",
|