stashes 0.1.5 → 0.1.6
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/cli.js +2 -2
- package/dist/mcp.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -578,7 +578,7 @@ async function captureScreenshot(port, projectPath, stashId) {
|
|
|
578
578
|
const stderr = await new Response(proc.stderr).text();
|
|
579
579
|
throw new Error(`Screenshot failed: ${stderr.substring(0, 200)}`);
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return `/api/screenshots/${filename}`;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
// ../core/dist/prompt.js
|
|
@@ -1035,7 +1035,7 @@ ${sourceCode.substring(0, 3000)}
|
|
|
1035
1035
|
case "ready":
|
|
1036
1036
|
this.broadcast({ type: "stash:status", stashId: event.stashId, status: event.type === "ready" ? "ready" : event.type });
|
|
1037
1037
|
if (event.type === "ready" && "screenshotPath" in event && event.screenshotPath) {
|
|
1038
|
-
this.broadcast({ type: "stash:screenshot", stashId: event.stashId, url:
|
|
1038
|
+
this.broadcast({ type: "stash:screenshot", stashId: event.stashId, url: event.screenshotPath });
|
|
1039
1039
|
}
|
|
1040
1040
|
break;
|
|
1041
1041
|
case "error":
|
package/dist/mcp.js
CHANGED
|
@@ -514,7 +514,7 @@ async function captureScreenshot(port, projectPath, stashId) {
|
|
|
514
514
|
const stderr = await new Response(proc.stderr).text();
|
|
515
515
|
throw new Error(`Screenshot failed: ${stderr.substring(0, 200)}`);
|
|
516
516
|
}
|
|
517
|
-
return
|
|
517
|
+
return `/api/screenshots/${filename}`;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
// ../core/dist/prompt.js
|
|
@@ -1165,7 +1165,7 @@ ${sourceCode.substring(0, 3000)}
|
|
|
1165
1165
|
case "ready":
|
|
1166
1166
|
this.broadcast({ type: "stash:status", stashId: event.stashId, status: event.type === "ready" ? "ready" : event.type });
|
|
1167
1167
|
if (event.type === "ready" && "screenshotPath" in event && event.screenshotPath) {
|
|
1168
|
-
this.broadcast({ type: "stash:screenshot", stashId: event.stashId, url:
|
|
1168
|
+
this.broadcast({ type: "stash:screenshot", stashId: event.stashId, url: event.screenshotPath });
|
|
1169
1169
|
}
|
|
1170
1170
|
break;
|
|
1171
1171
|
case "error":
|