opc-agent 4.0.16 → 4.0.18
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/studio/server.js
CHANGED
|
@@ -105,7 +105,7 @@ class StudioServer {
|
|
|
105
105
|
if (!(0, fs_1.existsSync)(cfgPath))
|
|
106
106
|
(0, fs_1.writeFileSync)(cfgPath, JSON.stringify({}, null, 2));
|
|
107
107
|
this.server = (0, http_1.createServer)((req, res) => this.handleRequest(req, res));
|
|
108
|
-
this.server.listen(this.config.port);
|
|
108
|
+
this.server.listen(this.config.port, '0.0.0.0');
|
|
109
109
|
this.cronEngine.start();
|
|
110
110
|
console.log(`🎨 OPC Studio: http://localhost:${this.config.port}`);
|
|
111
111
|
}
|
|
@@ -2310,13 +2310,8 @@
|
|
|
2310
2310
|
let frCreatedAgentId = null;
|
|
2311
2311
|
|
|
2312
2312
|
async function checkFirstRun() {
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
const data = await res.json();
|
|
2316
|
-
if (data.firstRun) {
|
|
2317
|
-
showFirstRunWizard(data);
|
|
2318
|
-
}
|
|
2319
|
-
} catch {}
|
|
2313
|
+
// Skip first-run wizard — agents are configured via init
|
|
2314
|
+
return;
|
|
2320
2315
|
}
|
|
2321
2316
|
|
|
2322
2317
|
function showFirstRunWizard(data) {
|
package/package.json
CHANGED
package/src/studio/server.ts
CHANGED
|
@@ -112,7 +112,7 @@ class StudioServer {
|
|
|
112
112
|
if (!existsSync(cfgPath)) writeFileSync(cfgPath, JSON.stringify({}, null, 2));
|
|
113
113
|
|
|
114
114
|
this.server = createServer((req, res) => this.handleRequest(req, res));
|
|
115
|
-
this.server.listen(this.config.port);
|
|
115
|
+
this.server.listen(this.config.port, '0.0.0.0');
|
|
116
116
|
this.cronEngine.start();
|
|
117
117
|
console.log(`🎨 OPC Studio: http://localhost:${this.config.port}`);
|
|
118
118
|
}
|
package/src/studio-ui/index.html
CHANGED
|
@@ -2310,13 +2310,8 @@
|
|
|
2310
2310
|
let frCreatedAgentId = null;
|
|
2311
2311
|
|
|
2312
2312
|
async function checkFirstRun() {
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
const data = await res.json();
|
|
2316
|
-
if (data.firstRun) {
|
|
2317
|
-
showFirstRunWizard(data);
|
|
2318
|
-
}
|
|
2319
|
-
} catch {}
|
|
2313
|
+
// Skip first-run wizard — agents are configured via init
|
|
2314
|
+
return;
|
|
2320
2315
|
}
|
|
2321
2316
|
|
|
2322
2317
|
function showFirstRunWizard(data) {
|