@bonginkan/maria 4.1.10 → 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.10",
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",
@@ -21535,7 +21535,6 @@ var init_package = __esm({
21535
21535
  "test:safety-net": "vitest run tests/*safety*.test.ts tests/deprecation*.test.ts tests/phase3*.test.ts",
21536
21536
  "test:phase3": "vitest run tests/phase3-safety.test.ts",
21537
21537
  "metrics:deprecation": `node -e "console.log('Deprecation metrics would be shown here')"`,
21538
- "lint:edm": "eslint src/services/memory-system/phase4 --config .eslintrc.edm-migration.js",
21539
21538
  "lint:fix:advanced": "tsx scripts/lint-fix-advanced.ts",
21540
21539
  "lint:fix:batch": "tsx scripts/lint-fix-advanced.ts category",
21541
21540
  "lint:interactive": "tsx scripts/lint-interactive.ts",
@@ -28477,7 +28476,6 @@ var init_ReadyCommandsService = __esm({
28477
28476
  }
28478
28477
  this.buildLookupMaps();
28479
28478
  this.lastLoaded = /* @__PURE__ */ new Date();
28480
- console.log(`\u{1F4CB} Loaded ${this.readyCommands.length} READY commands from manifest`);
28481
28479
  } catch (error2) {
28482
28480
  console.error("Failed to load READY commands manifest, using fallback:", error2);
28483
28481
  this.readyCommands = this.getFallbackCommands();
@@ -29043,11 +29041,8 @@ var init_HelpCommand = __esm({
29043
29041
  const categories = await this.readyService.getCategories();
29044
29042
  const stats = await this.readyService.getStatistics();
29045
29043
  const lines = [];
29046
- lines.push("Loaded " + stats.totalReady + " READY commands from manifest");
29047
- lines.push("MARIA CODE - Contract-Validated Commands");
29048
- lines.push("");
29049
29044
  lines.push("\u2550".repeat(60));
29050
- lines.push("**" + stats.totalReady + " READY Commands** (avg " + stats.avgResponseTime + "ms) | **" + stats.categoriesCount + " Categories**");
29045
+ lines.push("**" + stats.totalReady + " READY Commands** | **" + stats.categoriesCount + " Categories**");
29051
29046
  lines.push("");
29052
29047
  lines.push("**Quick Access:**");
29053
29048
  lines.push(" /help <command> - Detailed help for specific command");
@@ -29077,15 +29072,8 @@ var init_HelpCommand = __esm({
29077
29072
  }
29078
29073
  lines.push("");
29079
29074
  }
29080
- lines.push("**Contract Validation:**");
29081
- lines.push(" \u2022 All commands tested for TTY/non-TTY/pipe compatibility");
29082
- lines.push(" \u2022 Performance validated (<2s response time)");
29083
- lines.push(" \u2022 Error handling verified");
29084
- lines.push(" \u2022 Help documentation complete");
29085
- lines.push("");
29086
29075
  lines.push("**Pro Tips:**");
29087
29076
  lines.push(" \u2022 All listed commands are production-ready");
29088
- lines.push(" \u2022 Response times shown are actual measurements");
29089
29077
  lines.push(" \u2022 Use fuzzy search: /help --search confi \u2192 finds /config");
29090
29078
  lines.push(" \u2022 Categories ordered by importance");
29091
29079
  lines.push("");
@@ -32969,6 +32957,13 @@ async function handleLine(line) {
32969
32957
  }
32970
32958
  const consumed = await handleSlash(input3);
32971
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
+ }
32972
32967
  const user = { role: "user", content: input3, timestamp: /* @__PURE__ */ new Date() };
32973
32968
  session.push(user);
32974
32969
  if (store?.addMessage) await store.addMessage(user);
@@ -33010,18 +33005,30 @@ async function startInteractiveSession() {
33010
33005
  await stop();
33011
33006
  return;
33012
33007
  }
33013
- console.log(import_chalk18.default.gray("Type /help for commands, or just chat\n"));
33014
33008
  if (interactiveCLI) {
33015
33009
  while (true) {
33016
33010
  try {
33017
- const boxWidth = getResponsiveWidth({ minWidth: 40, maxWidth: 120, marginLeft: 2, marginRight: 2 });
33018
- const topBorder = "\u256D" + "\u2500".repeat(boxWidth - 2) + "\u256E";
33019
- const middleLine = "\u2502" + " ".repeat(boxWidth - 2) + "\u2502";
33020
- const bottomBorder = "\u2570" + "\u2500".repeat(boxWidth - 2) + "\u256F";
33021
- console.log(import_chalk18.default.white(topBorder));
33022
- console.log(import_chalk18.default.white(middleLine));
33023
- console.log(import_chalk18.default.white(bottomBorder));
33024
- const line = await interactiveCLI.question(import_chalk18.default.cyan("> "));
33011
+ const terminalWidth = process.stdout.columns || 80;
33012
+ const FIXED_MARGIN = 3;
33013
+ const MIN_WIDTH = 40;
33014
+ const MAX_WIDTH = 120;
33015
+ const availableWidth = terminalWidth - FIXED_MARGIN * 2;
33016
+ const boxWidth = Math.min(Math.max(MIN_WIDTH, availableWidth), MAX_WIDTH);
33017
+ let leftPadding;
33018
+ if (boxWidth === MAX_WIDTH && terminalWidth > MAX_WIDTH + FIXED_MARGIN * 2) {
33019
+ const totalPadding = terminalWidth - boxWidth;
33020
+ leftPadding = " ".repeat(Math.floor(totalPadding / 2));
33021
+ } else {
33022
+ leftPadding = " ".repeat(FIXED_MARGIN);
33023
+ }
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;
@@ -33040,14 +33047,25 @@ async function startInteractiveSession() {
33040
33047
  const rl = readline5.createInterface({ input: import_node_process3.stdin, output: import_node_process3.stdout });
33041
33048
  while (true) {
33042
33049
  try {
33043
- const boxWidth = getResponsiveWidth({ minWidth: 40, maxWidth: 120, marginLeft: 2, marginRight: 2 });
33044
- const topBorder = "\u256D" + "\u2500".repeat(boxWidth - 2) + "\u256E";
33045
- const middleLine = "\u2502" + " ".repeat(boxWidth - 2) + "\u2502";
33046
- const bottomBorder = "\u2570" + "\u2500".repeat(boxWidth - 2) + "\u256F";
33047
- console.log(import_chalk18.default.white(topBorder));
33048
- console.log(import_chalk18.default.white(middleLine));
33049
- console.log(import_chalk18.default.white(bottomBorder));
33050
- const line = await rl.question(import_chalk18.default.cyan("> "));
33050
+ const terminalWidth = process.stdout.columns || 80;
33051
+ const FIXED_MARGIN = 3;
33052
+ const MIN_WIDTH = 40;
33053
+ const MAX_WIDTH = 120;
33054
+ const availableWidth = terminalWidth - FIXED_MARGIN * 2;
33055
+ const boxWidth = Math.min(Math.max(MIN_WIDTH, availableWidth), MAX_WIDTH);
33056
+ let leftPadding;
33057
+ if (boxWidth === MAX_WIDTH && terminalWidth > MAX_WIDTH + FIXED_MARGIN * 2) {
33058
+ const totalPadding = terminalWidth - boxWidth;
33059
+ leftPadding = " ".repeat(Math.floor(totalPadding / 2));
33060
+ } else {
33061
+ leftPadding = " ".repeat(FIXED_MARGIN);
33062
+ }
33063
+ const prompt = leftPadding + import_chalk18.default.white("\u2502 ") + import_chalk18.default.cyan("> ");
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();
33051
33069
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
33052
33070
  await stop();
33053
33071
  break;
@@ -33128,7 +33146,6 @@ var init_cli = __esm({
33128
33146
  init_version();
33129
33147
  init_animations();
33130
33148
  init_cli_auth();
33131
- init_responsive_width();
33132
33149
  session = [];
33133
33150
  commandManager = null;
33134
33151
  startupDisplayed = false;