openxgen 2.1.0 → 2.2.0

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/index.js CHANGED
@@ -1370,7 +1370,12 @@ function Dashboard() {
1370
1370
  ] });
1371
1371
  }
1372
1372
  async function startInkDashboard() {
1373
- const { waitUntilExit } = render(/* @__PURE__ */ jsx(Dashboard, {}));
1373
+ if (process.stdin.isPaused?.()) {
1374
+ process.stdin.resume();
1375
+ }
1376
+ const { waitUntilExit } = render(/* @__PURE__ */ jsx(Dashboard, {}), {
1377
+ exitOnCtrlC: true
1378
+ });
1374
1379
  await waitUntilExit();
1375
1380
  }
1376
1381
  var TABS;
@@ -3308,13 +3313,11 @@ async function agentRepl() {
3308
3313
  continue;
3309
3314
  }
3310
3315
  if (input === "/dashboard" || input === "/dash") {
3311
- console.log(chalk12.gray(" \uB300\uC2DC\uBCF4\uB4DC \uC5F4\uAE30...\n"));
3312
- mcpManager?.stopAll();
3313
- rl.close();
3314
- if (process.stdin.isTTY) process.stdin.setRawMode?.(false);
3315
- const { startInkDashboard: startInkDashboard2 } = await Promise.resolve().then(() => (init_InkDashboard(), InkDashboard_exports));
3316
- await startInkDashboard2();
3317
- return;
3316
+ console.log(chalk12.gray(`
3317
+ \uB300\uC2DC\uBCF4\uB4DC\uB294 \uBCC4\uB3C4\uB85C \uC2E4\uD589\uD558\uC138\uC694:`));
3318
+ console.log(chalk12.white(` $ xgen dash
3319
+ `));
3320
+ continue;
3318
3321
  }
3319
3322
  messages.push({ role: "user", content: input });
3320
3323
  try {
@@ -3400,11 +3403,11 @@ async function connectServer() {
3400
3403
  const { addEnvironment: addEnvironment2 } = await Promise.resolve().then(() => (init_store(), store_exports));
3401
3404
  console.log(chalk12.bold("\n XGEN \uC11C\uBC84 \uC5F0\uACB0\n"));
3402
3405
  const presets = [
3403
- { id: "hq", name: "\uBCF8\uC0AC", url: "https://xgen.x2bee.com", email: "admin@plateer.com" },
3404
- { id: "jeju", name: "\uC81C\uC8FC", url: "https://jeju-xgen.x2bee.com", email: "admin@plateer.com" },
3405
- { id: "lotte", name: "\uB86F\uB370\uBAB0", url: "https://lotteimall-xgen.x2bee.com" }
3406
+ { id: "hq", name: "xgen.x2bee.com", url: "https://xgen.x2bee.com", email: "admin@plateer.com" },
3407
+ { id: "jeju", name: "jeju-xgen.x2bee.com", url: "https://jeju-xgen.x2bee.com", email: "admin@plateer.com" },
3408
+ { id: "lotte", name: "lotteimall-xgen.x2bee.com", url: "https://lotteimall-xgen.x2bee.com" }
3406
3409
  ];
3407
- presets.forEach((p, i) => console.log(` ${chalk12.cyan(`${i + 1}.`)} ${p.name} ${chalk12.gray(p.url)}`));
3410
+ presets.forEach((p, i) => console.log(` ${chalk12.cyan(`${i + 1}.`)} ${p.url}`));
3408
3411
  console.log(` ${chalk12.cyan("4.")} \uC9C1\uC811 \uC785\uB825`);
3409
3412
  console.log();
3410
3413
  const choice = await ask(chalk12.cyan(" \u276F "));
@@ -3594,7 +3597,7 @@ ${result.answer}
3594
3597
  }
3595
3598
 
3596
3599
  // src/index.ts
3597
- var VERSION = "2.0.0";
3600
+ var VERSION = "2.2.0";
3598
3601
  var LOGO = chalk15.cyan(`
3599
3602
  \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588
3600
3603
  \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588
@@ -3641,6 +3644,10 @@ registerProviderCommand(program);
3641
3644
  registerAgentCommand(program);
3642
3645
  registerDocCommand(program);
3643
3646
  registerOntologyCommand(program);
3647
+ program.command("dash").alias("dashboard").description("XGEN TUI \uB300\uC2DC\uBCF4\uB4DC").action(async () => {
3648
+ const { startInkDashboard: startInkDashboard2 } = await Promise.resolve().then(() => (init_InkDashboard(), InkDashboard_exports));
3649
+ await startInkDashboard2();
3650
+ });
3644
3651
  if (process.argv.length <= 2) {
3645
3652
  agentRepl().catch((err) => {
3646
3653
  console.error(chalk15.red(`\uC624\uB958: ${err.message}`));