@bonginkan/maria 4.4.8 → 4.4.9

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MARIA - AI Development Platform v4.4.8
1
+ # MARIA - AI Development Platform v4.4.9
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@bonginkan/maria.svg)](https://www.npmjs.com/package/@bonginkan/maria)
4
4
  [![License](https://img.shields.io/badge/license-Multi--tier-blue.svg)](LICENSE)
@@ -10,6 +10,10 @@
10
10
 
11
11
  > **Enterprise-grade AI development platform with 100% command availability and comprehensive fallback support**
12
12
 
13
+ ## 🚀 What's New in v4.4.9 (November, 2025)
14
+ ### Functional enhancements
15
+ - **Improved image support**
16
+
13
17
  ## 🚀 What's New in v4.4.8 (October, 2025)
14
18
  ### Functional enhancements
15
19
  - **Improved coding**
@@ -932,7 +936,7 @@ await secureWorkflow.executeWithAuth(workflowDefinition, securityContext);
932
936
  ### Quick Installation
933
937
  ```bash
934
938
  # Install globally (recommended)
935
- npm install -g @bonginkan/maria@4.4.8
939
+ npm install -g @bonginkan/maria@4.4.9
936
940
 
937
941
  # Verify installation
938
942
  maria --version # Should show v4.3.9
@@ -1136,7 +1140,7 @@ MARIA CODE is distributed under a comprehensive licensing system designed for in
1136
1140
 
1137
1141
  *MARIA v4.1.4 represents the pinnacle of multimodal AI development platform evolution - combining revolutionary voice-to-code capabilities, advanced memory systems, and comprehensive command ecosystems with enterprise-grade security and performance. This release establishes MARIA as the definitive choice for developers and Fortune 500 enterprises seeking intelligent, multimodal development experiences with GraphRAG intelligence, multilingual support, and zero-anxiety coding workflows.*
1138
1142
 
1139
- **Transform your development experience today**: `npm install -g @bonginkan/maria@4.4.8`
1143
+ **Transform your development experience today**: `npm install -g @bonginkan/maria@4.4.9`
1140
1144
 
1141
1145
  🌐 **Official Website**: [https://maria-code.ai](https://maria-code.ai)
1142
1146
  💬 **Community**: [https://discord.gg/SMSmSGcEQy](https://discord.gg/SMSmSGcEQy)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "lite-1.0.0",
3
- "generatedAt": "2025-11-01T08:07:01.785Z",
3
+ "generatedAt": "2025-11-22T08:13:46.085Z",
4
4
  "totalCommands": 30,
5
5
  "readyCount": 30,
6
6
  "partialCount": 0,
@@ -8344,7 +8344,7 @@ var init_manager = __esm({
8344
8344
  return [
8345
8345
  "gemini-2.5-pro",
8346
8346
  "gemini-2.5-flash",
8347
- "gemini-2.5-flash-image-preview",
8347
+ "gemini-3-pro-image-preview",
8348
8348
  "gemini-2.5-flash-lite"
8349
8349
  ];
8350
8350
  }
@@ -9195,7 +9195,7 @@ var init_config_manager = __esm({
9195
9195
  "claude-opus-4-20250514",
9196
9196
  "claude-sonnet-4-20250514"
9197
9197
  ],
9198
- google: ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-image-preview", "gemini-2.5-flash-lite", "gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"],
9198
+ google: ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-3-pro-image-preview", "gemini-2.5-flash-lite", "gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"],
9199
9199
  groq: [
9200
9200
  "llama-3.1-70b-versatile",
9201
9201
  "llama-3.1-8b-instant",
@@ -25922,8 +25922,8 @@ var require_package = __commonJS({
25922
25922
  "package.json"(exports, module) {
25923
25923
  module.exports = {
25924
25924
  name: "@bonginkan/maria",
25925
- version: "4.4.8",
25926
- description: "\u{1F680} MARIA v4.4.8 - 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.",
25925
+ version: "4.4.9",
25926
+ description: "\u{1F680} MARIA v4.4.9 - 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.",
25927
25927
  keywords: [
25928
25928
  "ai",
25929
25929
  "cli",
@@ -28078,7 +28078,7 @@ var init_AuthenticationManager = __esm({
28078
28078
  const response = await fetch(`${this.apiBase}/api/user/profile`, {
28079
28079
  headers: {
28080
28080
  "Authorization": `Bearer ${tokens2.accessToken}`,
28081
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.8"}`
28081
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.9"}`
28082
28082
  }
28083
28083
  });
28084
28084
  if (response.status === 401) {
@@ -28755,7 +28755,7 @@ async function callApi(path69, init3 = {}) {
28755
28755
  "Authorization": `Bearer ${token}`,
28756
28756
  "X-Device-Id": getDeviceId(),
28757
28757
  "X-Session-Id": getSessionId() || "",
28758
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.8"}`,
28758
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.4.9"}`,
28759
28759
  "Content-Type": init3.headers?.["Content-Type"] || "application/json"
28760
28760
  });
28761
28761
  const doFetch = async (token) => {
@@ -40701,7 +40701,7 @@ var init_about_command = __esm({
40701
40701
  async execute(args2, context2) {
40702
40702
  const output3 = [];
40703
40703
  output3.push("");
40704
- output3.push(chalk13__default.default.cyan.bold("About MARIA v4.4.8"));
40704
+ output3.push(chalk13__default.default.cyan.bold("About MARIA v4.4.9"));
40705
40705
  output3.push(chalk13__default.default.gray("\u2550".repeat(40)));
40706
40706
  output3.push("");
40707
40707
  output3.push(chalk13__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
@@ -40777,7 +40777,7 @@ var init_contact_command = __esm({
40777
40777
  output3.push("");
40778
40778
  output3.push(chalk13__default.default.white.bold("Company Information:"));
40779
40779
  output3.push(" Company: Bonginkan");
40780
- output3.push(" Product: MARIA v4.4.8");
40780
+ output3.push(" Product: MARIA v4.4.9");
40781
40781
  output3.push(" Website: https://bonginkan.ai");
40782
40782
  output3.push(" Product Site: https://maria-code.ai");
40783
40783
  output3.push("");
@@ -54755,7 +54755,7 @@ var init_types4 = __esm({
54755
54755
  PROVIDER_MATRIX = [
54756
54756
  {
54757
54757
  provider: "google",
54758
- model: "gemini-2.5-flash-image-preview",
54758
+ model: "gemini-3-pro-image-preview",
54759
54759
  kind: "image",
54760
54760
  maxImageSize: [2048, 2048],
54761
54761
  supportedImageFormats: ["png", "webp", "jpg"],
@@ -55562,7 +55562,7 @@ var init_gemini_media = __esm({
55562
55562
  }
55563
55563
  const { GoogleGenAI } = __require("@google/genai");
55564
55564
  this.ai = new GoogleGenAI({ apiKey });
55565
- this.primaryModel = opts?.model || process.env.MARIA_IMAGE_MODEL || "gemini-2.5-flash-image-preview";
55565
+ this.primaryModel = opts?.model || process.env.MARIA_IMAGE_MODEL || "gemini-3-pro-image-preview";
55566
55566
  }
55567
55567
  async generateImage(req) {
55568
55568
  const modelName = this.primaryModel;
@@ -55579,11 +55579,8 @@ var init_gemini_media = __esm({
55579
55579
  try {
55580
55580
  resp = await this.ai.models.generateContent({
55581
55581
  model: modelName,
55582
- contents: [{ role: "user", parts: [{ text: String(req.prompt) }] }],
55583
- generationConfig: {
55584
- responseModalities: ["IMAGE"],
55585
- responseMimeType: targetMime
55586
- }
55582
+ // For @google/genai, a simple string prompt is sufficient here.
55583
+ contents: String(req.prompt ?? "")
55587
55584
  });
55588
55585
  } catch (err) {
55589
55586
  const errMsg = err?.message || String(err);
@@ -55591,15 +55588,19 @@ var init_gemini_media = __esm({
55591
55588
  `GeminiMediaProvider.generateImage request failed: model=${modelName}; prompt="${promptPreview}"; error=${errMsg}`
55592
55589
  );
55593
55590
  }
55594
- const feedback = resp?.response?.promptFeedback;
55591
+ const root = resp?.response ?? resp;
55592
+ const feedback = root?.promptFeedback || root?.prompt_feedback;
55595
55593
  const blockReason = feedback?.blockReason || feedback?.block_reason;
55596
55594
  if (blockReason) {
55597
55595
  const modelName2 = this.primaryModel;
55598
55596
  const reason = String(blockReason);
55599
55597
  throw new Error(`GeminiMediaProvider.policy_violation: model=${modelName2}; reason=${reason}`);
55600
55598
  }
55601
- const parts = resp?.response?.candidates?.[0]?.content?.parts || [];
55602
- for (const p2 of parts) {
55599
+ const candidates = root?.candidates ?? [];
55600
+ const parts = candidates?.[0]?.content?.parts || [];
55601
+ for (let i2 = parts.length - 1; i2 >= 0; i2--) {
55602
+ const p2 = parts[i2];
55603
+ if (p2?.thought === true) continue;
55603
55604
  const data = p2?.inlineData?.data || p2?.inline_data?.data;
55604
55605
  const mime = p2?.inlineData?.mimeType || p2?.inline_data?.mime_type || p2?.inline_data?.mimeType || p2?.inlineData?.mime_type;
55605
55606
  if (data) {
@@ -55607,22 +55608,17 @@ var init_gemini_media = __esm({
55607
55608
  if (buf.length > 0) return { bytes: buf, mime: typeof mime === "string" ? mime : targetMime };
55608
55609
  }
55609
55610
  }
55610
- try {
55611
- const imagenModel = process.env.MARIA_IMAGE_FALLBACK_MODEL || "imagen-4.0-generate-001";
55612
- const r2 = await this.ai.models.generateImages({
55613
- model: imagenModel,
55614
- prompt: String(req.prompt)
55615
- });
55616
- const img0 = r2?.generatedImages?.[0]?.image;
55617
- const bytesB64 = img0?.imageBytes || img0?.bytesBase64Encoded;
55618
- if (bytesB64) {
55619
- const buf = Buffer.from(String(bytesB64), "base64");
55620
- if (buf.length > 0) return { bytes: buf, mime: targetMime };
55611
+ for (let i2 = parts.length - 1; i2 >= 0; i2--) {
55612
+ const p2 = parts[i2];
55613
+ const data = p2?.inlineData?.data || p2?.inline_data?.data;
55614
+ const mime = p2?.inlineData?.mimeType || p2?.inline_data?.mime_type || p2?.inline_data?.mimeType || p2?.inlineData?.mime_type;
55615
+ if (data) {
55616
+ const buf = Buffer.from(String(data), "base64");
55617
+ if (buf.length > 0) return { bytes: buf, mime: typeof mime === "string" ? mime : targetMime };
55621
55618
  }
55622
- } catch {
55623
55619
  }
55624
- const candidatesLen = resp?.response?.candidates?.length ?? 0;
55625
- const finish = resp?.response?.candidates?.[0]?.finishReason || resp?.response?.promptFeedback?.blockReason || "unknown";
55620
+ const candidatesLen = candidates.length ?? 0;
55621
+ const finish = candidates?.[0]?.finishReason || root?.promptFeedback?.blockReason || "unknown";
55626
55622
  const firstPartKeys = parts[0] ? Object.keys(parts[0]).join(",") : "n/a";
55627
55623
  throw new Error(
55628
55624
  `GeminiMediaProvider.generateImage: no inline image returned; model=${modelName}; prompt="${promptPreview}"; candidates=${candidatesLen}; parts=${parts.length}; firstPartKeys=${firstPartKeys}; finish=${finish}`