vite-plugin-opencode-assistant 1.0.86 → 1.0.88
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/api.mjs +1 -1
- package/lib/client.js +2796 -2971
- package/lib/core/api.cjs +2 -1
- package/package.json +5 -5
package/lib/core/api.cjs
CHANGED
|
@@ -70,6 +70,7 @@ __export(api_exports, {
|
|
|
70
70
|
module.exports = __toCommonJS(api_exports);
|
|
71
71
|
var import_http = __toESM(require("http"));
|
|
72
72
|
var import_shared = require("@vite-plugin-opencode-assistant/shared");
|
|
73
|
+
var import_node = require("@vite-plugin-opencode-assistant/shared/node");
|
|
73
74
|
const log = (0, import_shared.createLogger)("API");
|
|
74
75
|
class OpenCodeAPI {
|
|
75
76
|
constructor(hostname, getPort, getProxyPort, warmupChromeMcpConfig = false, chromeDevtoolsPort = import_shared.CHROME_DEVTOOLS_PORT) {
|
|
@@ -304,7 +305,7 @@ class OpenCodeAPI {
|
|
|
304
305
|
return __async(this, null, function* () {
|
|
305
306
|
const timer = log.timer(`${operation}WarmupChromeMcp`, { viteOrigin, operation });
|
|
306
307
|
let warmupSessionId = null;
|
|
307
|
-
const chromeAvailable = yield (0,
|
|
308
|
+
const chromeAvailable = yield (0, import_node.checkChromeDevToolsAvailable)(this.chromeDevtoolsPort);
|
|
308
309
|
if (!chromeAvailable) {
|
|
309
310
|
const error = new import_shared.ChromeMcpWarmupError(
|
|
310
311
|
import_shared.ChromeMcpWarmupErrorType.CHROME_NOT_CONNECTED,
|
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.88",
|
|
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,15 +37,15 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"unplugin-vue-inspector": "^3.0.0",
|
|
39
39
|
"execa": "^9.6.1",
|
|
40
|
-
"@vite-plugin-opencode-assistant/
|
|
41
|
-
"@vite-plugin-opencode-assistant/
|
|
42
|
-
"@vite-plugin-opencode-assistant/shared": "1.0.
|
|
40
|
+
"@vite-plugin-opencode-assistant/opencode": "1.0.88",
|
|
41
|
+
"@vite-plugin-opencode-assistant/components": "1.0.88",
|
|
42
|
+
"@vite-plugin-opencode-assistant/shared": "1.0.88"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vite": ">=5.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vite-plugin-opencode-assistant/client": "1.0.
|
|
48
|
+
"@vite-plugin-opencode-assistant/client": "1.0.88"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "pagoda-cli build && vite build -c vite.client.config.ts",
|