@bonginkan/maria 4.3.20 → 4.3.22
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 +50 -18
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +50 -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.22"}`
|
|
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.22"}`,
|
|
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
|
}
|
|
@@ -14408,6 +14430,21 @@ var init_StatusCommand = __esm({
|
|
|
14408
14430
|
providers: dependencies.providers || []
|
|
14409
14431
|
});
|
|
14410
14432
|
}
|
|
14433
|
+
/**
|
|
14434
|
+
* Slash-commands adapter: map SystemCommandBase result to ISlashCommand result
|
|
14435
|
+
*/
|
|
14436
|
+
async execute(_args, _context) {
|
|
14437
|
+
const sys = await super.execute();
|
|
14438
|
+
const success = sys.endReason === "success";
|
|
14439
|
+
const data = sys.data;
|
|
14440
|
+
const message = typeof data?.output === "string" ? data.output : data?.format === "json" && data?.data ? JSON.stringify(data.data, null, 2) : "";
|
|
14441
|
+
return {
|
|
14442
|
+
success,
|
|
14443
|
+
message,
|
|
14444
|
+
data,
|
|
14445
|
+
metadata: { executionTime: sys.duration }
|
|
14446
|
+
};
|
|
14447
|
+
}
|
|
14411
14448
|
/**
|
|
14412
14449
|
* 内部実行処理
|
|
14413
14450
|
* 契約遵守・タイムアウト管理・メトリクス記録は基底クラスで実装済み
|
|
@@ -16084,8 +16121,8 @@ var require_package = __commonJS({
|
|
|
16084
16121
|
"package.json"(exports, module) {
|
|
16085
16122
|
module.exports = {
|
|
16086
16123
|
name: "@bonginkan/maria",
|
|
16087
|
-
version: "4.3.
|
|
16088
|
-
description: "\u{1F680} MARIA v4.3.
|
|
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.",
|
|
16089
16126
|
keywords: [
|
|
16090
16127
|
"ai",
|
|
16091
16128
|
"cli",
|
|
@@ -25705,7 +25742,7 @@ var init_about_command = __esm({
|
|
|
25705
25742
|
async execute(args2, context2) {
|
|
25706
25743
|
const output3 = [];
|
|
25707
25744
|
output3.push("");
|
|
25708
|
-
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.
|
|
25745
|
+
output3.push(chalk40__default.default.cyan.bold("\u{1F916} About MARIA v4.3.22"));
|
|
25709
25746
|
output3.push(chalk40__default.default.gray("\u2550".repeat(40)));
|
|
25710
25747
|
output3.push("");
|
|
25711
25748
|
output3.push(chalk40__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
|
|
@@ -57571,7 +57608,7 @@ async function handleSlash(input3) {
|
|
|
57571
57608
|
const { cmd, args: args2, flags } = parseSlash(input3);
|
|
57572
57609
|
if (cmd === "clear" || cmd === "cls") {
|
|
57573
57610
|
try {
|
|
57574
|
-
|
|
57611
|
+
clearTerminal();
|
|
57575
57612
|
} catch {
|
|
57576
57613
|
}
|
|
57577
57614
|
return true;
|
|
@@ -57620,6 +57657,7 @@ var init_handle_slash = __esm({
|
|
|
57620
57657
|
init_unknown_command();
|
|
57621
57658
|
init_slash_commands();
|
|
57622
57659
|
init_cli_auth();
|
|
57660
|
+
init_terminal();
|
|
57623
57661
|
}
|
|
57624
57662
|
});
|
|
57625
57663
|
function formatAnyError(err) {
|
|
@@ -71897,6 +71935,7 @@ var init_DisplayManager = __esm({
|
|
|
71897
71935
|
"src/services/interactive-session/display/DisplayManager.ts"() {
|
|
71898
71936
|
init_SpinnerManager();
|
|
71899
71937
|
init_FormatUtils();
|
|
71938
|
+
init_terminal();
|
|
71900
71939
|
DisplayManager = class {
|
|
71901
71940
|
spinnerManager;
|
|
71902
71941
|
platform;
|
|
@@ -71924,15 +71963,7 @@ var init_DisplayManager = __esm({
|
|
|
71924
71963
|
* Clear the terminal screen
|
|
71925
71964
|
*/
|
|
71926
71965
|
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
|
-
}
|
|
71966
|
+
clearTerminal();
|
|
71936
71967
|
}
|
|
71937
71968
|
/**
|
|
71938
71969
|
* Move cursor to position
|
|
@@ -72438,6 +72469,7 @@ var init_StatusDisplay = __esm({
|
|
|
72438
72469
|
var HelpHandler, ClearHandler, ExitHandler, VersionHandler, HistoryHandler, CoreHandlers;
|
|
72439
72470
|
var init_CoreHandlers = __esm({
|
|
72440
72471
|
"src/services/interactive-session/handlers/CoreHandlers.ts"() {
|
|
72472
|
+
init_terminal();
|
|
72441
72473
|
HelpHandler = class {
|
|
72442
72474
|
registry;
|
|
72443
72475
|
constructor(registry) {
|
|
@@ -72511,7 +72543,7 @@ Type '/help <command>' for detailed information about a specific command.`
|
|
|
72511
72543
|
ClearHandler = class {
|
|
72512
72544
|
async execute(args2) {
|
|
72513
72545
|
const startTime = perf_hooks.performance.now();
|
|
72514
|
-
|
|
72546
|
+
clearTerminal();
|
|
72515
72547
|
const processingTime = perf_hooks.performance.now() - startTime;
|
|
72516
72548
|
return {
|
|
72517
72549
|
success: true,
|