vite-plugin-opencode-assistant 1.0.77 → 1.0.79
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 +2476 -2466
- 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/package.json +5 -5
|
@@ -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.79",
|
|
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/
|
|
42
|
-
"@vite-plugin-opencode-assistant/components": "1.0.
|
|
40
|
+
"@vite-plugin-opencode-assistant/shared": "1.0.79",
|
|
41
|
+
"@vite-plugin-opencode-assistant/opencode": "1.0.79",
|
|
42
|
+
"@vite-plugin-opencode-assistant/components": "1.0.79"
|
|
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.79"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "pagoda-cli build && vite build -c vite.client.config.ts",
|