openxgen 2.1.0 → 2.1.1
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 +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1370,7 +1370,12 @@ function Dashboard() {
|
|
|
1370
1370
|
] });
|
|
1371
1371
|
}
|
|
1372
1372
|
async function startInkDashboard() {
|
|
1373
|
-
|
|
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;
|
|
@@ -3309,11 +3314,16 @@ async function agentRepl() {
|
|
|
3309
3314
|
}
|
|
3310
3315
|
if (input === "/dashboard" || input === "/dash") {
|
|
3311
3316
|
console.log(chalk12.gray(" \uB300\uC2DC\uBCF4\uB4DC \uC5F4\uAE30...\n"));
|
|
3317
|
+
rl.pause();
|
|
3312
3318
|
mcpManager?.stopAll();
|
|
3319
|
+
try {
|
|
3320
|
+
const { startInkDashboard: startInkDashboard2 } = await Promise.resolve().then(() => (init_InkDashboard(), InkDashboard_exports));
|
|
3321
|
+
await startInkDashboard2();
|
|
3322
|
+
} catch (err) {
|
|
3323
|
+
console.log(chalk12.red(` \uB300\uC2DC\uBCF4\uB4DC \uC624\uB958: ${err.message}
|
|
3324
|
+
`));
|
|
3325
|
+
}
|
|
3313
3326
|
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
3327
|
return;
|
|
3318
3328
|
}
|
|
3319
3329
|
messages.push({ role: "user", content: input });
|
|
@@ -3400,11 +3410,11 @@ async function connectServer() {
|
|
|
3400
3410
|
const { addEnvironment: addEnvironment2 } = await Promise.resolve().then(() => (init_store(), store_exports));
|
|
3401
3411
|
console.log(chalk12.bold("\n XGEN \uC11C\uBC84 \uC5F0\uACB0\n"));
|
|
3402
3412
|
const presets = [
|
|
3403
|
-
{ id: "hq", name: "
|
|
3404
|
-
{ id: "jeju", name: "
|
|
3405
|
-
{ id: "lotte", name: "
|
|
3413
|
+
{ id: "hq", name: "xgen.x2bee.com", url: "https://xgen.x2bee.com", email: "admin@plateer.com" },
|
|
3414
|
+
{ id: "jeju", name: "jeju-xgen.x2bee.com", url: "https://jeju-xgen.x2bee.com", email: "admin@plateer.com" },
|
|
3415
|
+
{ id: "lotte", name: "lotteimall-xgen.x2bee.com", url: "https://lotteimall-xgen.x2bee.com" }
|
|
3406
3416
|
];
|
|
3407
|
-
presets.forEach((p, i) => console.log(` ${chalk12.cyan(`${i + 1}.`)} ${p.
|
|
3417
|
+
presets.forEach((p, i) => console.log(` ${chalk12.cyan(`${i + 1}.`)} ${p.url}`));
|
|
3408
3418
|
console.log(` ${chalk12.cyan("4.")} \uC9C1\uC811 \uC785\uB825`);
|
|
3409
3419
|
console.log();
|
|
3410
3420
|
const choice = await ask(chalk12.cyan(" \u276F "));
|