@bonginkan/maria 4.3.20 → 4.3.21
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 +35 -18
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +35 -18
- 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 +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.21"}`
|
|
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.21"}`,
|
|
2411
2411
|
"Content-Type": init3.headers?.["Content-Type"] || "application/json"
|
|
2412
2412
|
});
|
|
2413
2413
|
const doFetch = async (token) => {
|
|
@@ -11912,6 +11912,27 @@ var init_subscription_manager = __esm({
|
|
|
11912
11912
|
}
|
|
11913
11913
|
});
|
|
11914
11914
|
|
|
11915
|
+
// src/utils/terminal.ts
|
|
11916
|
+
function clearTerminal() {
|
|
11917
|
+
const stdout2 = process.stdout;
|
|
11918
|
+
if (!stdout2 || !stdout2.isTTY) {
|
|
11919
|
+
console.log("\n".repeat(10));
|
|
11920
|
+
return;
|
|
11921
|
+
}
|
|
11922
|
+
try {
|
|
11923
|
+
stdout2.write("\x1B[2J\x1B[3J\x1B[H");
|
|
11924
|
+
} catch {
|
|
11925
|
+
try {
|
|
11926
|
+
console.clear();
|
|
11927
|
+
} catch {
|
|
11928
|
+
}
|
|
11929
|
+
}
|
|
11930
|
+
}
|
|
11931
|
+
var init_terminal = __esm({
|
|
11932
|
+
"src/utils/terminal.ts"() {
|
|
11933
|
+
}
|
|
11934
|
+
});
|
|
11935
|
+
|
|
11915
11936
|
// src/slash-commands/categories/conversation/clear.command.ts
|
|
11916
11937
|
var clear_command_exports = {};
|
|
11917
11938
|
__export(clear_command_exports, {
|
|
@@ -11924,6 +11945,7 @@ var init_clear_command = __esm({
|
|
|
11924
11945
|
init_base_command();
|
|
11925
11946
|
init_telemetry_helper();
|
|
11926
11947
|
init_subscription_manager();
|
|
11948
|
+
init_terminal();
|
|
11927
11949
|
ClearCommand = class extends BaseCommand {
|
|
11928
11950
|
name = "clear";
|
|
11929
11951
|
category = "conversation";
|
|
@@ -11940,7 +11962,7 @@ var init_clear_command = __esm({
|
|
|
11940
11962
|
async execute(args2, context2) {
|
|
11941
11963
|
const startTime = Date.now();
|
|
11942
11964
|
try {
|
|
11943
|
-
|
|
11965
|
+
clearTerminal();
|
|
11944
11966
|
if (context2.session) {
|
|
11945
11967
|
if (context2.session.conversationHistory) {
|
|
11946
11968
|
context2.session.conversationHistory = [];
|
|
@@ -11969,7 +11991,7 @@ var init_clear_command = __esm({
|
|
|
11969
11991
|
plan: getUserPlan(),
|
|
11970
11992
|
quotaLeft: context2.quotaLeft || 999
|
|
11971
11993
|
});
|
|
11972
|
-
|
|
11994
|
+
clearTerminal();
|
|
11973
11995
|
return this.success(chalk40__default.default.green("\u2705 Cleared"));
|
|
11974
11996
|
}
|
|
11975
11997
|
}
|
|
@@ -16084,8 +16106,8 @@ var require_package = __commonJS({
|
|
|
16084
16106
|
"package.json"(exports, module) {
|
|
16085
16107
|
module.exports = {
|
|
16086
16108
|
name: "@bonginkan/maria",
|
|
16087
|
-
version: "4.3.
|
|
16088
|
-
description: "\u{1F680} MARIA v4.3.
|
|
16109
|
+
version: "4.3.21",
|
|
16110
|
+
description: "\u{1F680} MARIA v4.3.21 - 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.",
|
|
16089
16111
|
keywords: [
|
|
16090
16112
|
"ai",
|
|
16091
16113
|
"cli",
|
|
@@ -25705,7 +25727,7 @@ var init_about_command = __esm({
|
|
|
25705
25727
|
async execute(args2, context2) {
|
|
25706
25728
|
const output3 = [];
|
|
25707
25729
|
output3.push("");
|
|
25708
|
-
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.
|
|
25730
|
+
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.21"));
|
|
25709
25731
|
output3.push(chalk40__default.default.gray("\u2550".repeat(40)));
|
|
25710
25732
|
output3.push("");
|
|
25711
25733
|
output3.push(chalk40__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
|
|
@@ -57571,7 +57593,7 @@ async function handleSlash(input3) {
|
|
|
57571
57593
|
const { cmd, args: args2, flags } = parseSlash(input3);
|
|
57572
57594
|
if (cmd === "clear" || cmd === "cls") {
|
|
57573
57595
|
try {
|
|
57574
|
-
|
|
57596
|
+
clearTerminal();
|
|
57575
57597
|
} catch {
|
|
57576
57598
|
}
|
|
57577
57599
|
return true;
|
|
@@ -57620,6 +57642,7 @@ var init_handle_slash = __esm({
|
|
|
57620
57642
|
init_unknown_command();
|
|
57621
57643
|
init_slash_commands();
|
|
57622
57644
|
init_cli_auth();
|
|
57645
|
+
init_terminal();
|
|
57623
57646
|
}
|
|
57624
57647
|
});
|
|
57625
57648
|
function formatAnyError(err) {
|
|
@@ -71897,6 +71920,7 @@ var init_DisplayManager = __esm({
|
|
|
71897
71920
|
"src/services/interactive-session/display/DisplayManager.ts"() {
|
|
71898
71921
|
init_SpinnerManager();
|
|
71899
71922
|
init_FormatUtils();
|
|
71923
|
+
init_terminal();
|
|
71900
71924
|
DisplayManager = class {
|
|
71901
71925
|
spinnerManager;
|
|
71902
71926
|
platform;
|
|
@@ -71924,15 +71948,7 @@ var init_DisplayManager = __esm({
|
|
|
71924
71948
|
* Clear the terminal screen
|
|
71925
71949
|
*/
|
|
71926
71950
|
clear() {
|
|
71927
|
-
|
|
71928
|
-
console.log("\n".repeat(10));
|
|
71929
|
-
return;
|
|
71930
|
-
}
|
|
71931
|
-
if (this.isWindows) {
|
|
71932
|
-
process.stdout.write("\x1B[2J\x1B[0f");
|
|
71933
|
-
} else {
|
|
71934
|
-
console.clear();
|
|
71935
|
-
}
|
|
71951
|
+
clearTerminal();
|
|
71936
71952
|
}
|
|
71937
71953
|
/**
|
|
71938
71954
|
* Move cursor to position
|
|
@@ -72438,6 +72454,7 @@ var init_StatusDisplay = __esm({
|
|
|
72438
72454
|
var HelpHandler, ClearHandler, ExitHandler, VersionHandler, HistoryHandler, CoreHandlers;
|
|
72439
72455
|
var init_CoreHandlers = __esm({
|
|
72440
72456
|
"src/services/interactive-session/handlers/CoreHandlers.ts"() {
|
|
72457
|
+
init_terminal();
|
|
72441
72458
|
HelpHandler = class {
|
|
72442
72459
|
registry;
|
|
72443
72460
|
constructor(registry) {
|
|
@@ -72511,7 +72528,7 @@ Type '/help <command>' for detailed information about a specific command.`
|
|
|
72511
72528
|
ClearHandler = class {
|
|
72512
72529
|
async execute(args2) {
|
|
72513
72530
|
const startTime = perf_hooks.performance.now();
|
|
72514
|
-
|
|
72531
|
+
clearTerminal();
|
|
72515
72532
|
const processingTime = perf_hooks.performance.now() - startTime;
|
|
72516
72533
|
return {
|
|
72517
72534
|
success: true,
|