@bonginkan/maria 4.4.5 → 4.4.6

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.
@@ -526,22 +526,22 @@ function dataUriToBuffer(uri) {
526
526
  if (firstComma === -1 || firstComma <= 4) {
527
527
  throw new TypeError("malformed data: URI");
528
528
  }
529
- const meta35 = uri.substring(5, firstComma).split(";");
529
+ const meta34 = uri.substring(5, firstComma).split(";");
530
530
  let charset = "";
531
531
  let base64 = false;
532
- const type = meta35[0] || "text/plain";
532
+ const type = meta34[0] || "text/plain";
533
533
  let typeFull = type;
534
- for (let i2 = 1; i2 < meta35.length; i2++) {
535
- if (meta35[i2] === "base64") {
534
+ for (let i2 = 1; i2 < meta34.length; i2++) {
535
+ if (meta34[i2] === "base64") {
536
536
  base64 = true;
537
- } else if (meta35[i2]) {
538
- typeFull += `;${meta35[i2]}`;
539
- if (meta35[i2].indexOf("charset=") === 0) {
540
- charset = meta35[i2].substring(8);
537
+ } else if (meta34[i2]) {
538
+ typeFull += `;${meta34[i2]}`;
539
+ if (meta34[i2].indexOf("charset=") === 0) {
540
+ charset = meta34[i2].substring(8);
541
541
  }
542
542
  }
543
543
  }
544
- if (!meta35[0] && !charset.length) {
544
+ if (!meta34[0] && !charset.length) {
545
545
  typeFull += ";charset=US-ASCII";
546
546
  charset = "US-ASCII";
547
547
  }
@@ -19143,7 +19143,6 @@ var init_command_groups = __esm({
19143
19143
  commandGroups = {
19144
19144
  core: [
19145
19145
  "about",
19146
- "changelog",
19147
19146
  "config",
19148
19147
  "contact",
19149
19148
  "doctor",
@@ -26090,8 +26089,8 @@ var require_package = __commonJS({
26090
26089
  "package.json"(exports, module) {
26091
26090
  module.exports = {
26092
26091
  name: "@bonginkan/maria",
26093
- version: "4.4.5",
26094
- description: "\u{1F680} MARIA v4.4.5 - Enterprise AI Development Platform with identity system and character voice implementation. 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.",
26092
+ version: "4.4.6",
26093
+ description: "\u{1F680} MARIA v4.4.6 - Enterprise AI Development Platform with identity system and character voice implementation. 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.",
26095
26094
  keywords: [
26096
26095
  "ai",
26097
26096
  "cli",
@@ -28246,7 +28245,7 @@ var init_AuthenticationManager = __esm({
28246
28245
  const response = await fetch(`${this.apiBase}/api/user/profile`, {
28247
28246
  headers: {
28248
28247
  "Authorization": `Bearer ${tokens2.accessToken}`,
28249
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.5"}`
28248
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.6"}`
28250
28249
  }
28251
28250
  });
28252
28251
  if (response.status === 401) {
@@ -28923,7 +28922,7 @@ async function callApi(path69, init3 = {}) {
28923
28922
  "Authorization": `Bearer ${token}`,
28924
28923
  "X-Device-Id": getDeviceId(),
28925
28924
  "X-Session-Id": getSessionId() || "",
28926
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.5"}`,
28925
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.6"}`,
28927
28926
  "Content-Type": init3.headers?.["Content-Type"] || "application/json"
28928
28927
  });
28929
28928
  const doFetch = async (token) => {
@@ -39542,7 +39541,6 @@ var init_ReadyCommandsService = __esm({
39542
39541
  "clear": "Clear conversation",
39543
39542
  "exit": "Exit MARIA",
39544
39543
  "about": "About MARIA - version, features, and credits",
39545
- "changelog": "View recent changes and updates",
39546
39544
  "contact": "Contact information and support channels",
39547
39545
  // Auth commands
39548
39546
  "login": "Sign in to MARIA",
@@ -39606,7 +39604,6 @@ var init_ReadyCommandsService = __esm({
39606
39604
  "version",
39607
39605
  "exit",
39608
39606
  "about",
39609
- "changelog",
39610
39607
  "contact",
39611
39608
  "update",
39612
39609
  "upgrade",
@@ -40869,7 +40866,7 @@ var init_about_command = __esm({
40869
40866
  async execute(args2, context2) {
40870
40867
  const output3 = [];
40871
40868
  output3.push("");
40872
- output3.push(chalk14__default.default.cyan.bold("About MARIA v4.4.5"));
40869
+ output3.push(chalk14__default.default.cyan.bold("About MARIA v4.4.6"));
40873
40870
  output3.push(chalk14__default.default.gray("\u2550".repeat(40)));
40874
40871
  output3.push("");
40875
40872
  output3.push(chalk14__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
@@ -40926,178 +40923,13 @@ var init_about_command = __esm({
40926
40923
  }
40927
40924
  });
40928
40925
 
40929
- // src/slash-commands/categories/core/changelog.command.ts
40930
- var changelog_command_exports = {};
40931
- __export(changelog_command_exports, {
40932
- ChangelogCommand: () => ChangelogCommand,
40933
- meta: () => meta8
40934
- });
40935
- var ChangelogCommand, meta8;
40936
- var init_changelog_command = __esm({
40937
- "src/slash-commands/categories/core/changelog.command.ts"() {
40938
- init_base_command();
40939
- ChangelogCommand = class extends BaseCommand {
40940
- name = "changelog";
40941
- description = "Display MARIA version history and recent changes";
40942
- category = "core";
40943
- aliases = ["history", "changes", "releases"];
40944
- async execute(args2, context2) {
40945
- const version = args2.parsed?.positional?.[0];
40946
- if (version) {
40947
- return this.showVersionDetails(version);
40948
- }
40949
- return this.showRecentChanges();
40950
- }
40951
- showRecentChanges() {
40952
- const output3 = [];
40953
- output3.push("");
40954
- output3.push(chalk14__default.default.cyan.bold("\u{1F4CB} MARIA Changelog"));
40955
- output3.push(chalk14__default.default.gray("\u2550".repeat(30)));
40956
- output3.push("");
40957
- output3.push(chalk14__default.default.green.bold("\u{1F680} v3.8.0 (Current) - August 2024"));
40958
- output3.push(chalk14__default.default.white(" \u2022 Enterprise Architecture Implementation"));
40959
- output3.push(chalk14__default.default.white(" \u2022 RBAC & Hierarchical Access Control"));
40960
- output3.push(chalk14__default.default.white(" \u2022 High-Performance Data Processing"));
40961
- output3.push(chalk14__default.default.white(" \u2022 Zero TypeScript/ESLint Errors Achievement"));
40962
- output3.push(chalk14__default.default.white(" \u2022 Advanced Command Contract Testing"));
40963
- output3.push(chalk14__default.default.white(" \u2022 Production-Ready Rate Limiting"));
40964
- output3.push("");
40965
- output3.push(chalk14__default.default.green.bold("\u2B50 v3.7.0 - July 2024"));
40966
- output3.push(chalk14__default.default.white(" \u2022 Natural Language Code Operations"));
40967
- output3.push(chalk14__default.default.white(" \u2022 AST-based Code Intelligence"));
40968
- output3.push(chalk14__default.default.white(" \u2022 Multimodal AI Generation (Voice/Video/Image)"));
40969
- output3.push(chalk14__default.default.white(" \u2022 Business Operations Suite"));
40970
- output3.push(chalk14__default.default.white(" \u2022 Graph RAG Knowledge System"));
40971
- output3.push("");
40972
- output3.push(chalk14__default.default.green.bold("\u{1F3AF} v3.6.0 - June 2024"));
40973
- output3.push(chalk14__default.default.white(" \u2022 Dual Memory Architecture"));
40974
- output3.push(chalk14__default.default.white(" \u2022 IntelligentRouterService"));
40975
- output3.push(chalk14__default.default.white(" \u2022 8 AI Provider Support"));
40976
- output3.push(chalk14__default.default.white(" \u2022 Command System Overhaul"));
40977
- output3.push(chalk14__default.default.white(" \u2022 Enterprise Security Features"));
40978
- output3.push("");
40979
- output3.push(chalk14__default.default.green.bold("\u{1F4A1} v3.5.0 - May 2024"));
40980
- output3.push(chalk14__default.default.white(" \u2022 Revolutionary /code command"));
40981
- output3.push(chalk14__default.default.white(" \u2022 Intent-based code operations"));
40982
- output3.push(chalk14__default.default.white(" \u2022 Parallel validation system"));
40983
- output3.push(chalk14__default.default.white(" \u2022 SARIF/JUnit report generation"));
40984
- output3.push("");
40985
- output3.push(chalk14__default.default.gray("Use /changelog [version] for detailed release notes"));
40986
- output3.push("");
40987
- return {
40988
- success: true,
40989
- message: output3.join("\n"),
40990
- requiresInput: false,
40991
- autoRetry: false
40992
- };
40993
- }
40994
- showVersionDetails(version) {
40995
- const output3 = [];
40996
- output3.push("");
40997
- output3.push(chalk14__default.default.cyan.bold(`\u{1F4CB} MARIA ${version} Release Notes`));
40998
- output3.push(chalk14__default.default.gray("\u2550".repeat(40)));
40999
- output3.push("");
41000
- switch (version) {
41001
- case "v4.4.5":
41002
- case "4.4.5":
41003
- output3.push(chalk14__default.default.green.bold("\u{1F680} v4.4.5 - Enterprise Architecture"));
41004
- output3.push(chalk14__default.default.white("Released: September 8, 2025"));
41005
- output3.push("");
41006
- output3.push(chalk14__default.default.white("\u{1F3D7}\uFE0F Enterprise Features:"));
41007
- output3.push(" \u2022 EnterpriseAccessControlManager - RBAC, hierarchical, compliance");
41008
- output3.push(" \u2022 PerformanceOptimizationEngine - Streaming & worker pools");
41009
- output3.push(" \u2022 Enterprise Data Porter - High-performance data processing");
41010
- output3.push(" \u2022 GDPR/HIPAA/SOX compliance support");
41011
- output3.push("");
41012
- output3.push(chalk14__default.default.white("\u{1F3AF} Quality Achievements:"));
41013
- output3.push(" \u2022 \u{1F3C6} Zero TypeScript errors (751 \u2192 0)");
41014
- output3.push(" \u2022 \u{1F3C6} Zero ESLint errors (23 \u2192 0)");
41015
- output3.push(" \u2022 100% Perfect Quality Gates");
41016
- output3.push(" \u2022 Comprehensive test coverage");
41017
- output3.push("");
41018
- output3.push(chalk14__default.default.white("\u26A1 Performance Improvements:"));
41019
- output3.push(" \u2022 Adaptive streaming with auto-scaling");
41020
- output3.push(" \u2022 Multi-level caching system");
41021
- output3.push(" \u2022 Worker pool optimization");
41022
- output3.push(" \u2022 Production-ready rate limiting");
41023
- break;
41024
- case "v3.8.0":
41025
- case "3.8.0":
41026
- output3.push(chalk14__default.default.green.bold("\u{1F680} v3.8.0 - Enterprise Architecture"));
41027
- output3.push(chalk14__default.default.white("Released: August 31, 2024"));
41028
- output3.push("");
41029
- output3.push(chalk14__default.default.white("\u{1F3D7}\uFE0F Enterprise Features:"));
41030
- output3.push(" \u2022 EnterpriseAccessControlManager - RBAC, hierarchical, compliance");
41031
- output3.push(" \u2022 PerformanceOptimizationEngine - Streaming & worker pools");
41032
- output3.push(" \u2022 Enterprise Data Porter - High-performance data processing");
41033
- output3.push(" \u2022 GDPR/HIPAA/SOX compliance support");
41034
- output3.push("");
41035
- output3.push(chalk14__default.default.white("\u{1F3AF} Quality Achievements:"));
41036
- output3.push(" \u2022 \u{1F3C6} Zero TypeScript errors (751 \u2192 0)");
41037
- output3.push(" \u2022 \u{1F3C6} Zero ESLint errors (23 \u2192 0)");
41038
- output3.push(" \u2022 100% Perfect Quality Gates");
41039
- output3.push(" \u2022 Comprehensive test coverage");
41040
- output3.push("");
41041
- output3.push(chalk14__default.default.white("\u26A1 Performance Improvements:"));
41042
- output3.push(" \u2022 Adaptive streaming with auto-scaling");
41043
- output3.push(" \u2022 Multi-level caching system");
41044
- output3.push(" \u2022 Worker pool optimization");
41045
- output3.push(" \u2022 Production-ready rate limiting");
41046
- break;
41047
- case "v3.7.0":
41048
- case "3.7.0":
41049
- output3.push(chalk14__default.default.green.bold("\u2B50 v3.7.0 - AI-Powered Code Operations"));
41050
- output3.push(chalk14__default.default.white("Released: July 2024"));
41051
- output3.push("");
41052
- output3.push(chalk14__default.default.white("\u{1F916} AI Features:"));
41053
- output3.push(" \u2022 /code - Natural language code operations");
41054
- output3.push(" \u2022 AST-based code intelligence");
41055
- output3.push(" \u2022 7 intent types: CREATE, MODIFY, FIX_ERROR, REFACTOR, etc.");
41056
- output3.push(" \u2022 Parallel TypeScript/ESLint validation");
41057
- output3.push("");
41058
- output3.push(chalk14__default.default.white("\u{1F3A8} Multimodal Generation:"));
41059
- output3.push(" \u2022 Voice generation with Gemini TTS");
41060
- output3.push(" \u2022 Video creation with Veo 2.0");
41061
- output3.push(" \u2022 Image generation with Imagen 4.0");
41062
- output3.push("");
41063
- break;
41064
- default:
41065
- output3.push(chalk14__default.default.yellow(`Version ${version} not found or details not available.`));
41066
- output3.push("");
41067
- output3.push(chalk14__default.default.white("Available versions: v3.8.0, v3.7.0, v3.6.0, v3.5.0"));
41068
- }
41069
- output3.push("");
41070
- return {
41071
- success: true,
41072
- message: output3.join("\n"),
41073
- requiresInput: false,
41074
- autoRetry: false
41075
- };
41076
- }
41077
- };
41078
- meta8 = {
41079
- name: "changelog",
41080
- category: "core",
41081
- description: "Display MARIA version history and recent changes",
41082
- aliases: ["history", "changes", "releases"],
41083
- usage: "/changelog [version]",
41084
- examples: [
41085
- "/changelog",
41086
- "/changelog v3.8.0",
41087
- "/changelog 3.7.0"
41088
- ],
41089
- deps: []
41090
- };
41091
- }
41092
- });
41093
-
41094
40926
  // src/slash-commands/categories/core/contact.command.ts
41095
40927
  var contact_command_exports = {};
41096
40928
  __export(contact_command_exports, {
41097
40929
  ContactCommand: () => ContactCommand,
41098
- meta: () => meta9
40930
+ meta: () => meta8
41099
40931
  });
41100
- var ContactCommand, meta9;
40932
+ var ContactCommand, meta8;
41101
40933
  var init_contact_command = __esm({
41102
40934
  "src/slash-commands/categories/core/contact.command.ts"() {
41103
40935
  init_base_command();
@@ -41114,7 +40946,7 @@ var init_contact_command = __esm({
41114
40946
  output3.push("");
41115
40947
  output3.push(chalk14__default.default.white.bold("\u{1F3E2} Company Information:"));
41116
40948
  output3.push(" Company: Bonginkan");
41117
- output3.push(" Product: MARIA v4.4.5");
40949
+ output3.push(" Product: MARIA v4.4.6");
41118
40950
  output3.push(" Website: https://bonginkan.ai");
41119
40951
  output3.push(" Product Site: https://maria-code.ai");
41120
40952
  output3.push("");
@@ -41165,7 +40997,7 @@ var init_contact_command = __esm({
41165
40997
  };
41166
40998
  }
41167
40999
  };
41168
- meta9 = {
41000
+ meta8 = {
41169
41001
  name: "contact",
41170
41002
  category: "core",
41171
41003
  description: "Display contact information and support channels",
@@ -41552,9 +41384,9 @@ var init_identity_renderer = __esm({
41552
41384
  var identity_command_exports = {};
41553
41385
  __export(identity_command_exports, {
41554
41386
  IdentityCommand: () => IdentityCommand,
41555
- meta: () => meta10
41387
+ meta: () => meta9
41556
41388
  });
41557
- var IdentityCommand, meta10;
41389
+ var IdentityCommand, meta9;
41558
41390
  var init_identity_command = __esm({
41559
41391
  "src/slash-commands/categories/core/identity.command.ts"() {
41560
41392
  init_base_command();
@@ -41612,7 +41444,7 @@ var init_identity_command = __esm({
41612
41444
  }
41613
41445
  }
41614
41446
  };
41615
- meta10 = {
41447
+ meta9 = {
41616
41448
  name: "identity",
41617
41449
  category: "core",
41618
41450
  description: "Show Maria Code identity and supported READY skills",
@@ -48181,9 +48013,9 @@ LOG_LEVEL=info
48181
48013
  var ping_command_exports = {};
48182
48014
  __export(ping_command_exports, {
48183
48015
  PingCommand: () => PingCommand,
48184
- meta: () => meta11
48016
+ meta: () => meta10
48185
48017
  });
48186
- var PingCommand, meta11;
48018
+ var PingCommand, meta10;
48187
48019
  var init_ping_command = __esm({
48188
48020
  "src/slash-commands/categories/system/ping.command.ts"() {
48189
48021
  init_base_command();
@@ -48215,7 +48047,7 @@ var init_ping_command = __esm({
48215
48047
  };
48216
48048
  }
48217
48049
  };
48218
- meta11 = {
48050
+ meta10 = {
48219
48051
  name: "ping",
48220
48052
  category: "system",
48221
48053
  description: "Test system responsiveness and connectivity",
@@ -48233,9 +48065,9 @@ var init_ping_command = __esm({
48233
48065
  var TerminalSetupCommand_exports = {};
48234
48066
  __export(TerminalSetupCommand_exports, {
48235
48067
  TerminalSetupCommand: () => TerminalSetupCommand,
48236
- meta: () => meta12
48068
+ meta: () => meta11
48237
48069
  });
48238
- var TerminalSetupCommand, meta12;
48070
+ var TerminalSetupCommand, meta11;
48239
48071
  var init_TerminalSetupCommand = __esm({
48240
48072
  "src/slash-commands/categories/system/handlers/TerminalSetupCommand.ts"() {
48241
48073
  init_base_command();
@@ -48760,7 +48592,7 @@ var init_TerminalSetupCommand = __esm({
48760
48592
  return { success: true };
48761
48593
  }
48762
48594
  };
48763
- meta12 = {
48595
+ meta11 = {
48764
48596
  name: "terminal-setup",
48765
48597
  category: "system",
48766
48598
  description: "Configure and optimize terminal integration for MARIA",
@@ -49880,16 +49712,16 @@ function countRemainingLines(hunks, startHunkIdx, currentPart, currentLine) {
49880
49712
  }
49881
49713
  function colorGreen(s2) {
49882
49714
  try {
49883
- const chalk54 = __require("chalk");
49884
- return chalk54.green(s2);
49715
+ const chalk53 = __require("chalk");
49716
+ return chalk53.green(s2);
49885
49717
  } catch {
49886
49718
  return s2;
49887
49719
  }
49888
49720
  }
49889
49721
  function colorRed(s2) {
49890
49722
  try {
49891
- const chalk54 = __require("chalk");
49892
- return chalk54.red(s2);
49723
+ const chalk53 = __require("chalk");
49724
+ return chalk53.red(s2);
49893
49725
  } catch {
49894
49726
  return s2;
49895
49727
  }
@@ -50307,9 +50139,9 @@ var init_orchestrator = __esm({
50307
50139
  var debug_command_exports = {};
50308
50140
  __export(debug_command_exports, {
50309
50141
  DebugCommand: () => DebugCommand,
50310
- meta: () => meta13
50142
+ meta: () => meta12
50311
50143
  });
50312
- var DebugCommand, meta13;
50144
+ var DebugCommand, meta12;
50313
50145
  var init_debug_command = __esm({
50314
50146
  "src/slash-commands/categories/system/debug.command.ts"() {
50315
50147
  init_base_command();
@@ -50556,7 +50388,7 @@ var init_debug_command = __esm({
50556
50388
  };
50557
50389
  }
50558
50390
  };
50559
- meta13 = {
50391
+ meta12 = {
50560
50392
  name: "debug",
50561
50393
  category: "system",
50562
50394
  description: "Display debug information, analyze failures, and auto-fix with verification",
@@ -50603,9 +50435,9 @@ var init_debug_command = __esm({
50603
50435
  var disk_command_exports = {};
50604
50436
  __export(disk_command_exports, {
50605
50437
  DiskCommand: () => DiskCommand,
50606
- meta: () => meta14
50438
+ meta: () => meta13
50607
50439
  });
50608
- var DiskCommand, meta14;
50440
+ var DiskCommand, meta13;
50609
50441
  var init_disk_command = __esm({
50610
50442
  "src/slash-commands/categories/system/disk.command.ts"() {
50611
50443
  init_base_command();
@@ -50726,7 +50558,7 @@ var init_disk_command = __esm({
50726
50558
  return parseFloat((bytes / Math.pow(k, i2)).toFixed(2)) + " " + sizes[i2];
50727
50559
  }
50728
50560
  };
50729
- meta14 = {
50561
+ meta13 = {
50730
50562
  name: "disk",
50731
50563
  category: "system",
50732
50564
  description: "Display disk usage and storage information",
@@ -50746,9 +50578,9 @@ var init_disk_command = __esm({
50746
50578
  var env_command_exports = {};
50747
50579
  __export(env_command_exports, {
50748
50580
  EnvCommand: () => EnvCommand,
50749
- meta: () => meta15
50581
+ meta: () => meta14
50750
50582
  });
50751
- var EnvCommand, meta15;
50583
+ var EnvCommand, meta14;
50752
50584
  var init_env_command = __esm({
50753
50585
  "src/slash-commands/categories/system/env.command.ts"() {
50754
50586
  init_base_command();
@@ -50852,7 +50684,7 @@ var init_env_command = __esm({
50852
50684
  return sensitivePatterns.some((pattern) => keyLower.includes(pattern));
50853
50685
  }
50854
50686
  };
50855
- meta15 = {
50687
+ meta14 = {
50856
50688
  name: "env",
50857
50689
  category: "system",
50858
50690
  description: "Display environment information and variables",
@@ -50872,9 +50704,9 @@ var init_env_command = __esm({
50872
50704
  var processes_command_exports = {};
50873
50705
  __export(processes_command_exports, {
50874
50706
  ProcessesCommand: () => ProcessesCommand,
50875
- meta: () => meta16
50707
+ meta: () => meta15
50876
50708
  });
50877
- var ProcessesCommand, meta16;
50709
+ var ProcessesCommand, meta15;
50878
50710
  var init_processes_command = __esm({
50879
50711
  "src/slash-commands/categories/system/processes.command.ts"() {
50880
50712
  init_base_command();
@@ -51055,7 +50887,7 @@ var init_processes_command = __esm({
51055
50887
  return Math.max(0, Math.min(100, score));
51056
50888
  }
51057
50889
  };
51058
- meta16 = {
50890
+ meta15 = {
51059
50891
  name: "processes",
51060
50892
  category: "system",
51061
50893
  description: "Display running processes and system information",
@@ -51075,9 +50907,9 @@ var init_processes_command = __esm({
51075
50907
  var uptime_command_exports = {};
51076
50908
  __export(uptime_command_exports, {
51077
50909
  UptimeCommand: () => UptimeCommand,
51078
- meta: () => meta17
50910
+ meta: () => meta16
51079
50911
  });
51080
- var UptimeCommand, meta17;
50912
+ var UptimeCommand, meta16;
51081
50913
  var init_uptime_command = __esm({
51082
50914
  "src/slash-commands/categories/system/uptime.command.ts"() {
51083
50915
  init_base_command();
@@ -51157,7 +50989,7 @@ var init_uptime_command = __esm({
51157
50989
  return { formatted, parts };
51158
50990
  }
51159
50991
  };
51160
- meta17 = {
50992
+ meta16 = {
51161
50993
  name: "uptime",
51162
50994
  category: "system",
51163
50995
  description: "Display system and process uptime information",
@@ -54387,9 +54219,9 @@ var init_quick_persistence = __esm({
54387
54219
  var remember_command_exports = {};
54388
54220
  __export(remember_command_exports, {
54389
54221
  RememberCommand: () => RememberCommand,
54390
- meta: () => meta18
54222
+ meta: () => meta17
54391
54223
  });
54392
- var RememberCommand, meta18;
54224
+ var RememberCommand, meta17;
54393
54225
  var init_remember_command = __esm({
54394
54226
  "src/slash-commands/categories/memory/remember.command.ts"() {
54395
54227
  init_base_command();
@@ -54516,7 +54348,7 @@ var init_remember_command = __esm({
54516
54348
  return { success: true };
54517
54349
  }
54518
54350
  };
54519
- meta18 = {
54351
+ meta17 = {
54520
54352
  name: "remember",
54521
54353
  category: "memory",
54522
54354
  description: "Store important information in persistent memory",
@@ -54537,9 +54369,9 @@ var init_remember_command = __esm({
54537
54369
  var recall_command_exports = {};
54538
54370
  __export(recall_command_exports, {
54539
54371
  RecallCommand: () => RecallCommand,
54540
- meta: () => meta19
54372
+ meta: () => meta18
54541
54373
  });
54542
- var RecallCommand, meta19;
54374
+ var RecallCommand, meta18;
54543
54375
  var init_recall_command = __esm({
54544
54376
  "src/slash-commands/categories/memory/recall.command.ts"() {
54545
54377
  init_base_command();
@@ -54659,7 +54491,7 @@ _Showing ${limit} of ${memories.length} results. Use --limit=<n> to see more._`;
54659
54491
  return { success: true };
54660
54492
  }
54661
54493
  };
54662
- meta19 = {
54494
+ meta18 = {
54663
54495
  name: "recall",
54664
54496
  category: "memory",
54665
54497
  description: "Retrieve stored memories from persistent storage",
@@ -54681,9 +54513,9 @@ _Showing ${limit} of ${memories.length} results. Use --limit=<n> to see more._`;
54681
54513
  var forget_command_exports = {};
54682
54514
  __export(forget_command_exports, {
54683
54515
  ForgetCommand: () => ForgetCommand,
54684
- meta: () => meta20
54516
+ meta: () => meta19
54685
54517
  });
54686
- var ForgetCommand, meta20;
54518
+ var ForgetCommand, meta19;
54687
54519
  var init_forget_command = __esm({
54688
54520
  "src/slash-commands/categories/memory/forget.command.ts"() {
54689
54521
  init_base_command();
@@ -54835,7 +54667,7 @@ var init_forget_command = __esm({
54835
54667
  return { success: true };
54836
54668
  }
54837
54669
  };
54838
- meta20 = {
54670
+ meta19 = {
54839
54671
  name: "forget",
54840
54672
  category: "memory",
54841
54673
  description: "Remove memories from persistent storage",
@@ -54857,9 +54689,9 @@ var init_forget_command = __esm({
54857
54689
  var memory_status_command_exports = {};
54858
54690
  __export(memory_status_command_exports, {
54859
54691
  MemoryStatusCommand: () => MemoryStatusCommand,
54860
- meta: () => meta21
54692
+ meta: () => meta20
54861
54693
  });
54862
- var MemoryStatusCommand, meta21;
54694
+ var MemoryStatusCommand, meta20;
54863
54695
  var init_memory_status_command = __esm({
54864
54696
  "src/slash-commands/categories/memory/memory-status.command.ts"() {
54865
54697
  init_base_command();
@@ -55075,7 +54907,7 @@ var init_memory_status_command = __esm({
55075
54907
  return { success: true };
55076
54908
  }
55077
54909
  };
55078
- meta21 = {
54910
+ meta20 = {
55079
54911
  name: "memory-status",
55080
54912
  category: "memory",
55081
54913
  description: "Show memory usage statistics and health",
@@ -56340,9 +56172,9 @@ var image_command_exports = {};
56340
56172
  __export(image_command_exports, {
56341
56173
  ImageCommand: () => ImageCommand,
56342
56174
  default: () => image_command_default,
56343
- meta: () => meta22
56175
+ meta: () => meta21
56344
56176
  });
56345
- var ImageCommand, meta22, image_command_default;
56177
+ var ImageCommand, meta21, image_command_default;
56346
56178
  var init_image_command = __esm({
56347
56179
  "src/slash-commands/categories/media/image.command.ts"() {
56348
56180
  init_base_command();
@@ -56664,7 +56496,7 @@ var init_image_command = __esm({
56664
56496
  }
56665
56497
  }
56666
56498
  };
56667
- meta22 = {
56499
+ meta21 = {
56668
56500
  name: "image",
56669
56501
  category: "media",
56670
56502
  description: "Generate images using Gemini (multi-stage orchestrator)",
@@ -56891,9 +56723,9 @@ var video_command_exports = {};
56891
56723
  __export(video_command_exports, {
56892
56724
  VideoCommand: () => VideoCommand,
56893
56725
  default: () => video_command_default,
56894
- meta: () => meta23
56726
+ meta: () => meta22
56895
56727
  });
56896
- var VideoCommand, meta23, video_command_default;
56728
+ var VideoCommand, meta22, video_command_default;
56897
56729
  var init_video_command = __esm({
56898
56730
  "src/slash-commands/categories/media/video.command.ts"() {
56899
56731
  init_base_command();
@@ -57191,7 +57023,7 @@ var init_video_command = __esm({
57191
57023
  }
57192
57024
  }
57193
57025
  };
57194
- meta23 = {
57026
+ meta22 = {
57195
57027
  name: "video",
57196
57028
  category: "media",
57197
57029
  description: "Generate videos using Gemini (frames fallback when mux unavailable)",
@@ -61208,7 +61040,7 @@ var init_KnowledgeProvider = __esm({
61208
61040
  var resume_command_exports = {};
61209
61041
  __export(resume_command_exports, {
61210
61042
  ResumeCommand: () => ResumeCommand,
61211
- meta: () => meta24
61043
+ meta: () => meta23
61212
61044
  });
61213
61045
  function truncate2(s2, n) {
61214
61046
  return s2.length <= n ? s2 : s2.slice(0, n) + "\u2026";
@@ -61292,7 +61124,7 @@ async function readDebugJournalListSafe(cwd2, count) {
61292
61124
  return [];
61293
61125
  }
61294
61126
  }
61295
- var ResumeCommand, meta24;
61127
+ var ResumeCommand, meta23;
61296
61128
  var init_resume_command = __esm({
61297
61129
  "src/slash-commands/categories/workflow/resume.command.ts"() {
61298
61130
  init_base_command();
@@ -61505,7 +61337,7 @@ Resuming: ${s2.taskId}`);
61505
61337
  return cands[n - 1];
61506
61338
  }
61507
61339
  };
61508
- meta24 = {
61340
+ meta23 = {
61509
61341
  name: "workflow/resume",
61510
61342
  category: "implementation",
61511
61343
  description: "Resume previous task context and propose next /code step",
@@ -61643,12 +61475,12 @@ async function scanRoot(opts) {
61643
61475
  const filepath = path13__namespace.join(cwd2, name2);
61644
61476
  const result = await safeRead(filepath, 512 * 1024, maxLines, signal);
61645
61477
  if (result.head || result.meta) {
61646
- let meta35 = result.meta || object;
61478
+ let meta34 = result.meta || object;
61647
61479
  if (name2 === "package.json" && result.head) {
61648
61480
  try {
61649
61481
  const pkg = JSON.parse(result.head);
61650
- meta35 = {
61651
- ...meta35,
61482
+ meta34 = {
61483
+ ...meta34,
61652
61484
  name: pkg.name,
61653
61485
  version: pkg.version,
61654
61486
  type: pkg.type,
@@ -61661,14 +61493,14 @@ async function scanRoot(opts) {
61661
61493
  workspaces: pkg.workspaces
61662
61494
  };
61663
61495
  } catch (e2) {
61664
- meta35.parseError = true;
61496
+ meta34.parseError = true;
61665
61497
  }
61666
61498
  }
61667
61499
  findings.push({
61668
61500
  file: name2,
61669
61501
  kind: "read",
61670
61502
  head: result.head,
61671
- meta: meta35,
61503
+ meta: meta34,
61672
61504
  truncated: result.truncated
61673
61505
  });
61674
61506
  }
@@ -62006,19 +61838,19 @@ function extractPackageInfo(findings) {
62006
61838
  hasPostinstall: false
62007
61839
  };
62008
61840
  }
62009
- const meta35 = pkgFinding.meta;
61841
+ const meta34 = pkgFinding.meta;
62010
61842
  return {
62011
- name: meta35.name,
62012
- version: meta35.version,
62013
- type: meta35.type,
62014
- scripts: meta35.scripts ? Object.keys(meta35.scripts) : [],
62015
- hasPostinstall: !!meta35.scripts?.postinstall,
62016
- bin: meta35.bin,
62017
- main: meta35.main,
62018
- exports: meta35.exports,
62019
- dependencies: meta35.dependencies || [],
62020
- devDependencies: meta35.devDependencies || [],
62021
- workspaces: meta35.workspaces
61843
+ name: meta34.name,
61844
+ version: meta34.version,
61845
+ type: meta34.type,
61846
+ scripts: meta34.scripts ? Object.keys(meta34.scripts) : [],
61847
+ hasPostinstall: !!meta34.scripts?.postinstall,
61848
+ bin: meta34.bin,
61849
+ main: meta34.main,
61850
+ exports: meta34.exports,
61851
+ dependencies: meta34.dependencies || [],
61852
+ devDependencies: meta34.devDependencies || [],
61853
+ workspaces: meta34.workspaces
62022
61854
  };
62023
61855
  }
62024
61856
  function collectWarnings(pkg, findings, cwd2) {
@@ -62169,9 +62001,9 @@ function calculateMetrics(findings, startTime) {
62169
62001
  }
62170
62002
  function renderFinding(f3) {
62171
62003
  const title = `### ${f3.kind.toUpperCase()} \u2014 ${f3.file}`;
62172
- let meta35 = "";
62004
+ let meta34 = "";
62173
62005
  if (f3.meta && Object.keys(f3.meta).length > 0) {
62174
- meta35 = `
62006
+ meta34 = `
62175
62007
  <details><summary>meta</summary>
62176
62008
 
62177
62009
  \`\`\`json
@@ -62192,7 +62024,7 @@ ${f3.head.trim()}
62192
62024
  }
62193
62025
  const truncInfo = f3.truncated ? `
62194
62026
  > _truncated preview_` : "";
62195
- return [title, meta35, content, truncInfo, ""].join("\n");
62027
+ return [title, meta34, content, truncInfo, ""].join("\n");
62196
62028
  }
62197
62029
  function safeJsonStringify(obj) {
62198
62030
  try {
@@ -70949,9 +70781,9 @@ var init_update = __esm({
70949
70781
  var UpdateCommand_exports = {};
70950
70782
  __export(UpdateCommand_exports, {
70951
70783
  UpdateCommand: () => UpdateCommand2,
70952
- meta: () => meta25
70784
+ meta: () => meta24
70953
70785
  });
70954
- var UpdateCommand2, meta25;
70786
+ var UpdateCommand2, meta24;
70955
70787
  var init_UpdateCommand = __esm({
70956
70788
  "src/slash-commands/categories/core/handlers/UpdateCommand.ts"() {
70957
70789
  init_base_command();
@@ -71102,7 +70934,7 @@ var init_UpdateCommand = __esm({
71102
70934
  return errors;
71103
70935
  }
71104
70936
  };
71105
- meta25 = {
70937
+ meta24 = {
71106
70938
  name: "update",
71107
70939
  category: "core",
71108
70940
  description: "Update project dependencies, configurations, and system components",
@@ -71774,9 +71606,9 @@ var init_LoginCommand = __esm({
71774
71606
  var LogoutCommand_exports = {};
71775
71607
  __export(LogoutCommand_exports, {
71776
71608
  LogoutCommand: () => LogoutCommand,
71777
- meta: () => meta26
71609
+ meta: () => meta25
71778
71610
  });
71779
- var LogoutCommand, meta26;
71611
+ var LogoutCommand, meta25;
71780
71612
  var init_LogoutCommand = __esm({
71781
71613
  "src/slash-commands/categories/auth/LogoutCommand.ts"() {
71782
71614
  init_base_command();
@@ -71835,7 +71667,7 @@ var init_LogoutCommand = __esm({
71835
71667
  }
71836
71668
  }
71837
71669
  };
71838
- meta26 = {
71670
+ meta25 = {
71839
71671
  name: "logout",
71840
71672
  category: "auth",
71841
71673
  description: "Sign out of MARIA",
@@ -71853,9 +71685,9 @@ var init_LogoutCommand = __esm({
71853
71685
  var UsageCommand_exports = {};
71854
71686
  __export(UsageCommand_exports, {
71855
71687
  UsageCommand: () => UsageCommand,
71856
- meta: () => meta27
71688
+ meta: () => meta26
71857
71689
  });
71858
- var UsageCommand, meta27;
71690
+ var UsageCommand, meta26;
71859
71691
  var init_UsageCommand = __esm({
71860
71692
  "src/slash-commands/categories/auth/UsageCommand.ts"() {
71861
71693
  init_base_command();
@@ -71866,7 +71698,7 @@ var init_UsageCommand = __esm({
71866
71698
  category = "auth";
71867
71699
  description = "Check usage quota";
71868
71700
  aliases = ["quota"];
71869
- usage = "";
71701
+ usage = "/usage";
71870
71702
  examples = [
71871
71703
  {
71872
71704
  input: "/usage",
@@ -71877,20 +71709,12 @@ var init_UsageCommand = __esm({
71877
71709
  async execute(args2, context2) {
71878
71710
  const startTime = Date.now();
71879
71711
  try {
71880
- const isAuth = Boolean(context2?.user) || await authManager.isAuthenticated();
71881
- if (!isAuth) {
71882
- return this.error("\u{1F510} Authentication required \xB7 Run: /login");
71883
- }
71884
- const { cliAuth: cliAuth2 } = await Promise.resolve().then(() => (init_CLIAuthService(), CLIAuthService_exports));
71885
- const api = cliAuth2.getAPIClient();
71886
- const usage = await api.getUsage();
71887
- if (!usage) {
71888
- return this.error("Unable to fetch usage info \xB7 Try again");
71889
- }
71890
- const user = await authManager.getCurrentUser().catch(() => null);
71712
+ const user = context2?.user || await authManager.getCurrentUser();
71713
+ const reqUsed = Number(user?.usage?.requests ?? 0);
71714
+ const reqLimit = Number(user?.usage?.requestLimit ?? 0);
71891
71715
  const plan = user?.plan ? String(user.plan) : "Free";
71892
- const quotaLeft = Math.max(0, Number(usage?.limits?.req ?? 0) - Number(usage?.used?.req ?? 0));
71893
- const resetDate = this.getResetDate(usage?.resetAt);
71716
+ const quotaLeft = Math.max(0, reqLimit > 0 ? reqLimit - reqUsed : 0);
71717
+ const resetDate = this.getResetDate(user?.usage?.resetDate);
71894
71718
  await trackCommand({
71895
71719
  cmd: "usage",
71896
71720
  status: "success",
@@ -71899,7 +71723,7 @@ var init_UsageCommand = __esm({
71899
71723
  quotaLeft
71900
71724
  });
71901
71725
  const message = `${plan} \xB7 ${quotaLeft} req left \xB7 resets ${resetDate}`;
71902
- return this.success(withQuotaFooter(message, quotaLeft));
71726
+ return this.success(message);
71903
71727
  } catch (error2) {
71904
71728
  await trackCommand({
71905
71729
  cmd: "usage",
@@ -71908,7 +71732,7 @@ var init_UsageCommand = __esm({
71908
71732
  plan: "unknown",
71909
71733
  quotaLeft: 0
71910
71734
  });
71911
- if (error2.message?.includes("Authentication required")) {
71735
+ if (error2.message?.includes("Authentication required") || error2.name === "AuthenticationRequiredError") {
71912
71736
  return this.error("\u{1F510} Authentication required \xB7 Run: /login");
71913
71737
  }
71914
71738
  return this.error("Unable to fetch usage \xB7 Check your connection");
@@ -71930,12 +71754,12 @@ var init_UsageCommand = __esm({
71930
71754
  return resetDate.toISOString().split("T")[0];
71931
71755
  }
71932
71756
  };
71933
- meta27 = {
71757
+ meta26 = {
71934
71758
  name: "usage",
71935
71759
  category: "auth",
71936
71760
  description: "Check usage quota",
71937
71761
  aliases: ["quota"],
71938
- usage: "",
71762
+ usage: "/usage",
71939
71763
  examples: [
71940
71764
  "/usage"
71941
71765
  ],
@@ -72008,9 +71832,9 @@ var l2r_command_exports = {};
72008
71832
  __export(l2r_command_exports, {
72009
71833
  L2RCommand: () => L2RCommand,
72010
71834
  default: () => l2r_command_default,
72011
- meta: () => meta28
71835
+ meta: () => meta27
72012
71836
  });
72013
- var L2RCommand, meta28, l2r_command_default;
71837
+ var L2RCommand, meta27, l2r_command_default;
72014
71838
  var init_l2r_command = __esm({
72015
71839
  "src/slash-commands/categories/learning/l2r.command.ts"() {
72016
71840
  init_base_command();
@@ -73007,7 +72831,7 @@ var init_l2r_command = __esm({
73007
72831
  return { success: true };
73008
72832
  }
73009
72833
  };
73010
- meta28 = {
72834
+ meta27 = {
73011
72835
  name: "l2r",
73012
72836
  category: "learning",
73013
72837
  description: "\u{1F3AF} Learning-to-Rank system with 44-dimension features and model training *GPU needed - Local LLM only (Pro+ members only)",
@@ -73031,9 +72855,9 @@ var search_command_exports = {};
73031
72855
  __export(search_command_exports, {
73032
72856
  GraphRAGSearchCommand: () => GraphRAGSearchCommand,
73033
72857
  default: () => search_command_default,
73034
- meta: () => meta29
72858
+ meta: () => meta28
73035
72859
  });
73036
- var GraphRAGSearchCommand, meta29, search_command_default;
72860
+ var GraphRAGSearchCommand, meta28, search_command_default;
73037
72861
  var init_search_command = __esm({
73038
72862
  "src/slash-commands/categories/graphrag/search.command.ts"() {
73039
72863
  init_base_command();
@@ -73446,7 +73270,7 @@ var init_search_command = __esm({
73446
73270
  return { success: true };
73447
73271
  }
73448
73272
  };
73449
- meta29 = {
73273
+ meta28 = {
73450
73274
  name: "search",
73451
73275
  category: "graphrag",
73452
73276
  description: "\u{1F50D} Graph RAG search with BM25, vector, and knowledge graph hybrid search *GPU needed - Local LLM only (Pro+ members only)",
@@ -73469,9 +73293,9 @@ var language_command_exports = {};
73469
73293
  __export(language_command_exports, {
73470
73294
  LanguageCommand: () => LanguageCommand,
73471
73295
  default: () => language_command_default,
73472
- meta: () => meta30
73296
+ meta: () => meta29
73473
73297
  });
73474
- var LanguageCommand, meta30, language_command_default;
73298
+ var LanguageCommand, meta29, language_command_default;
73475
73299
  var init_language_command = __esm({
73476
73300
  "src/slash-commands/categories/multilingual/language.command.ts"() {
73477
73301
  init_base_command();
@@ -74161,7 +73985,7 @@ var init_language_command = __esm({
74161
73985
  return { success: true };
74162
73986
  }
74163
73987
  };
74164
- meta30 = {
73988
+ meta29 = {
74165
73989
  name: "language",
74166
73990
  category: "multilingual",
74167
73991
  description: "\u{1F30D} Language detection, weights configuration, and multilingual processing",
@@ -74616,14 +74440,14 @@ var sales_dashboard_command_exports = {};
74616
74440
  __export(sales_dashboard_command_exports, {
74617
74441
  SalesDashboardCommand: () => SalesDashboardCommand,
74618
74442
  default: () => sales_dashboard_command_default,
74619
- meta: () => meta31
74443
+ meta: () => meta30
74620
74444
  });
74621
- var meta31, SalesDashboardCommand, sales_dashboard_command_default;
74445
+ var meta30, SalesDashboardCommand, sales_dashboard_command_default;
74622
74446
  var init_sales_dashboard_command = __esm({
74623
74447
  "src/slash-commands/categories/business/sales-dashboard.command.ts"() {
74624
74448
  init_BaseCommand();
74625
74449
  init_deps();
74626
- meta31 = {
74450
+ meta30 = {
74627
74451
  name: "sales-dashboard",
74628
74452
  category: "business",
74629
74453
  description: "Interactive TUI sales dashboard with real-time updates",
@@ -74632,10 +74456,10 @@ var init_sales_dashboard_command = __esm({
74632
74456
  status: "stable"
74633
74457
  };
74634
74458
  SalesDashboardCommand = class extends BaseCommand2 {
74635
- name = meta31.name;
74636
- category = meta31.category;
74637
- description = meta31.description;
74638
- aliases = meta31.aliases || [];
74459
+ name = meta30.name;
74460
+ category = meta30.category;
74461
+ description = meta30.description;
74462
+ aliases = meta30.aliases || [];
74639
74463
  usage = "/sales-dashboard [--profile sales|executive|sales_manager] [--format text|json|tui|slack]";
74640
74464
  examples = [
74641
74465
  { input: "/sales-dashboard --profile executive", description: "Executive summary view" },
@@ -74647,7 +74471,7 @@ var init_sales_dashboard_command = __esm({
74647
74471
  async execute(args2, context2) {
74648
74472
  const options = this.parseOptions(args2);
74649
74473
  return withDependencyGuard(
74650
- meta31.deps || [],
74474
+ meta30.deps || [],
74651
74475
  async () => this.executeWithRealData(options, context2),
74652
74476
  () => this.executeWithMockData(options)
74653
74477
  );
@@ -74917,9 +74741,9 @@ var gpu_command_exports = {};
74917
74741
  __export(gpu_command_exports, {
74918
74742
  GPUCommand: () => GPUCommand,
74919
74743
  default: () => gpu_command_default,
74920
- meta: () => meta32
74744
+ meta: () => meta31
74921
74745
  });
74922
- var GPUCommand, meta32, gpu_command_default;
74746
+ var GPUCommand, meta31, gpu_command_default;
74923
74747
  var init_gpu_command = __esm({
74924
74748
  "src/slash-commands/categories/ai/gpu.command.ts"() {
74925
74749
  init_base_command();
@@ -75481,7 +75305,7 @@ var init_gpu_command = __esm({
75481
75305
  return { success: true };
75482
75306
  }
75483
75307
  };
75484
- meta32 = {
75308
+ meta31 = {
75485
75309
  name: "gpu",
75486
75310
  category: "ai",
75487
75311
  description: "GPU status, benchmarking, and management capabilities *GPU needed - Local LLM only (Pro+ members only)",
@@ -75565,9 +75389,9 @@ var init_plan_aware_ui = __esm({
75565
75389
  var upgrade_command_exports = {};
75566
75390
  __export(upgrade_command_exports, {
75567
75391
  UpgradeCommand: () => UpgradeCommand,
75568
- meta: () => meta33
75392
+ meta: () => meta32
75569
75393
  });
75570
- var UpgradeCommand, meta33;
75394
+ var UpgradeCommand, meta32;
75571
75395
  var init_upgrade_command = __esm({
75572
75396
  "src/slash-commands/categories/system/upgrade.command.ts"() {
75573
75397
  init_base_command();
@@ -76063,7 +75887,7 @@ var init_upgrade_command = __esm({
76063
75887
  };
76064
75888
  }
76065
75889
  };
76066
- meta33 = {
75890
+ meta32 = {
76067
75891
  name: "upgrade",
76068
75892
  category: "system",
76069
75893
  description: "Upgrade your subscription plan",
@@ -76221,6 +76045,7 @@ var init_EvaluationOrchestrator = __esm({
76221
76045
  init_CriteriaManager();
76222
76046
  init_ScoringEngine();
76223
76047
  init_api_caller();
76048
+ init_local_llm_manager();
76224
76049
  VIDEO_MIME_MAP = {
76225
76050
  ".mp4": "video/mp4",
76226
76051
  ".m4v": "video/mp4",
@@ -76238,6 +76063,27 @@ var init_EvaluationOrchestrator = __esm({
76238
76063
  async assess(options) {
76239
76064
  const criteriaPath = options.criteria ? path13__namespace.default.isAbsolute(options.criteria) ? options.criteria : path13__namespace.default.join(this.projectRoot, options.criteria) : this.criteriaManager.getDefaultPath();
76240
76065
  const needGenerate = !!options.regenerateCriteria || !await this.exists(criteriaPath);
76066
+ const isEnterprise = await getEnterpriseFlag().catch(() => false);
76067
+ let forcedLocalSel;
76068
+ if (isEnterprise) {
76069
+ try {
76070
+ const explicitProvider = (options.llmProvider || "").toLowerCase() || void 0;
76071
+ let explicitModel = (options.llmModel || "").trim() || void 0;
76072
+ let inferredProvider;
76073
+ if (explicitModel && explicitModel.includes("/")) inferredProvider = explicitModel.split("/")[0].toLowerCase();
76074
+ const wantProvider = explicitProvider || inferredProvider;
76075
+ const sel = await selectLocalProviderAndModel({
76076
+ ...explicitModel ? { explicitModel } : {},
76077
+ ...wantProvider ? { explicitProvider: wantProvider } : {}
76078
+ }).catch(() => null);
76079
+ if (sel) forcedLocalSel = { provider: sel.provider, model: explicitModel || sel.model };
76080
+ } catch {
76081
+ }
76082
+ if (!forcedLocalSel) {
76083
+ const sel = await selectLocalProviderAndModel().catch(() => null);
76084
+ if (sel) forcedLocalSel = { provider: sel.provider, model: sel.model };
76085
+ }
76086
+ }
76241
76087
  if (needGenerate) {
76242
76088
  try {
76243
76089
  await this.generateCriteriaWithLLM(
@@ -76247,7 +76093,8 @@ var init_EvaluationOrchestrator = __esm({
76247
76093
  code: options.code,
76248
76094
  files: options.files || []
76249
76095
  },
76250
- { provider: options.llmProvider, model: options.llmModel }
76096
+ { provider: options.llmProvider, model: options.llmModel },
76097
+ forcedLocalSel
76251
76098
  );
76252
76099
  } catch {
76253
76100
  await this.criteriaManager.ensureCriteriaFile(criteriaPath);
@@ -76265,7 +76112,7 @@ var init_EvaluationOrchestrator = __esm({
76265
76112
  code: options.code,
76266
76113
  files
76267
76114
  };
76268
- const result = await this.scoreWithLLM(input3, criteria);
76115
+ const result = await this.scoreWithLLM(input3, criteria, forcedLocalSel);
76269
76116
  result.files = input3.files || [];
76270
76117
  return { criteriaPath, result };
76271
76118
  }
@@ -76277,7 +76124,7 @@ var init_EvaluationOrchestrator = __esm({
76277
76124
  return false;
76278
76125
  }
76279
76126
  }
76280
- async generateCriteriaWithLLM(criteriaPath, context2, llm) {
76127
+ async generateCriteriaWithLLM(criteriaPath, context2, llm, forcedLocalSel) {
76281
76128
  const relPath = path13__namespace.default.relative(this.projectRoot, criteriaPath).replace(/\\/g, "/");
76282
76129
  const targetPath = relPath.startsWith(".") ? relPath : relPath;
76283
76130
  const dir = path13__namespace.default.dirname(criteriaPath);
@@ -76305,7 +76152,7 @@ ${context2.files.map((f3) => `- ${f3}`).join("\n")}` : void 0
76305
76152
  ].filter(Boolean).join("\n\n");
76306
76153
  let attachments = [];
76307
76154
  try {
76308
- const mt = await import('mime-types');
76155
+ const mt = __require("mime-types");
76309
76156
  for (const p2 of context2.files || []) {
76310
76157
  try {
76311
76158
  const abs = path13__namespace.default.isAbsolute(p2) ? p2 : path13__namespace.default.join(this.projectRoot, p2);
@@ -76317,19 +76164,41 @@ ${context2.files.map((f3) => `- ${f3}`).join("\n")}` : void 0
76317
76164
  }
76318
76165
  } catch {
76319
76166
  }
76320
- const response = await callAPI("/v1/ai-proxy", {
76321
- method: "POST",
76322
- body: {
76323
- prompt: `${system}
76167
+ const isEnterprise = await getEnterpriseFlag().catch(() => false);
76168
+ let content = "";
76169
+ if (isEnterprise) {
76170
+ const fileHints = context2.files && context2.files.length ? `
76171
+ FILES:
76172
+ ${context2.files.map((f3) => `- ${f3}`).join("\n")}` : "";
76173
+ const localPrompt = `${system}
76324
76174
 
76325
76175
  ---
76326
76176
 
76327
- ${user}`,
76328
- taskType: "evaluation",
76329
- ...attachments.length ? { metadata: { attachments } } : {}
76177
+ ${user}${fileHints}`;
76178
+ try {
76179
+ const sel = forcedLocalSel || await selectLocalProviderAndModel();
76180
+ if (sel) {
76181
+ const out = await generateViaCli(sel.provider, sel.model, localPrompt);
76182
+ content = String(out || "").trim();
76183
+ }
76184
+ } catch {
76185
+ content = "";
76330
76186
  }
76331
- });
76332
- const content = (response?.data?.content || response?.output || "").trim();
76187
+ } else {
76188
+ const response = await callAPI("/v1/ai-proxy", {
76189
+ method: "POST",
76190
+ body: {
76191
+ prompt: `${system}
76192
+
76193
+ ---
76194
+
76195
+ ${user}`,
76196
+ taskType: "evaluation",
76197
+ ...attachments.length ? { metadata: { attachments } } : {}
76198
+ }
76199
+ });
76200
+ content = (response?.data?.content || response?.output || "").trim();
76201
+ }
76333
76202
  if (!content) throw new Error("Empty LLM response");
76334
76203
  const fileMap = this.parseFileSections(content);
76335
76204
  let payload;
@@ -76381,7 +76250,7 @@ ${user}`,
76381
76250
  }
76382
76251
  return null;
76383
76252
  }
76384
- async scoreWithLLM(input3, criteria) {
76253
+ async scoreWithLLM(input3, criteria, forcedLocalSel) {
76385
76254
  const criteriaPreview = criteria.items.map((it) => ({ id: it.id, name: it.name, weight: it.weight, rubric: it.rubric })).slice(0, 20);
76386
76255
  const parts = [];
76387
76256
  if (input3.idea) parts.push(`Idea:
@@ -76404,32 +76273,46 @@ ${files.slice(0, 20).map((f3) => `- ${f3.path}`).join("\n")}`
76404
76273
  "Keep reasons short (<= 120 chars)."
76405
76274
  ].join("\n");
76406
76275
  const user = [`Criteria: ${JSON.stringify(criteriaPreview)}`, "Input to evaluate:", bundle].join("\n\n");
76407
- const isProPlus = (() => {
76276
+ const isEnterprise = await getEnterpriseFlag().catch(() => false);
76277
+ let raw = "";
76278
+ if (isEnterprise) {
76279
+ const fileLines = (input3.files || []).map((f3) => {
76280
+ const mime = typeof f3?.mime === "string" ? f3.mime : "application/octet-stream";
76281
+ const sizeHint = typeof f3?.binaryBase64 === "string" && f3.binaryBase64.length ? `${Math.round(f3.binaryBase64.length * 3 / 4)} bytes b64` : typeof f3?.content === "string" ? `${f3.content.length} chars` : "binary";
76282
+ return `- ${f3.path} (${mime}, ${sizeHint})`;
76283
+ });
76284
+ const localUser = [`Criteria: ${JSON.stringify(criteriaPreview)}`, "Input to evaluate:", bundle, fileLines.length ? `Attachments:
76285
+ ${fileLines.join("\n")}` : void 0].filter(Boolean).join("\n\n");
76408
76286
  try {
76409
- return typeof globalThis.__maria_user_plan === "string" && ["PRO", "ULTRA", "ENTERPRISE"].includes(globalThis.__maria_user_plan.toUpperCase());
76287
+ const sel = forcedLocalSel || await selectLocalProviderAndModel();
76288
+ if (sel) {
76289
+ const out = await generateViaCli(sel.provider, sel.model, `${system}
76290
+
76291
+ ---
76292
+
76293
+ ${localUser}`);
76294
+ raw = String(out || "").trim();
76295
+ }
76410
76296
  } catch {
76411
- return false;
76297
+ raw = "";
76412
76298
  }
76413
- })();
76414
- const provider = isProPlus ? "openai" : "google";
76415
- const model = isProPlus ? "gpt-5" : "gemini-2.5-flash";
76416
- const response = await callAPI("/v1/ai-proxy", {
76417
- method: "POST",
76418
- body: {
76419
- provider,
76420
- model,
76421
- prompt: `${system}
76299
+ } else {
76300
+ const response = await callAPI("/v1/ai-proxy", {
76301
+ method: "POST",
76302
+ body: {
76303
+ prompt: `${system}
76422
76304
 
76423
76305
  ---
76424
76306
 
76425
76307
  ${user}`,
76426
- taskType: "evaluation",
76427
- metadata: {
76428
- attachments: (input3.files || []).map((f3) => this.toAttachmentPayload(f3))
76308
+ taskType: "evaluation",
76309
+ metadata: {
76310
+ attachments: (input3.files || []).map((f3) => this.toAttachmentPayload(f3))
76311
+ }
76429
76312
  }
76430
- }
76431
- });
76432
- const raw = (response?.data?.content || response?.output || "").trim();
76313
+ });
76314
+ raw = (response?.data?.content || response?.output || "").trim();
76315
+ }
76433
76316
  if (!raw) throw new Error("Empty LLM scoring response");
76434
76317
  let jsonText = this.extractFirstJsonObject(raw) || raw;
76435
76318
  const sections = this.parseFileSections(raw);
@@ -76629,9 +76512,9 @@ var evaluate_command_exports = {};
76629
76512
  __export(evaluate_command_exports, {
76630
76513
  EvaluateCommand: () => EvaluateCommand,
76631
76514
  default: () => evaluate_command_default,
76632
- meta: () => meta34
76515
+ meta: () => meta33
76633
76516
  });
76634
- var EvaluateCommand, meta34, evaluate_command_default;
76517
+ var EvaluateCommand, meta33, evaluate_command_default;
76635
76518
  var init_evaluate_command = __esm({
76636
76519
  "src/slash-commands/categories/evaluation/evaluate.command.ts"() {
76637
76520
  init_base_command();
@@ -77357,7 +77240,7 @@ ${content}` : content;
77357
77240
  return { success: true };
77358
77241
  }
77359
77242
  };
77360
- meta34 = {
77243
+ meta33 = {
77361
77244
  name: "evaluate",
77362
77245
  category: "evaluation",
77363
77246
  description: "A/B testing and quality evaluation framework",
@@ -77448,14 +77331,6 @@ async function registerBuiltInCommands() {
77448
77331
  } catch (aboutError) {
77449
77332
  console.error("Failed to register about command:", aboutError);
77450
77333
  }
77451
- try {
77452
- const { ChangelogCommand: ChangelogCommand2 } = await Promise.resolve().then(() => (init_changelog_command(), changelog_command_exports));
77453
- const changelogCommand = new ChangelogCommand2();
77454
- if (changelogCommand.initialize) await changelogCommand.initialize();
77455
- commandRegistry.register(changelogCommand);
77456
- } catch (changelogError) {
77457
- console.error("Failed to register changelog command:", changelogError);
77458
- }
77459
77334
  try {
77460
77335
  const { ContactCommand: ContactCommand2 } = await Promise.resolve().then(() => (init_contact_command(), contact_command_exports));
77461
77336
  const contactCommand = new ContactCommand2();
@@ -78073,10 +77948,6 @@ async function handleSlash(input3) {
78073
77948
  } catch {
78074
77949
  }
78075
77950
  }
78076
- if (cmd === "doctor") {
78077
- console.log(chalk14__default.default.white("Run as subcommand: maria doctor"));
78078
- return true;
78079
- }
78080
77951
  if (cmd === "code") {
78081
77952
  if (!await enforceAuth(cmd)) return true;
78082
77953
  }