@bonginkan/maria 4.2.17 → 4.2.18

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/cli.cjs CHANGED
@@ -903,12 +903,28 @@ var init_AuthenticationManager = __esm({
903
903
  const config2 = await this.secretManager.getAuthConfig();
904
904
  this.authBase = config2.authBase;
905
905
  this.apiBase = config2.apiBase;
906
+ if (process.env.MARIA_AUTH_BASE) {
907
+ this.authBase = process.env.MARIA_AUTH_BASE;
908
+ }
909
+ if (process.env.MARIA_API_BASE) {
910
+ this.apiBase = process.env.MARIA_API_BASE;
911
+ }
912
+ if (process.env.MARIA_AUTH_MODE === "local") {
913
+ this.authBase = "http://localhost:3001";
914
+ this.apiBase = "http://localhost:3000";
915
+ }
906
916
  this.clientId = config2.clientId;
907
917
  this.initialized = true;
908
918
  } catch (error2) {
909
919
  console.warn("Auth config initialization failed, using fallbacks:", error2);
910
920
  this.authBase = this.getAuthBaseUrl();
911
921
  this.apiBase = this.getApiBaseUrl();
922
+ if (process.env.MARIA_AUTH_BASE) {
923
+ this.authBase = process.env.MARIA_AUTH_BASE;
924
+ }
925
+ if (process.env.MARIA_API_BASE) {
926
+ this.apiBase = process.env.MARIA_API_BASE;
927
+ }
912
928
  this.clientId = process.env.MARIA_CLIENT_ID || "maria-cli";
913
929
  this.initialized = true;
914
930
  }
@@ -932,14 +948,13 @@ var init_AuthenticationManager = __esm({
932
948
  return cloudRunUrl;
933
949
  }
934
950
  getApiBaseUrl() {
935
- if (process.env.MARIA_AUTH_MODE === "local") {
936
- return "http://localhost:3000/api";
951
+ if (process.env.MARIA_API_BASE) {
952
+ return process.env.MARIA_API_BASE;
937
953
  }
938
- const cloudRunApiUrl = "https://api.maria-code.ai";
939
- if (process.env.MARIA_USE_CUSTOM_DOMAIN === "true") {
940
- return "https://api.maria-code.ai";
954
+ if (process.env.MARIA_AUTH_MODE === "local") {
955
+ return "http://localhost:3000";
941
956
  }
942
- return cloudRunApiUrl;
957
+ return "https://api.maria-code.ai";
943
958
  }
944
959
  /**
945
960
  * Check if user is authenticated
@@ -1000,7 +1015,7 @@ var init_AuthenticationManager = __esm({
1000
1015
  const response2 = await fetch(`${this.apiBase}/api/user/profile`, {
1001
1016
  headers: {
1002
1017
  "Authorization": `Bearer ${tokens.accessToken}`,
1003
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "3.8.0"}`
1018
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.2.18"}`
1004
1019
  }
1005
1020
  });
1006
1021
  if (response2.status === 401) {
@@ -1476,28 +1491,24 @@ var init_AuthenticationManager = __esm({
1476
1491
  */
1477
1492
  getSuccessPage() {
1478
1493
  return `
1479
- <html>
1494
+ <html lang="en">
1480
1495
  <head>
1496
+ <meta charset="UTF-8" />
1481
1497
  <title>MARIA CLI - Authentication Successful</title>
1482
1498
  <style>
1483
- body {
1484
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
1485
- text-align: center;
1486
- padding: 50px;
1487
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
1488
- color: white;
1489
- margin: 0;
1490
- }
1491
- .icon { font-size: 64px; margin-bottom: 20px; }
1492
- h1 { font-size: 36px; margin-bottom: 20px; }
1493
- p { font-size: 18px; opacity: 0.9; line-height: 1.5; }
1499
+ body { font-family: 'Monaco','Menlo','Ubuntu Mono',monospace; background:#0a0a0a; color:#fff; display:flex; align-items:center; justify-content:center; min-height:100vh; margin:0; }
1500
+ .box { border:2px solid #fff; padding:32px; border-radius:8px; max-width:600px; background:#000; text-align:center; }
1501
+ .ok { font-size:40px; color:#00ff00; margin-bottom:12px; }
1502
+ .title { font-size:24px; font-weight:bold; margin-bottom:8px; }
1503
+ .subtitle { color:#888; }
1494
1504
  </style>
1495
1505
  </head>
1496
1506
  <body>
1497
- <div class="icon">\u2705</div>
1498
- <h1>Authentication Successful!</h1>
1499
- <p>You can close this window and return to the terminal.</p>
1500
- <p style="margin-top: 30px; opacity: 0.7;">MARIA CLI is now authenticated.</p>
1507
+ <div class="box">
1508
+ <div class="ok">\u2705</div>
1509
+ <div class="title">Authentication Successful</div>
1510
+ <div class="subtitle">You can close this window and return to the terminal.</div>
1511
+ </div>
1501
1512
  </body>
1502
1513
  </html>
1503
1514
  `;
@@ -1507,28 +1518,26 @@ var init_AuthenticationManager = __esm({
1507
1518
  */
1508
1519
  getErrorPage(error2) {
1509
1520
  return `
1510
- <html>
1521
+ <html lang="en">
1511
1522
  <head>
1523
+ <meta charset="UTF-8" />
1512
1524
  <title>MARIA CLI - Authentication Error</title>
1513
1525
  <style>
1514
- body {
1515
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
1516
- text-align: center;
1517
- padding: 50px;
1518
- background: #ff6b6b;
1519
- color: white;
1520
- margin: 0;
1521
- }
1522
- .icon { font-size: 64px; margin-bottom: 20px; }
1523
- h1 { font-size: 36px; margin-bottom: 20px; }
1524
- p { font-size: 18px; opacity: 0.9; line-height: 1.5; }
1526
+ body { font-family: 'Monaco','Menlo','Ubuntu Mono',monospace; background:#0a0a0a; color:#fff; display:flex; align-items:center; justify-content:center; min-height:100vh; margin:0; }
1527
+ .box { border:2px solid #fff; padding:32px; border-radius:8px; max-width:600px; background:#000; text-align:center; }
1528
+ .err { font-size:40px; color:#ff4444; margin-bottom:12px; }
1529
+ .title { font-size:24px; font-weight:bold; margin-bottom:8px; }
1530
+ .detail { color:#ffcccc; margin-top:8px; }
1531
+ .hint { color:#888; margin-top:14px; }
1525
1532
  </style>
1526
1533
  </head>
1527
1534
  <body>
1528
- <div class="icon">\u274C</div>
1529
- <h1>Authentication Failed</h1>
1530
- <p>${error2}</p>
1531
- <p style="margin-top: 30px; opacity: 0.7;">You can close this window and try again.</p>
1535
+ <div class="box">
1536
+ <div class="err">\u274C</div>
1537
+ <div class="title">Authentication Error</div>
1538
+ <div class="detail">${error2}</div>
1539
+ <div class="hint">You can close this window and try again.</div>
1540
+ </div>
1532
1541
  </body>
1533
1542
  </html>
1534
1543
  `;
@@ -34276,8 +34285,8 @@ var init_package = __esm({
34276
34285
  "package.json"() {
34277
34286
  package_default = {
34278
34287
  name: "@bonginkan/maria",
34279
- version: "4.2.17",
34280
- description: "\u{1F680} MARIA v4.2.17 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
34288
+ version: "4.2.18",
34289
+ description: "\u{1F680} MARIA v4.2.18 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
34281
34290
  keywords: [
34282
34291
  "ai",
34283
34292
  "cli",