@bonginkan/maria 4.3.18 → 4.3.20
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 +4 -4
- package/dist/READY.manifest.json +1 -1
- package/dist/bin/maria.cjs +31 -7
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +31 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/server/express-server.cjs +1 -1
- package/dist/server/express-server.js +1 -1
- package/dist/server-express.cjs +1 -1
- package/dist/server-express.cjs.map +1 -1
- package/package.json +2 -2
- package/src/slash-commands/READY.manifest.json +1 -1
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.
|
|
1707
|
+
"User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.20"}`
|
|
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.
|
|
2410
|
+
"User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.3.20"}`,
|
|
2411
2411
|
"Content-Type": init3.headers?.["Content-Type"] || "application/json"
|
|
2412
2412
|
});
|
|
2413
2413
|
const doFetch = async (token) => {
|
|
@@ -3487,7 +3487,20 @@ var init_logger = __esm({
|
|
|
3487
3487
|
console[level](JSON.stringify(payload));
|
|
3488
3488
|
return;
|
|
3489
3489
|
}
|
|
3490
|
-
|
|
3490
|
+
const debugMode = process.env.MARIA_DEBUG === "1";
|
|
3491
|
+
const isError = tag.includes("[ERROR]");
|
|
3492
|
+
let outArgs = args2;
|
|
3493
|
+
if (isError && !debugMode) {
|
|
3494
|
+
const filtered = [];
|
|
3495
|
+
for (const a of args2) {
|
|
3496
|
+
const t2 = typeof a;
|
|
3497
|
+
if (a == null || t2 === "string" || t2 === "number" || t2 === "boolean") {
|
|
3498
|
+
filtered.push(a);
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
outArgs = filtered;
|
|
3502
|
+
}
|
|
3503
|
+
console[level](tag, ...outArgs);
|
|
3491
3504
|
}
|
|
3492
3505
|
debug(...args2) {
|
|
3493
3506
|
if (this.level <= 0 /* DEBUG */) {
|
|
@@ -16071,8 +16084,8 @@ var require_package = __commonJS({
|
|
|
16071
16084
|
"package.json"(exports, module) {
|
|
16072
16085
|
module.exports = {
|
|
16073
16086
|
name: "@bonginkan/maria",
|
|
16074
|
-
version: "4.3.
|
|
16075
|
-
description: "\u{1F680} MARIA v4.3.
|
|
16087
|
+
version: "4.3.20",
|
|
16088
|
+
description: "\u{1F680} MARIA v4.3.20 - 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.",
|
|
16076
16089
|
keywords: [
|
|
16077
16090
|
"ai",
|
|
16078
16091
|
"cli",
|
|
@@ -23205,11 +23218,20 @@ var init_image_command = __esm({
|
|
|
23205
23218
|
model: cli.model,
|
|
23206
23219
|
seed: cli.seed
|
|
23207
23220
|
};
|
|
23208
|
-
const
|
|
23221
|
+
const resp = await callApi("/api/v1/image", {
|
|
23209
23222
|
method: "POST",
|
|
23210
23223
|
body: JSON.stringify(body),
|
|
23211
23224
|
headers: { "Content-Type": "application/json" }
|
|
23212
23225
|
});
|
|
23226
|
+
if (!resp.ok) {
|
|
23227
|
+
const data = await resp.json().catch(() => ({}));
|
|
23228
|
+
const code = data?.error ? String(data.error) : void 0;
|
|
23229
|
+
const msg2 = data?.message ? String(data.message) : `API error: ${resp.status}`;
|
|
23230
|
+
const hint = data?.hint ? String(data.hint) : "";
|
|
23231
|
+
const composed = hint ? `${msg2} (${code || "error"}) \u2014 ${hint}` : code ? `${msg2} (${code})` : msg2;
|
|
23232
|
+
return this.error(composed);
|
|
23233
|
+
}
|
|
23234
|
+
const apiRes = await resp.json();
|
|
23213
23235
|
const urls = [];
|
|
23214
23236
|
if (apiRes?.data?.url) urls.push(String(apiRes.data.url));
|
|
23215
23237
|
const filesInline = apiRes?.data?.filesInline;
|
|
@@ -23335,6 +23357,8 @@ var init_image_command = __esm({
|
|
|
23335
23357
|
}
|
|
23336
23358
|
return this.success(msg, void 0, void 0);
|
|
23337
23359
|
} catch (e2) {
|
|
23360
|
+
const m2 = e2?.message ? String(e2.message) : String(e2);
|
|
23361
|
+
return this.error(m2.startsWith("ERROR:") ? m2 : `ERROR: ${m2}`);
|
|
23338
23362
|
}
|
|
23339
23363
|
}
|
|
23340
23364
|
const res = await runImagePipeline({
|
|
@@ -25681,7 +25705,7 @@ var init_about_command = __esm({
|
|
|
25681
25705
|
async execute(args2, context2) {
|
|
25682
25706
|
const output3 = [];
|
|
25683
25707
|
output3.push("");
|
|
25684
|
-
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.
|
|
25708
|
+
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.20"));
|
|
25685
25709
|
output3.push(chalk40__default.default.gray("\u2550".repeat(40)));
|
|
25686
25710
|
output3.push("");
|
|
25687
25711
|
output3.push(chalk40__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
|