stashes 0.1.6 → 0.1.7
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 +6 -6
- package/dist/mcp.js +6 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -633,12 +633,12 @@ async function waitForPort(port, timeout) {
|
|
|
633
633
|
}
|
|
634
634
|
async function captureEphemeralScreenshot(worktreePath, projectPath, stashId, port) {
|
|
635
635
|
const devServer = spawn3({
|
|
636
|
-
cmd: ["npm", "run", "dev"
|
|
636
|
+
cmd: ["npm", "run", "dev"],
|
|
637
637
|
cwd: worktreePath,
|
|
638
638
|
stdin: "ignore",
|
|
639
639
|
stdout: "pipe",
|
|
640
640
|
stderr: "pipe",
|
|
641
|
-
env: { ...process.env, PORT: String(port) }
|
|
641
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
642
642
|
});
|
|
643
643
|
try {
|
|
644
644
|
await waitForPort(port, 60000);
|
|
@@ -837,12 +837,12 @@ async function vary(opts) {
|
|
|
837
837
|
const screenshotGit = simpleGit3(screenshotWorktree.path);
|
|
838
838
|
await screenshotGit.checkout(["-f", stash.branch]);
|
|
839
839
|
const devServer = spawn4({
|
|
840
|
-
cmd: ["npm", "run", "dev"
|
|
840
|
+
cmd: ["npm", "run", "dev"],
|
|
841
841
|
cwd: screenshotWorktree.path,
|
|
842
842
|
stdin: "ignore",
|
|
843
843
|
stdout: "pipe",
|
|
844
844
|
stderr: "pipe",
|
|
845
|
-
env: { ...process.env, PORT: String(port) }
|
|
845
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
846
846
|
});
|
|
847
847
|
try {
|
|
848
848
|
await waitForPort2(port, 60000);
|
|
@@ -1114,12 +1114,12 @@ ${sourceCode.substring(0, 3000)}
|
|
|
1114
1114
|
async startPreviewServer(previewPath) {
|
|
1115
1115
|
const port = this.worktreeManager.getPreviewPort();
|
|
1116
1116
|
this.previewServer = Bun.spawn({
|
|
1117
|
-
cmd: ["npm", "run", "dev"
|
|
1117
|
+
cmd: ["npm", "run", "dev"],
|
|
1118
1118
|
cwd: previewPath,
|
|
1119
1119
|
stdin: "ignore",
|
|
1120
1120
|
stdout: "pipe",
|
|
1121
1121
|
stderr: "pipe",
|
|
1122
|
-
env: { ...process.env, PORT: String(port) }
|
|
1122
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
1123
1123
|
});
|
|
1124
1124
|
await this.waitForPort(port, 60000);
|
|
1125
1125
|
}
|
package/dist/mcp.js
CHANGED
|
@@ -569,12 +569,12 @@ async function waitForPort(port, timeout) {
|
|
|
569
569
|
}
|
|
570
570
|
async function captureEphemeralScreenshot(worktreePath, projectPath, stashId, port) {
|
|
571
571
|
const devServer = spawn3({
|
|
572
|
-
cmd: ["npm", "run", "dev"
|
|
572
|
+
cmd: ["npm", "run", "dev"],
|
|
573
573
|
cwd: worktreePath,
|
|
574
574
|
stdin: "ignore",
|
|
575
575
|
stdout: "pipe",
|
|
576
576
|
stderr: "pipe",
|
|
577
|
-
env: { ...process.env, PORT: String(port) }
|
|
577
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
578
578
|
});
|
|
579
579
|
try {
|
|
580
580
|
await waitForPort(port, 60000);
|
|
@@ -773,12 +773,12 @@ async function vary(opts) {
|
|
|
773
773
|
const screenshotGit = simpleGit3(screenshotWorktree.path);
|
|
774
774
|
await screenshotGit.checkout(["-f", stash.branch]);
|
|
775
775
|
const devServer = spawn4({
|
|
776
|
-
cmd: ["npm", "run", "dev"
|
|
776
|
+
cmd: ["npm", "run", "dev"],
|
|
777
777
|
cwd: screenshotWorktree.path,
|
|
778
778
|
stdin: "ignore",
|
|
779
779
|
stdout: "pipe",
|
|
780
780
|
stderr: "pipe",
|
|
781
|
-
env: { ...process.env, PORT: String(port) }
|
|
781
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
782
782
|
});
|
|
783
783
|
try {
|
|
784
784
|
await waitForPort2(port, 60000);
|
|
@@ -1244,12 +1244,12 @@ ${sourceCode.substring(0, 3000)}
|
|
|
1244
1244
|
async startPreviewServer(previewPath) {
|
|
1245
1245
|
const port = this.worktreeManager.getPreviewPort();
|
|
1246
1246
|
this.previewServer = Bun.spawn({
|
|
1247
|
-
cmd: ["npm", "run", "dev"
|
|
1247
|
+
cmd: ["npm", "run", "dev"],
|
|
1248
1248
|
cwd: previewPath,
|
|
1249
1249
|
stdin: "ignore",
|
|
1250
1250
|
stdout: "pipe",
|
|
1251
1251
|
stderr: "pipe",
|
|
1252
|
-
env: { ...process.env, PORT: String(port) }
|
|
1252
|
+
env: { ...process.env, PORT: String(port), BROWSER: "none" }
|
|
1253
1253
|
});
|
|
1254
1254
|
await this.waitForPort(port, 60000);
|
|
1255
1255
|
}
|