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 +20 -13
- 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;
|
|
@@ -3308,13 +3313,11 @@ async function agentRepl() {
|
|
|
3308
3313
|
continue;
|
|
3309
3314
|
}
|
|
3310
3315
|
if (input === "/dashboard" || input === "/dash") {
|
|
3311
|
-
console.log(chalk12.gray(
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
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: "
|
|
3404
|
-
{ id: "jeju", name: "
|
|
3405
|
-
{ id: "lotte", name: "
|
|
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.
|
|
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.
|
|
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}`));
|