@bonginkan/maria 4.2.14 → 4.2.15
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 +5 -5
- package/dist/READY.manifest.json +31 -31
- package/dist/bin/maria.cjs +46 -9
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +42 -9
- package/dist/cli.cjs.map +1 -1
- package/package.json +2 -2
- package/src/slash-commands/READY.manifest.json +31 -31
package/dist/cli.cjs
CHANGED
|
@@ -9,9 +9,9 @@ var os = require('os');
|
|
|
9
9
|
var fsp = require('fs/promises');
|
|
10
10
|
var crypto2 = require('crypto');
|
|
11
11
|
var secretManager = require('@google-cloud/secret-manager');
|
|
12
|
+
var child_process = require('child_process');
|
|
12
13
|
var http = require('http');
|
|
13
14
|
var url = require('url');
|
|
14
|
-
var open = require('open');
|
|
15
15
|
var events = require('events');
|
|
16
16
|
var Stream = require('stream');
|
|
17
17
|
var util = require('util');
|
|
@@ -58,7 +58,6 @@ var os__namespace = /*#__PURE__*/_interopNamespace(os);
|
|
|
58
58
|
var fsp__namespace = /*#__PURE__*/_interopNamespace(fsp);
|
|
59
59
|
var crypto2__default = /*#__PURE__*/_interopDefault(crypto2);
|
|
60
60
|
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
61
|
-
var open__default = /*#__PURE__*/_interopDefault(open);
|
|
62
61
|
var Stream__default = /*#__PURE__*/_interopDefault(Stream);
|
|
63
62
|
var https__default = /*#__PURE__*/_interopDefault(https);
|
|
64
63
|
var zlib__default = /*#__PURE__*/_interopDefault(zlib);
|
|
@@ -842,12 +841,46 @@ var init_AuthSecretManager = __esm({
|
|
|
842
841
|
new AuthSecretManager();
|
|
843
842
|
}
|
|
844
843
|
});
|
|
844
|
+
async function openUrl(url) {
|
|
845
|
+
if (process.env.CI === "true" || process.env.SSH_CONNECTION || process.env.CONTAINER === "true") {
|
|
846
|
+
throw new Error("Headless environment");
|
|
847
|
+
}
|
|
848
|
+
const platform3 = process.platform;
|
|
849
|
+
if (platform3 === "win32") {
|
|
850
|
+
await execDetached("cmd", ["/c", "start", "", url.replace(/&/g, "^&")]);
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
if (platform3 === "darwin") {
|
|
854
|
+
await execDetached("open", [url]);
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
if (!process.env.DISPLAY) {
|
|
858
|
+
throw new Error("No DISPLAY");
|
|
859
|
+
}
|
|
860
|
+
await execDetached("xdg-open", [url]);
|
|
861
|
+
}
|
|
862
|
+
function execDetached(command, args) {
|
|
863
|
+
return new Promise((resolve4, reject) => {
|
|
864
|
+
const child2 = child_process.spawn(command, args, {
|
|
865
|
+
stdio: "ignore",
|
|
866
|
+
detached: true
|
|
867
|
+
});
|
|
868
|
+
child2.on("error", reject);
|
|
869
|
+
child2.unref();
|
|
870
|
+
resolve4();
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
var init_open_url = __esm({
|
|
874
|
+
"src/utils/open-url.ts"() {
|
|
875
|
+
}
|
|
876
|
+
});
|
|
845
877
|
var AuthenticationManager, authManager;
|
|
846
878
|
var init_AuthenticationManager = __esm({
|
|
847
879
|
"src/services/cli-auth/AuthenticationManager.ts"() {
|
|
848
880
|
init_types();
|
|
849
881
|
init_TokenStorage();
|
|
850
882
|
init_AuthSecretManager();
|
|
883
|
+
init_open_url();
|
|
851
884
|
AuthenticationManager = class {
|
|
852
885
|
tokenStorage;
|
|
853
886
|
secretManager;
|
|
@@ -1170,7 +1203,7 @@ var init_AuthenticationManager = __esm({
|
|
|
1170
1203
|
const authUrl = this.buildAuthUrl(pkceParams, redirectUri);
|
|
1171
1204
|
console.log("\u{1F4F1} Opening browser for authentication...");
|
|
1172
1205
|
try {
|
|
1173
|
-
await
|
|
1206
|
+
await openUrl(authUrl);
|
|
1174
1207
|
} catch (error2) {
|
|
1175
1208
|
server.close();
|
|
1176
1209
|
console.error("Failed to open browser for authentication:", error2);
|
|
@@ -19218,10 +19251,10 @@ var init_llm_health_checker = __esm({
|
|
|
19218
19251
|
}
|
|
19219
19252
|
async startLMStudio() {
|
|
19220
19253
|
try {
|
|
19221
|
-
const { spawn } = await import('child_process');
|
|
19254
|
+
const { spawn: spawn2 } = await import('child_process');
|
|
19222
19255
|
const _lmsPath = "/Users/bongin_max/.lmstudio/bin/lms";
|
|
19223
19256
|
return new Promise((resolve4) => {
|
|
19224
|
-
const _child =
|
|
19257
|
+
const _child = spawn2(_lmsPath, ["server", "start"], {
|
|
19225
19258
|
stdio: "ignore",
|
|
19226
19259
|
detached: true
|
|
19227
19260
|
});
|
|
@@ -31659,8 +31692,8 @@ var init_package = __esm({
|
|
|
31659
31692
|
"package.json"() {
|
|
31660
31693
|
package_default = {
|
|
31661
31694
|
name: "@bonginkan/maria",
|
|
31662
|
-
version: "4.2.
|
|
31663
|
-
description: "\u{1F680} MARIA v4.2.
|
|
31695
|
+
version: "4.2.15",
|
|
31696
|
+
description: "\u{1F680} MARIA v4.2.15 - Enterprise AI Development Platform with 100% Command Availability. 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.",
|
|
31664
31697
|
keywords: [
|
|
31665
31698
|
"ai",
|
|
31666
31699
|
"cli",
|
|
@@ -33424,8 +33457,8 @@ function createCLI2() {
|
|
|
33424
33457
|
console.log(chalk17__default.default.green("\u{1F680} Starting MARIA server mode..."));
|
|
33425
33458
|
try {
|
|
33426
33459
|
const serverPath = path10__namespace.join(process.cwd(), "server.mjs");
|
|
33427
|
-
const { spawn } = await import('child_process');
|
|
33428
|
-
const serverProcess =
|
|
33460
|
+
const { spawn: spawn2 } = await import('child_process');
|
|
33461
|
+
const serverProcess = spawn2("node", [serverPath], {
|
|
33429
33462
|
stdio: "inherit",
|
|
33430
33463
|
env: process.env
|
|
33431
33464
|
});
|