@bonginkan/maria 4.1.11 → 4.1.12

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.
@@ -21245,7 +21245,7 @@ var init_package = __esm({
21245
21245
  "package.json"() {
21246
21246
  package_default = {
21247
21247
  name: "@bonginkan/maria",
21248
- version: "4.1.11",
21248
+ version: "4.1.12",
21249
21249
  description: "\u{1F680} MARIA v4.1.4 - Complete Multimodal AI Integration & Enterprise Platform. Revolutionary voice-to-code, image-to-code, and 73 production-ready commands with advanced memory systems. World's first TypeScript AST-powered code generation with GraphRAG intelligence, multilingual support, and dual-architecture cognitive memory. Features zero-error development, OAuth2.0 + PKCE authentication, and military-grade security. Delivers next-generation multimodal development experience with enterprise-grade performance.",
21250
21250
  keywords: [
21251
21251
  "ai",
@@ -32957,6 +32957,13 @@ async function handleLine(line) {
32957
32957
  }
32958
32958
  const consumed = await handleSlash(input3);
32959
32959
  if (consumed) return;
32960
+ const isAuthenticated = await authManager.isAuthenticated();
32961
+ if (!isAuthenticated) {
32962
+ console.log(import_chalk18.default.yellow("\n\u26A0\uFE0F Authentication required for chat features"));
32963
+ console.log(import_chalk18.default.cyan("Please run: /login"));
32964
+ console.log(import_chalk18.default.gray("Or use slash commands like /help, /version"));
32965
+ return;
32966
+ }
32960
32967
  const user = { role: "user", content: input3, timestamp: /* @__PURE__ */ new Date() };
32961
32968
  session.push(user);
32962
32969
  if (store?.addMessage) await store.addMessage(user);
@@ -33014,14 +33021,14 @@ async function startInteractiveSession() {
33014
33021
  } else {
33015
33022
  leftPadding = " ".repeat(FIXED_MARGIN);
33016
33023
  }
33017
- const topBorder = leftPadding + "\u256D" + "\u2500".repeat(boxWidth - 2) + "\u256E";
33018
- const middleLine = leftPadding + "\u2502" + " ".repeat(boxWidth - 2) + "\u2502";
33019
- const bottomBorder = leftPadding + "\u2570" + "\u2500".repeat(boxWidth - 2) + "\u256F";
33020
- console.log(import_chalk18.default.white(topBorder));
33021
- console.log(import_chalk18.default.white(middleLine));
33022
- console.log(import_chalk18.default.white(bottomBorder));
33023
- const prompt = leftPadding + import_chalk18.default.cyan("> ");
33024
- const line = await interactiveCLI.question(prompt);
33024
+ const promptSymbol = "> ";
33025
+ const promptLength = 2;
33026
+ process.stdout.write(leftPadding + import_chalk18.default.white("\u2502 ") + import_chalk18.default.cyan(promptSymbol));
33027
+ const line = await interactiveCLI.question("");
33028
+ const inputLength = line.length + promptLength;
33029
+ const remainingSpace = Math.max(0, boxWidth - inputLength - 4);
33030
+ process.stdout.write(" ".repeat(remainingSpace) + import_chalk18.default.white(" \u2502"));
33031
+ console.log();
33025
33032
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
33026
33033
  await stop();
33027
33034
  break;
@@ -33053,14 +33060,12 @@ async function startInteractiveSession() {
33053
33060
  } else {
33054
33061
  leftPadding = " ".repeat(FIXED_MARGIN);
33055
33062
  }
33056
- const topBorder = leftPadding + "\u256D" + "\u2500".repeat(boxWidth - 2) + "\u256E";
33057
- const middleLine = leftPadding + "\u2502" + " ".repeat(boxWidth - 2) + "\u2502";
33058
- const bottomBorder = leftPadding + "\u2570" + "\u2500".repeat(boxWidth - 2) + "\u256F";
33059
- console.log(import_chalk18.default.white(topBorder));
33060
- console.log(import_chalk18.default.white(middleLine));
33061
- console.log(import_chalk18.default.white(bottomBorder));
33062
- const prompt = leftPadding + import_chalk18.default.cyan("> ");
33063
+ const prompt = leftPadding + import_chalk18.default.white("\u2502 ") + import_chalk18.default.cyan("> ");
33063
33064
  const line = await rl.question(prompt);
33065
+ const inputLength = line.length + 2;
33066
+ const remainingSpace = Math.max(0, boxWidth - inputLength - 4);
33067
+ process.stdout.write(" ".repeat(remainingSpace) + import_chalk18.default.white(" \u2502"));
33068
+ console.log();
33064
33069
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
33065
33070
  await stop();
33066
33071
  break;