@bonginkan/maria 4.1.6 → 4.1.7
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/dist/bin/maria.cjs +33 -34
- package/dist/bin/maria.cjs.map +1 -1
- package/dist/cli.cjs +33 -34
- package/dist/cli.cjs.map +1 -1
- package/package.json +11 -9
package/dist/bin/maria.cjs
CHANGED
|
@@ -21245,7 +21245,7 @@ var init_package = __esm({
|
|
|
21245
21245
|
"package.json"() {
|
|
21246
21246
|
package_default = {
|
|
21247
21247
|
name: "@bonginkan/maria",
|
|
21248
|
-
version: "4.1.
|
|
21248
|
+
version: "4.1.7",
|
|
21249
21249
|
description: "\u{1F680} MARIA v4.1.4 - Complete Multimodal AI Integration & Enterprise Platform. Revolutionary voice-to-code, image-to-code, and 73 production-ready commands with advanced memory systems. World's first TypeScript AST-powered code generation with GraphRAG intelligence, multilingual support, and dual-architecture cognitive memory. Features zero-error development, OAuth2.0 + PKCE authentication, and military-grade security. Delivers next-generation multimodal development experience with enterprise-grade performance.",
|
|
21250
21250
|
keywords: [
|
|
21251
21251
|
"ai",
|
|
@@ -21472,15 +21472,17 @@ var init_package = __esm({
|
|
|
21472
21472
|
node: ">=20.10.0"
|
|
21473
21473
|
},
|
|
21474
21474
|
scripts: {
|
|
21475
|
-
build: "NODE_ENV=production tsup && npm run copy:manifest",
|
|
21476
|
-
"build:dev": "NODE_ENV=development tsup && npm run copy:manifest",
|
|
21477
|
-
"build:analyze": "ANALYZE=true NODE_ENV=production tsup && npm run copy:manifest",
|
|
21478
|
-
"copy:manifest": "cp src/slash-commands/READY.manifest.json dist/READY.manifest.json",
|
|
21475
|
+
build: "NODE_ENV=production tsup && npm run copy:manifest && npm run verify:manifest",
|
|
21476
|
+
"build:dev": "NODE_ENV=development tsup && npm run copy:manifest && npm run verify:manifest",
|
|
21477
|
+
"build:analyze": "ANALYZE=true NODE_ENV=production tsup && npm run copy:manifest && npm run verify:manifest",
|
|
21478
|
+
"copy:manifest": "cp src/slash-commands/READY.manifest.json dist/READY.manifest.json || (echo '\u274C READY.manifest.json not found! Generating...' && npm run generate:manifest && cp src/slash-commands/READY.manifest.json dist/READY.manifest.json)",
|
|
21479
|
+
"verify:manifest": "test -f dist/READY.manifest.json && echo '\u2705 READY.manifest.json included in build' || (echo '\u274C READY.manifest.json missing from build!' && exit 1)",
|
|
21479
21480
|
"build:fast": "NODE_ENV=production tsup --minify false --sourcemap false",
|
|
21480
21481
|
dev: "NODE_ENV=development tsup --watch",
|
|
21481
21482
|
clean: "rm -rf dist",
|
|
21482
21483
|
"gen:cmd-types": "tsx scripts/gen/command-types.mts",
|
|
21483
|
-
prebuild: "pnpm run clean && pnpm gen:cmd-types",
|
|
21484
|
+
prebuild: "pnpm run clean && pnpm gen:cmd-types && pnpm run ensure:manifest",
|
|
21485
|
+
"ensure:manifest": "test -f src/slash-commands/READY.manifest.json || npm run generate:manifest",
|
|
21484
21486
|
"build:docker": "NODE_ENV=production tsup",
|
|
21485
21487
|
postbuild: "chmod +x dist/cli.cjs dist/bin/maria.cjs 2>/dev/null || true",
|
|
21486
21488
|
test: "vitest",
|
|
@@ -21496,6 +21498,7 @@ var init_package = __esm({
|
|
|
21496
21498
|
"generate:manifest": "tsx scripts/generate-ready-manifest.ts",
|
|
21497
21499
|
"health:report": "tsx scripts/command-health-report.ts",
|
|
21498
21500
|
"ci:smoke": "pnpm -s build && pnpm -s test:smoke",
|
|
21501
|
+
"verify:build": "tsx scripts/verify-manifest-inclusion.ts",
|
|
21499
21502
|
lint: "eslint --cache 'src/**/*.{ts,tsx}'",
|
|
21500
21503
|
"lint:errors-only": "eslint --cache --quiet 'src/**/*.{ts,tsx}'",
|
|
21501
21504
|
"lint:ci": "eslint --cache --max-warnings=0 'src/**/*.{ts,tsx}'",
|
|
@@ -21532,7 +21535,6 @@ var init_package = __esm({
|
|
|
21532
21535
|
"test:safety-net": "vitest run tests/*safety*.test.ts tests/deprecation*.test.ts tests/phase3*.test.ts",
|
|
21533
21536
|
"test:phase3": "vitest run tests/phase3-safety.test.ts",
|
|
21534
21537
|
"metrics:deprecation": `node -e "console.log('Deprecation metrics would be shown here')"`,
|
|
21535
|
-
"lint:edm": "eslint src/services/memory-system/phase4 --config .eslintrc.edm-migration.js",
|
|
21536
21538
|
"lint:fix:advanced": "tsx scripts/lint-fix-advanced.ts",
|
|
21537
21539
|
"lint:fix:batch": "tsx scripts/lint-fix-advanced.ts category",
|
|
21538
21540
|
"lint:interactive": "tsx scripts/lint-interactive.ts",
|
|
@@ -21541,7 +21543,7 @@ var init_package = __esm({
|
|
|
21541
21543
|
"fix:args:anon": "tsx scripts/fix/arg-anonymize-unused.ts",
|
|
21542
21544
|
"fix:all": "pnpm -s fix:underscores && pnpm -s fix:args && pnpm -s fix:args:anon",
|
|
21543
21545
|
"fix:quick": "pnpm -s fix:underscores && pnpm -s build && pnpm -s test:smoke",
|
|
21544
|
-
prepublishOnly: "pnpm -s build && node scripts/qc/assert-registry.mjs",
|
|
21546
|
+
prepublishOnly: "pnpm -s build && node scripts/qc/assert-registry.mjs && npm run verify:manifest",
|
|
21545
21547
|
"snapshot:help": "node scripts/qc/help-snapshot.js",
|
|
21546
21548
|
"ci:maria-md:gate": "node scripts/ci/verify-maria-md.mjs",
|
|
21547
21549
|
"ci:init-and-gate": "node dist/cli.cjs init --deep --budget-ms=90000 --parallel=8 && node scripts/ci/verify-maria-md.mjs",
|
|
@@ -21590,7 +21592,7 @@ var init_package = __esm({
|
|
|
21590
21592
|
"quality:report": "tsx scripts/quality-gates.ts > quality-report.txt",
|
|
21591
21593
|
"coverage:report": "vitest --coverage --reporter=json > coverage.json",
|
|
21592
21594
|
"bench:startup": "node scripts/startup-bench.js",
|
|
21593
|
-
"ci:quality": "pnpm quality:gates && pnpm test:golden"
|
|
21595
|
+
"ci:quality": "pnpm quality:gates && pnpm test:golden && pnpm verify:build"
|
|
21594
21596
|
},
|
|
21595
21597
|
dependencies: {
|
|
21596
21598
|
"@anthropic-ai/sdk": "^0.20.0",
|
|
@@ -22265,9 +22267,13 @@ var init_AuthenticationManager = __esm({
|
|
|
22265
22267
|
// 2 minutes clock skew tolerance
|
|
22266
22268
|
constructor() {
|
|
22267
22269
|
this.tokenStorage = new TokenStorage();
|
|
22268
|
-
this.authBase = process.env.MARIA_AUTH_BASE || "
|
|
22269
|
-
this.
|
|
22270
|
-
|
|
22270
|
+
this.authBase = process.env.MARIA_AUTH_BASE || "https://auth.maria-code.ai";
|
|
22271
|
+
if (this.authBase === "https://auth.maria-code.ai") {
|
|
22272
|
+
this.authBase = "https://auth-server-1098737975582.us-central1.run.app";
|
|
22273
|
+
console.debug("Using Cloud Run URL for auth (DNS pending for auth.maria-code.ai)");
|
|
22274
|
+
}
|
|
22275
|
+
this.apiBase = process.env.MARIA_API_BASE || "https://api.maria-code.ai";
|
|
22276
|
+
this.clientId = process.env.MARIA_CLIENT_ID || "maria-cli";
|
|
22271
22277
|
}
|
|
22272
22278
|
/**
|
|
22273
22279
|
* Check if user is authenticated
|
|
@@ -28470,7 +28476,6 @@ var init_ReadyCommandsService = __esm({
|
|
|
28470
28476
|
}
|
|
28471
28477
|
this.buildLookupMaps();
|
|
28472
28478
|
this.lastLoaded = /* @__PURE__ */ new Date();
|
|
28473
|
-
console.log(`\u{1F4CB} Loaded ${this.readyCommands.length} READY commands from manifest`);
|
|
28474
28479
|
} catch (error2) {
|
|
28475
28480
|
console.error("Failed to load READY commands manifest, using fallback:", error2);
|
|
28476
28481
|
this.readyCommands = this.getFallbackCommands();
|
|
@@ -29036,11 +29041,8 @@ var init_HelpCommand = __esm({
|
|
|
29036
29041
|
const categories = await this.readyService.getCategories();
|
|
29037
29042
|
const stats = await this.readyService.getStatistics();
|
|
29038
29043
|
const lines = [];
|
|
29039
|
-
lines.push("Loaded " + stats.totalReady + " READY commands from manifest");
|
|
29040
|
-
lines.push("MARIA CODE - Contract-Validated Commands");
|
|
29041
|
-
lines.push("");
|
|
29042
29044
|
lines.push("\u2550".repeat(60));
|
|
29043
|
-
lines.push("**" + stats.totalReady + " READY Commands**
|
|
29045
|
+
lines.push("**" + stats.totalReady + " READY Commands** | **" + stats.categoriesCount + " Categories**");
|
|
29044
29046
|
lines.push("");
|
|
29045
29047
|
lines.push("**Quick Access:**");
|
|
29046
29048
|
lines.push(" /help <command> - Detailed help for specific command");
|
|
@@ -29070,15 +29072,8 @@ var init_HelpCommand = __esm({
|
|
|
29070
29072
|
}
|
|
29071
29073
|
lines.push("");
|
|
29072
29074
|
}
|
|
29073
|
-
lines.push("**Contract Validation:**");
|
|
29074
|
-
lines.push(" \u2022 All commands tested for TTY/non-TTY/pipe compatibility");
|
|
29075
|
-
lines.push(" \u2022 Performance validated (<2s response time)");
|
|
29076
|
-
lines.push(" \u2022 Error handling verified");
|
|
29077
|
-
lines.push(" \u2022 Help documentation complete");
|
|
29078
|
-
lines.push("");
|
|
29079
29075
|
lines.push("**Pro Tips:**");
|
|
29080
29076
|
lines.push(" \u2022 All listed commands are production-ready");
|
|
29081
|
-
lines.push(" \u2022 Response times shown are actual measurements");
|
|
29082
29077
|
lines.push(" \u2022 Use fuzzy search: /help --search confi \u2192 finds /config");
|
|
29083
29078
|
lines.push(" \u2022 Categories ordered by importance");
|
|
29084
29079
|
lines.push("");
|
|
@@ -29472,18 +29467,23 @@ var init_LoginCommand = __esm({
|
|
|
29472
29467
|
async execute(args, context2) {
|
|
29473
29468
|
const startTime = Date.now();
|
|
29474
29469
|
try {
|
|
29475
|
-
|
|
29476
|
-
|
|
29477
|
-
|
|
29478
|
-
|
|
29470
|
+
const isAuthenticated = await authManager.isAuthenticated();
|
|
29471
|
+
if (isAuthenticated) {
|
|
29472
|
+
try {
|
|
29473
|
+
const user = await authManager.getCurrentUser();
|
|
29474
|
+
const plan2 = user.plan || "Free";
|
|
29475
|
+
const quotaLeft2 = user.usage?.requestsRemaining || 100;
|
|
29476
|
+
return this.success(`Already logged in \xB7 Plan: ${plan2} \xB7 ${quotaLeft2} req left`);
|
|
29477
|
+
} catch {
|
|
29478
|
+
}
|
|
29479
29479
|
}
|
|
29480
|
-
const authResult = await authManager.
|
|
29480
|
+
const authResult = await authManager.login();
|
|
29481
29481
|
if (!authResult.success) {
|
|
29482
|
-
return this.error("Authentication failed \xB7 Try again", void 0, void 0, 2);
|
|
29482
|
+
return this.error(authResult.error || "Authentication failed \xB7 Try again", void 0, void 0, 2);
|
|
29483
29483
|
}
|
|
29484
|
-
const userInfo2 =
|
|
29484
|
+
const userInfo2 = authResult.user;
|
|
29485
29485
|
const plan = userInfo2?.plan || "Free";
|
|
29486
|
-
const quotaLeft = userInfo2?.
|
|
29486
|
+
const quotaLeft = userInfo2?.usage?.requestsRemaining || 100;
|
|
29487
29487
|
const email = userInfo2?.email || "user";
|
|
29488
29488
|
await trackCommand({
|
|
29489
29489
|
cmd: "login",
|
|
@@ -29500,7 +29500,7 @@ var init_LoginCommand = __esm({
|
|
|
29500
29500
|
status: "error",
|
|
29501
29501
|
latencyMs: Date.now() - startTime,
|
|
29502
29502
|
plan: getUserPlan(),
|
|
29503
|
-
quotaLeft:
|
|
29503
|
+
quotaLeft: 999
|
|
29504
29504
|
});
|
|
29505
29505
|
if (error2.message?.includes("User cancelled")) {
|
|
29506
29506
|
return this.success("Login cancelled");
|
|
@@ -32998,7 +32998,6 @@ async function startInteractiveSession() {
|
|
|
32998
32998
|
await stop();
|
|
32999
32999
|
return;
|
|
33000
33000
|
}
|
|
33001
|
-
console.log(import_chalk18.default.gray("Type /help for commands, or just chat\n"));
|
|
33002
33001
|
if (interactiveCLI) {
|
|
33003
33002
|
while (true) {
|
|
33004
33003
|
try {
|