opc-agent 4.0.15 → 4.0.17

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.
@@ -352,7 +352,9 @@ class AgentRuntime {
352
352
  console.log(` Studio: http://localhost:${studioPort}`);
353
353
  }
354
354
  catch (e) {
355
- this.logger.debug('Studio UI not available: ' + (e?.message || ''));
355
+ const msg = e?.message || String(e);
356
+ this.logger.warn('Studio UI failed to start: ' + msg);
357
+ console.log(` Studio: ⚠️ failed - ${msg}`);
356
358
  }
357
359
  }
358
360
  async stop() {
@@ -2310,13 +2310,8 @@
2310
2310
  let frCreatedAgentId = null;
2311
2311
 
2312
2312
  async function checkFirstRun() {
2313
- try {
2314
- const res = await fetch(`${API}/api/first-run/status`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
4
4
  "description": "Open Agent Framework — Build, test, and run AI Agents for business workstations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -330,7 +330,9 @@ export class AgentRuntime {
330
330
  this.logger.info(`Studio UI ready → http://localhost:${studioPort}`);
331
331
  console.log(` Studio: http://localhost:${studioPort}`);
332
332
  } catch (e: any) {
333
- this.logger.debug('Studio UI not available: ' + (e?.message || ''));
333
+ const msg = e?.message || String(e);
334
+ this.logger.warn('Studio UI failed to start: ' + msg);
335
+ console.log(` Studio: ⚠️ failed - ${msg}`);
334
336
  }
335
337
  }
336
338
 
@@ -2310,13 +2310,8 @@
2310
2310
  let frCreatedAgentId = null;
2311
2311
 
2312
2312
  async function checkFirstRun() {
2313
- try {
2314
- const res = await fetch(`${API}/api/first-run/status`);
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) {