@bonginkan/maria 4.1.10 → 4.1.11

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.11",
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("");
@@ -33010,18 +32998,30 @@ async function startInteractiveSession() {
33010
32998
  await stop();
33011
32999
  return;
33012
33000
  }
33013
- console.log(import_chalk18.default.gray("Type /help for commands, or just chat\n"));
33014
33001
  if (interactiveCLI) {
33015
33002
  while (true) {
33016
33003
  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";
33004
+ const terminalWidth = process.stdout.columns || 80;
33005
+ const FIXED_MARGIN = 3;
33006
+ const MIN_WIDTH = 40;
33007
+ const MAX_WIDTH = 120;
33008
+ const availableWidth = terminalWidth - FIXED_MARGIN * 2;
33009
+ const boxWidth = Math.min(Math.max(MIN_WIDTH, availableWidth), MAX_WIDTH);
33010
+ let leftPadding;
33011
+ if (boxWidth === MAX_WIDTH && terminalWidth > MAX_WIDTH + FIXED_MARGIN * 2) {
33012
+ const totalPadding = terminalWidth - boxWidth;
33013
+ leftPadding = " ".repeat(Math.floor(totalPadding / 2));
33014
+ } else {
33015
+ leftPadding = " ".repeat(FIXED_MARGIN);
33016
+ }
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";
33021
33020
  console.log(import_chalk18.default.white(topBorder));
33022
33021
  console.log(import_chalk18.default.white(middleLine));
33023
33022
  console.log(import_chalk18.default.white(bottomBorder));
33024
- const line = await interactiveCLI.question(import_chalk18.default.cyan("> "));
33023
+ const prompt = leftPadding + import_chalk18.default.cyan("> ");
33024
+ const line = await interactiveCLI.question(prompt);
33025
33025
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
33026
33026
  await stop();
33027
33027
  break;
@@ -33040,14 +33040,27 @@ async function startInteractiveSession() {
33040
33040
  const rl = readline5.createInterface({ input: import_node_process3.stdin, output: import_node_process3.stdout });
33041
33041
  while (true) {
33042
33042
  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";
33043
+ const terminalWidth = process.stdout.columns || 80;
33044
+ const FIXED_MARGIN = 3;
33045
+ const MIN_WIDTH = 40;
33046
+ const MAX_WIDTH = 120;
33047
+ const availableWidth = terminalWidth - FIXED_MARGIN * 2;
33048
+ const boxWidth = Math.min(Math.max(MIN_WIDTH, availableWidth), MAX_WIDTH);
33049
+ let leftPadding;
33050
+ if (boxWidth === MAX_WIDTH && terminalWidth > MAX_WIDTH + FIXED_MARGIN * 2) {
33051
+ const totalPadding = terminalWidth - boxWidth;
33052
+ leftPadding = " ".repeat(Math.floor(totalPadding / 2));
33053
+ } else {
33054
+ leftPadding = " ".repeat(FIXED_MARGIN);
33055
+ }
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";
33047
33059
  console.log(import_chalk18.default.white(topBorder));
33048
33060
  console.log(import_chalk18.default.white(middleLine));
33049
33061
  console.log(import_chalk18.default.white(bottomBorder));
33050
- const line = await rl.question(import_chalk18.default.cyan("> "));
33062
+ const prompt = leftPadding + import_chalk18.default.cyan("> ");
33063
+ const line = await rl.question(prompt);
33051
33064
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
33052
33065
  await stop();
33053
33066
  break;
@@ -33128,7 +33141,6 @@ var init_cli = __esm({
33128
33141
  init_version();
33129
33142
  init_animations();
33130
33143
  init_cli_auth();
33131
- init_responsive_width();
33132
33144
  session = [];
33133
33145
  commandManager = null;
33134
33146
  startupDisplayed = false;