@bonginkan/maria 4.3.16 → 4.3.17
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 +34 -10
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +34 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/express-server.cjs +183 -36
- package/dist/server/express-server.js +183 -36
- package/dist/server-express.cjs +183 -36
- 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.17"}`
|
|
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.17"}`,
|
|
2411
2411
|
"Content-Type": init3.headers?.["Content-Type"] || "application/json"
|
|
2412
2412
|
});
|
|
2413
2413
|
const doFetch = async (token) => {
|
|
@@ -16071,8 +16071,8 @@ var require_package = __commonJS({
|
|
|
16071
16071
|
"package.json"(exports, module) {
|
|
16072
16072
|
module.exports = {
|
|
16073
16073
|
name: "@bonginkan/maria",
|
|
16074
|
-
version: "4.3.
|
|
16075
|
-
description: "\u{1F680} MARIA v4.3.
|
|
16074
|
+
version: "4.3.17",
|
|
16075
|
+
description: "\u{1F680} MARIA v4.3.17 - 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
16076
|
keywords: [
|
|
16077
16077
|
"ai",
|
|
16078
16078
|
"cli",
|
|
@@ -22403,6 +22403,15 @@ async function hasCaseInsensitiveCollision(dirFull, targetFile) {
|
|
|
22403
22403
|
async function atomicRename(stage, dest) {
|
|
22404
22404
|
try {
|
|
22405
22405
|
await fsp__namespace.rename(stage, dest);
|
|
22406
|
+
try {
|
|
22407
|
+
const fd = await fsp__namespace.open(dest, "r");
|
|
22408
|
+
try {
|
|
22409
|
+
await fd.sync();
|
|
22410
|
+
} finally {
|
|
22411
|
+
await fd.close();
|
|
22412
|
+
}
|
|
22413
|
+
} catch {
|
|
22414
|
+
}
|
|
22406
22415
|
} catch (e2) {
|
|
22407
22416
|
if (e2 && e2.code === "EXDEV") {
|
|
22408
22417
|
await fsp__namespace.copyFile(stage, dest);
|
|
@@ -22457,7 +22466,8 @@ async function saveArtifacts(ctx2, items, manifest) {
|
|
|
22457
22466
|
}
|
|
22458
22467
|
await fsp__namespace.writeFile(stg, it.bytes);
|
|
22459
22468
|
await atomicRename(stg, dest.full);
|
|
22460
|
-
|
|
22469
|
+
const relPosix = dest.rel.replace(/\\/g, "/");
|
|
22470
|
+
saved.push(relPosix);
|
|
22461
22471
|
}
|
|
22462
22472
|
if (!ctx2.skipManifest) {
|
|
22463
22473
|
const manifestObj = {
|
|
@@ -22476,7 +22486,7 @@ async function saveArtifacts(ctx2, items, manifest) {
|
|
|
22476
22486
|
}
|
|
22477
22487
|
await atomicRename(manifestStage, manifestFull);
|
|
22478
22488
|
await fsp__namespace.rm(stage, { recursive: true, force: true });
|
|
22479
|
-
return { files: saved, manifestPath: manifestPathRel };
|
|
22489
|
+
return { files: saved, manifestPath: manifestPathRel.replace(/\\/g, "/") };
|
|
22480
22490
|
} else {
|
|
22481
22491
|
await fsp__namespace.rm(stage, { recursive: true, force: true });
|
|
22482
22492
|
return { files: saved, manifestPath: "" };
|
|
@@ -22588,6 +22598,13 @@ var init_gemini_media = __esm({
|
|
|
22588
22598
|
`GeminiMediaProvider.generateImage request failed: model=${modelName}; prompt="${promptPreview}"; error=${errMsg}`
|
|
22589
22599
|
);
|
|
22590
22600
|
}
|
|
22601
|
+
const feedback = resp?.response?.promptFeedback;
|
|
22602
|
+
const blockReason = feedback?.blockReason || feedback?.block_reason;
|
|
22603
|
+
if (blockReason) {
|
|
22604
|
+
const modelName2 = this.primaryModel;
|
|
22605
|
+
const reason = String(blockReason);
|
|
22606
|
+
throw new Error(`GeminiMediaProvider.policy_violation: model=${modelName2}; reason=${reason}`);
|
|
22607
|
+
}
|
|
22591
22608
|
const parts = resp?.response?.candidates?.[0]?.content?.parts || [];
|
|
22592
22609
|
for (const p of parts) {
|
|
22593
22610
|
const data = p?.inlineData?.data || p?.inline_data?.data;
|
|
@@ -23499,7 +23516,8 @@ async function runVideoPipeline(params2, opts) {
|
|
|
23499
23516
|
metrics: { durationMs: Date.now() - started, retries: 0, fallbacks: 0 },
|
|
23500
23517
|
trace: Math.random().toString(36).slice(2, 8).toUpperCase()
|
|
23501
23518
|
};
|
|
23502
|
-
const
|
|
23519
|
+
const baseDir = opts.outDir || path10__namespace.join("artifacts", "media", "videos", String(manifest2.trace));
|
|
23520
|
+
const saved2 = await saveArtifacts({ root: opts.root, kind: "video", baseDir, flat: true }, [{ bytes, ext: ext2 }], manifest2);
|
|
23503
23521
|
return { saved: saved2, durationMs: Date.now() - started, frames: 0, warnFallback: false, retries: 0 };
|
|
23504
23522
|
}
|
|
23505
23523
|
} catch {
|
|
@@ -23544,11 +23562,17 @@ async function runVideoPipeline(params2, opts) {
|
|
|
23544
23562
|
await fsp__namespace.writeFile(path10__namespace.join(tmpDir, fname), frames[i2]);
|
|
23545
23563
|
}
|
|
23546
23564
|
const outBuf = await muxFramesToMp4(tmpDir, params2.fps);
|
|
23547
|
-
|
|
23565
|
+
{
|
|
23566
|
+
const baseDir = opts.outDir || path10__namespace.join("artifacts", "media", "videos", String(manifest.trace));
|
|
23567
|
+
saved = await saveArtifacts({ root: opts.root, kind: "video", baseDir, flat: true }, [{ bytes: outBuf, ext: ".mp4" }], manifest);
|
|
23568
|
+
}
|
|
23548
23569
|
await fsp__namespace.rm(tmpDir, { recursive: true, force: true });
|
|
23549
23570
|
} else {
|
|
23550
23571
|
const items = frames.map((b, i2) => ({ bytes: b, ext: `.png`, logicalName: `frame-${String(i2 + 1).padStart(4, "0")}` }));
|
|
23551
|
-
|
|
23572
|
+
{
|
|
23573
|
+
const baseDir = opts.outDir || path10__namespace.join("artifacts", "media", "videos", String(manifest.trace));
|
|
23574
|
+
saved = await saveArtifacts({ root: opts.root, kind: "video", baseDir, flat: true }, items, manifest);
|
|
23575
|
+
}
|
|
23552
23576
|
warnFallback = true;
|
|
23553
23577
|
}
|
|
23554
23578
|
progress.done();
|
|
@@ -25657,7 +25681,7 @@ var init_about_command = __esm({
|
|
|
25657
25681
|
async execute(args2, context2) {
|
|
25658
25682
|
const output3 = [];
|
|
25659
25683
|
output3.push("");
|
|
25660
|
-
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.
|
|
25684
|
+
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.17"));
|
|
25661
25685
|
output3.push(chalk40__default.default.gray("\u2550".repeat(40)));
|
|
25662
25686
|
output3.push("");
|
|
25663
25687
|
output3.push(chalk40__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
|