stashes 0.1.40 → 0.1.42
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
CHANGED
|
@@ -1691,6 +1691,7 @@ class PreviewPool {
|
|
|
1691
1691
|
this.evictOldest();
|
|
1692
1692
|
}
|
|
1693
1693
|
const proxyPort = this.allocatePort();
|
|
1694
|
+
this.usedPorts.add(proxyPort);
|
|
1694
1695
|
const devPort = proxyPort + DEV_PORT_OFFSET;
|
|
1695
1696
|
const worktreePath = await this.worktreeManager.createPreviewForPool(stashId);
|
|
1696
1697
|
const process2 = Bun.spawn({
|
|
@@ -1711,7 +1712,6 @@ class PreviewPool {
|
|
|
1711
1712
|
lastHeartbeat: Date.now()
|
|
1712
1713
|
};
|
|
1713
1714
|
this.entries.set(stashId, entry);
|
|
1714
|
-
this.usedPorts.add(proxyPort);
|
|
1715
1715
|
logger.info("pool", `cold start: ${stashId} dev=:${devPort} proxy=:${proxyPort}`, { poolSize: this.entries.size });
|
|
1716
1716
|
await this.waitForPort(proxyPort, 60000);
|
|
1717
1717
|
return proxyPort;
|
package/dist/mcp.js
CHANGED
|
@@ -1887,6 +1887,7 @@ class PreviewPool {
|
|
|
1887
1887
|
this.evictOldest();
|
|
1888
1888
|
}
|
|
1889
1889
|
const proxyPort = this.allocatePort();
|
|
1890
|
+
this.usedPorts.add(proxyPort);
|
|
1890
1891
|
const devPort = proxyPort + DEV_PORT_OFFSET;
|
|
1891
1892
|
const worktreePath = await this.worktreeManager.createPreviewForPool(stashId);
|
|
1892
1893
|
const process2 = Bun.spawn({
|
|
@@ -1907,7 +1908,6 @@ class PreviewPool {
|
|
|
1907
1908
|
lastHeartbeat: Date.now()
|
|
1908
1909
|
};
|
|
1909
1910
|
this.entries.set(stashId, entry);
|
|
1910
|
-
this.usedPorts.add(proxyPort);
|
|
1911
1911
|
logger.info("pool", `cold start: ${stashId} dev=:${devPort} proxy=:${proxyPort}`, { poolSize: this.entries.size });
|
|
1912
1912
|
await this.waitForPort(proxyPort, 60000);
|
|
1913
1913
|
return proxyPort;
|