vite-plugin-opencode-assistant 1.0.77 → 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.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;
|
|
@@ -504,7 +504,7 @@ function startProxyServer(targetUrl, port, options = {}) {
|
|
|
504
504
|
});
|
|
505
505
|
server.timeout = 0;
|
|
506
506
|
server.keepAliveTimeout = 0;
|
|
507
|
-
server.listen(port, () => {
|
|
507
|
+
server.listen(port, options.hostname || void 0, () => {
|
|
508
508
|
const address = server.address();
|
|
509
509
|
const actualPort = typeof address === "object" && address ? address.port : port;
|
|
510
510
|
log.debug(`Proxy server started on port ${actualPort} -> ${targetUrl}`);
|
package/lib/core/service.cjs
CHANGED
|
@@ -210,7 +210,8 @@ Please install OpenCode first:
|
|
|
210
210
|
const result = yield (0, import_proxy_server.startProxyServer)(webUrl, this.actualProxyPort, {
|
|
211
211
|
theme: this.config.theme,
|
|
212
212
|
language: this.config.language,
|
|
213
|
-
settings: this.config.settings
|
|
213
|
+
settings: this.config.settings,
|
|
214
|
+
hostname: this.config.hostname
|
|
214
215
|
});
|
|
215
216
|
this.proxyServer = result.server;
|
|
216
217
|
if (result.actualPort !== this.actualProxyPort) {
|
|
@@ -228,7 +229,8 @@ Please install OpenCode first:
|
|
|
228
229
|
const result = yield (0, import_proxy_server.startProxyServer)(webUrl, nextPort, {
|
|
229
230
|
theme: this.config.theme,
|
|
230
231
|
language: this.config.language,
|
|
231
|
-
settings: this.config.settings
|
|
232
|
+
settings: this.config.settings,
|
|
233
|
+
hostname: this.config.hostname
|
|
232
234
|
});
|
|
233
235
|
this.proxyServer = result.server;
|
|
234
236
|
this.actualProxyPort = result.actualPort;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-opencode-assistant",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"description": "Embed OpenCode Web UI in your Vite dev server for real-time code modification and preview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.cjs",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"unplugin-vue-inspector": "^2.4.0",
|
|
39
39
|
"execa": "^9.6.1",
|
|
40
|
-
"@vite-plugin-opencode-assistant/
|
|
41
|
-
"@vite-plugin-opencode-assistant/shared": "1.0.
|
|
42
|
-
"@vite-plugin-opencode-assistant/
|
|
40
|
+
"@vite-plugin-opencode-assistant/components": "1.0.78",
|
|
41
|
+
"@vite-plugin-opencode-assistant/shared": "1.0.78",
|
|
42
|
+
"@vite-plugin-opencode-assistant/opencode": "1.0.78"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vite": ">=4.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/chrome": "^0.0.268",
|
|
49
|
-
"@vite-plugin-opencode-assistant/client": "1.0.
|
|
49
|
+
"@vite-plugin-opencode-assistant/client": "1.0.78"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "pagoda-cli build && vite build -c vite.client.config.ts",
|