@bonginkan/maria 4.3.22 → 4.3.23

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
@@ -1704,7 +1704,7 @@ var init_AuthenticationManager = __esm({
1704
1704
  const response = await fetch(`${this.apiBase}/api/user/profile`, {
1705
1705
  headers: {
1706
1706
  "Authorization": `Bearer ${tokens2.accessToken}`,
1707
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.22"}`
1707
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.23"}`
1708
1708
  }
1709
1709
  });
1710
1710
  if (response.status === 401) {
@@ -2407,7 +2407,7 @@ async function callApi(path60, init3 = {}) {
2407
2407
  "Authorization": `Bearer ${token}`,
2408
2408
  "X-Device-Id": getDeviceId(),
2409
2409
  "X-Session-Id": getSessionId() || "",
2410
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.22"}`,
2410
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.23"}`,
2411
2411
  "Content-Type": init3.headers?.["Content-Type"] || "application/json"
2412
2412
  });
2413
2413
  const doFetch = async (token) => {
@@ -16121,8 +16121,8 @@ var require_package = __commonJS({
16121
16121
  "package.json"(exports, module) {
16122
16122
  module.exports = {
16123
16123
  name: "@bonginkan/maria",
16124
- version: "4.3.22",
16125
- description: "\u{1F680} MARIA v4.3.22 - 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.",
16124
+ version: "4.3.23",
16125
+ description: "\u{1F680} MARIA v4.3.23 - 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.",
16126
16126
  keywords: [
16127
16127
  "ai",
16128
16128
  "cli",
@@ -23704,11 +23704,20 @@ var init_video_command = __esm({
23704
23704
  model: cli.model,
23705
23705
  seed: cli.seed
23706
23706
  };
23707
- const apiRes = await callApiJson("/api/v1/video", {
23707
+ const resp = await callApi("/api/v1/video", {
23708
23708
  method: "POST",
23709
23709
  body: JSON.stringify(body),
23710
23710
  headers: { "Content-Type": "application/json" }
23711
23711
  });
23712
+ if (!resp.ok) {
23713
+ const data = await resp.json().catch(() => ({}));
23714
+ const code = data?.error ? String(data.error) : void 0;
23715
+ const msg = data?.message ? String(data.message) : `API error: ${resp.status}`;
23716
+ const hint = data?.hint ? String(data.hint) : "";
23717
+ const composed = hint ? `${msg} (${code || "error"}) \u2014 ${hint}` : code ? `${msg} (${code})` : msg;
23718
+ return this.error(composed);
23719
+ }
23720
+ const apiRes = await resp.json();
23712
23721
  const filesInline = apiRes?.data?.filesInline || [];
23713
23722
  if (filesInline.length > 0) {
23714
23723
  const pathMod = await import('path');
@@ -23821,6 +23830,8 @@ var init_video_command = __esm({
23821
23830
  }
23822
23831
  return this.success(line);
23823
23832
  } catch (e2) {
23833
+ const m2 = e2?.message ? String(e2.message) : String(e2);
23834
+ return this.error(m2.startsWith("ERROR:") ? m2 : `ERROR: ${m2}`);
23824
23835
  }
23825
23836
  }
23826
23837
  const res = await runVideoPipeline({
@@ -25742,7 +25753,7 @@ var init_about_command = __esm({
25742
25753
  async execute(args2, context2) {
25743
25754
  const output3 = [];
25744
25755
  output3.push("");
25745
- output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.22"));
25756
+ output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.23"));
25746
25757
  output3.push(chalk40__default.default.gray("\u2550".repeat(40)));
25747
25758
  output3.push("");
25748
25759
  output3.push(chalk40__default.default.white.bold("MARIA - Minimal API, Maximum Power"));