@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 CHANGED
@@ -2828,9 +2828,15 @@ async function captureHtmlMulti(options) {
2828
2828
  // src/tools/capture.ts
2829
2829
  var registry2 = (0, import_core9.createDefaultRegistry)();
2830
2830
  function openPreview(filePath) {
2831
- const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
2832
- (0, import_child_process.exec)(`${cmd} "${filePath}"`, (err) => {
2833
- if (err) console.error(`[openPreview] failed: ${err.message}`);
2831
+ const cmd = process.platform === "darwin" ? "/usr/bin/open" : process.platform === "win32" ? "start" : "xdg-open";
2832
+ console.error(`[openPreview] opening: ${filePath}`);
2833
+ (0, import_child_process.exec)(`${cmd} "${filePath}"`, (err, _stdout, stderr) => {
2834
+ if (err) {
2835
+ console.error(`[openPreview] exec error: ${err.message}`);
2836
+ }
2837
+ if (stderr) {
2838
+ console.error(`[openPreview] stderr: ${stderr}`);
2839
+ }
2834
2840
  });
2835
2841
  }
2836
2842
  function applyOverrides(sketch, overrides) {
@@ -5517,8 +5523,7 @@ function registerSketchTools(server, state) {
5517
5523
  {
5518
5524
  type: "image",
5519
5525
  data: captureResult.previewJpegBase64,
5520
- mimeType: "image/jpeg",
5521
- annotations: { audience: ["user", "assistant"] }
5526
+ mimeType: "image/jpeg"
5522
5527
  },
5523
5528
  { type: "text", text: JSON.stringify({
5524
5529
  ...result,
@@ -6108,8 +6113,7 @@ function registerCaptureTools(server, state) {
6108
6113
  {
6109
6114
  type: "image",
6110
6115
  data: result.previewJpegBase64,
6111
- mimeType: "image/jpeg",
6112
- annotations: { audience: ["user", "assistant"] }
6116
+ mimeType: "image/jpeg"
6113
6117
  },
6114
6118
  { type: "text", text: JSON.stringify(result.metadata, null, 2) }
6115
6119
  ]
@@ -6140,8 +6144,7 @@ function registerCaptureTools(server, state) {
6140
6144
  content.push({
6141
6145
  type: "image",
6142
6146
  data: item.inlineJpegBase64,
6143
- mimeType: "image/jpeg",
6144
- annotations: { audience: ["user", "assistant"] }
6147
+ mimeType: "image/jpeg"
6145
6148
  });
6146
6149
  content.push({
6147
6150
  type: "text",