vite-plugin-opencode-assistant 1.0.76 → 1.0.78
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/es/core/proxy-server.d.ts +2 -0
- package/es/core/proxy-server.mjs +1 -1
- package/es/core/service.mjs +4 -2
- package/lib/client.js +1825 -1802
- package/lib/core/proxy-server.cjs +1 -1
- package/lib/core/proxy-server.d.ts +2 -0
- package/lib/core/service.cjs +4 -2
- package/lib/style.css +1 -1
- package/package.json +5 -5
package/es/core/proxy-server.mjs
CHANGED
|
@@ -480,7 +480,7 @@ function startProxyServer(targetUrl, port, options = {}) {
|
|
|
480
480
|
});
|
|
481
481
|
server.timeout = 0;
|
|
482
482
|
server.keepAliveTimeout = 0;
|
|
483
|
-
server.listen(port, () => {
|
|
483
|
+
server.listen(port, options.hostname || void 0, () => {
|
|
484
484
|
const address = server.address();
|
|
485
485
|
const actualPort = typeof address === "object" && address ? address.port : port;
|
|
486
486
|
log.debug(`Proxy server started on port ${actualPort} -> ${targetUrl}`);
|
package/es/core/service.mjs
CHANGED
|
@@ -202,7 +202,8 @@ Please install OpenCode first:
|
|
|
202
202
|
const result = yield startProxyServer(webUrl, this.actualProxyPort, {
|
|
203
203
|
theme: this.config.theme,
|
|
204
204
|
language: this.config.language,
|
|
205
|
-
settings: this.config.settings
|
|
205
|
+
settings: this.config.settings,
|
|
206
|
+
hostname: this.config.hostname
|
|
206
207
|
});
|
|
207
208
|
this.proxyServer = result.server;
|
|
208
209
|
if (result.actualPort !== this.actualProxyPort) {
|
|
@@ -220,7 +221,8 @@ Please install OpenCode first:
|
|
|
220
221
|
const result = yield startProxyServer(webUrl, nextPort, {
|
|
221
222
|
theme: this.config.theme,
|
|
222
223
|
language: this.config.language,
|
|
223
|
-
settings: this.config.settings
|
|
224
|
+
settings: this.config.settings,
|
|
225
|
+
hostname: this.config.hostname
|
|
224
226
|
});
|
|
225
227
|
this.proxyServer = result.server;
|
|
226
228
|
this.actualProxyPort = result.actualPort;
|