JSPM

@bonginkan/maria

1.6.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 386
  • Score
    100M100P100Q106536F
  • License MIT

MARIA Platform v1.6.3 "Algorithm Education Revolution" - Interactive Slash Command CLI with CS Curriculum, 36+ Commands, Cognitive AI Modes, and Complete Educational Development Platform

Package Exports

  • @bonginkan/maria
  • @bonginkan/maria/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bonginkan/maria) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MARIA Platform v1.3.0 "Cognitive Revolution" - AI Development CLI

TypeScript npm Node.js Quality Cognitive Modes

MARIA Platform v1.3.0 "Cognitive Revolution" introduces the world's first Internal Mode System - a revolutionary cognitive adaptation framework featuring 50 specialized AI thinking modes that automatically adapt to your context and needs. This breakthrough transforms static AI interactions into dynamic, context-aware cognitive partnerships.

๐Ÿง  v1.3.0 Released - npm install -g @bonginkan/maria - Phase 7 Complete: Revolutionary Internal Mode System + 124-Character Responsive Design Framework

๐ŸŒŸ Revolutionary Features

๐Ÿง  NEW: Internal Mode System - Cognitive Adaptation Engine

  • 50 Cognitive Modes: Revolutionary thinking states across 9 categories (Reasoning, Creative, Analytical, etc.)
  • Real-time Recognition: <200ms automatic mode switching based on context and intent
  • Adaptive Learning: AI learns your patterns and personalizes cognitive approaches
  • Visual Indicators: Beautiful โœฝ symbols showing current cognitive state
"Fix this bug" โ†’ โœฝ ๐Ÿ› Debuggingโ€ฆ
"Give me ideas" โ†’ โœฝ ๐Ÿ’ก Brainstormingโ€ฆ
"Optimize this" โ†’ โœฝ โšก Optimizingโ€ฆ

๐Ÿค– Intelligent Router - Natural Language Command System

  • 5-Language Support: Native understanding in Japanese, English, Chinese, Korean, Vietnamese
  • Intent Recognition: "ใ‚ณใƒผใƒ‰ใ‚’ๆ›ธใ„ใฆ" โ†’ /code automatic execution (95%+ accuracy)
  • Contextual Understanding: Smart parameter extraction from natural conversation
  • Learning Engine: Adapts to user patterns for personalized experience

๐Ÿ—๏ธ Autonomous Development Ecosystem (/vibe, /paper, /agentic)

  • Paper-to-Code Transformation: Research papers โ†’ production implementations using DeepCode architecture
  • SOW-Driven Development: Complete software solutions from high-level requirements
  • Multi-Agent Orchestration: 8+ specialized agents for complex task coordination
  • Agent Builder: Automated AGENT.md generation and custom AI agent creation

๐ŸŽจ Multimodal Content Generation

  • Advanced Media Creation: AI-powered image, video, and presentation generation
  • Google Workspace Integration: Direct export to Google Docs and Slides
  • ASCII Avatar Interface: Interactive visual dialogue system
  • Voice Integration: Multimodal communication capabilities

๐Ÿง  Advanced Intelligence Systems

  • 50 Internal Modes: Real-time cognitive state adaptation (โœฝ Thinkingโ€ฆ, โœฝ Debuggingโ€ฆ, etc.)
  • Cross-Session Learning: Knowledge transfer and skill progression tracking
  • Predictive Analytics: ML-powered user intent prediction and workflow optimization
  • Context Preservation: Deep semantic compression with knowledge graph construction

๐Ÿข Enterprise-Grade Infrastructure

  • Zero-Error Policy: Automated quality enforcement with 0 warnings/errors
  • CodeRAG System: Semantic code search with graph-based dependency analysis
  • MCP Protocol Integration: Standardized tool communication across platforms
  • Real-time Collaboration: Team workspaces with live collaboration sessions

๐Ÿ” Enterprise Code Quality Analysis Platform (Phase 6 - COMPLETE!)

Industry-First Comprehensive Analysis Suite with AI-Powered Insights

๐Ÿ› Bug Detection System (/bug)

  • 40+ Pattern Recognition: Memory leaks, race conditions, type safety violations, performance bottlenecks
  • AI-Powered Fix Suggestions: Intelligent resolution with confidence scoring
  • Real-time Processing: <200ms analysis response time
  • Security Analysis: XSS, SQL injection, CSRF vulnerability detection

๐Ÿ”ง Advanced Lint Analysis (/lint)

  • ESLint Integration: 10+ comprehensive code quality checks
  • Auto-Fix Engine: Intelligent resolution of fixable issues
  • Quality Metrics: 94/100 baseline standard with detailed reporting
  • Custom Rules: Extensible rule system for enterprise standards

๐Ÿ›ก๏ธ TypeScript Type Safety (/typecheck)

  • Compiler Integration: Complete TypeScript compiler integration
  • Coverage Tracking: 87% baseline with improvement monitoring
  • Strict Mode Analysis: Complete compliance checking
  • Type Assertion Detection: Dangerous any/unknown usage identification

๐Ÿ” Security Vulnerability Assessment (/security-review)

  • OWASP Compliance: Complete OWASP Top 10 coverage (8/10 baseline)
  • Security Score: 89/100 enterprise standard
  • CWE Classification: Common Weakness Enumeration integration
  • Dependency Audit: npm audit integration with 127+ package validation

๐Ÿ“Š Performance Metrics: 4/4 commands (100% implementation), 16 sub-commands, zero-error policy enforced

๐Ÿค Human-in-the-Loop Approval System (Phase 8 - IMPLEMENTING!)

  • Theme-Level Approval: Strategic confirmation at architecture/implementation/security levels
  • Quick Decision Shortcuts: Shift+Tab, Ctrl+Y/N/T/R for instant workflow approval
  • Progressive Trust Building: 5-stage evolution from novice to autonomous operation
  • Risk-Aware Processing: AI identifies optimal approval points automatically
  • Learning Partnership: Adapts to user patterns while maximizing safety and efficiency

Quick Start

# Install globally
npm install -g @bonginkan/maria

# Setup local AI models (optional)
maria setup-ollama    # Install and configure Ollama
maria setup-vllm      # Install and configure vLLM

# Start interactive mode with natural language
maria

# Natural language interaction (no commands needed!)
You: "ใ‚ณใƒผใƒ‰ใ‚’ๆ›ธใ„ใฆ"          # โ†’ Automatically triggers /code
You: "create a React app"    # โ†’ Intelligent routing to /code

# NEW: Code Quality Analysis Commands
> /lint check               # Comprehensive code quality analysis
> /typecheck analyze         # TypeScript type safety (87% coverage)
> /security-review scan      # OWASP compliance check (89/100 score)
> /bug fix "null pointer"    # AI-powered bug fix suggestions
You: "analyze this bug"      # โ†’ Auto-switches to /bug mode
You: "็ ”็ฉถ่ซ–ๆ–‡ใ‚’ๅฎŸ่ฃ…ใ—ใฆ"      # โ†’ Triggers /paper for paper-to-code

# Traditional slash commands (34+ available)
/code     # AI-powered code generation
/paper    # Research paper โ†’ code transformation
/vibe     # Autonomous development from requirements
/agentic  # Custom AI agent builder
/bug      # Comprehensive bug analysis & auto-fix
/image    # AI image generation
/video    # AI video generation with Google export
/model    # Switch between cloud and local models
/help     # Full command reference

Architecture

๐ŸŽจ CLI Design System - 124-Character Responsive Framework

Based on our comprehensive CLI Design Optimization SOW, MARIA features revolutionary terminal UI design:

๐Ÿ–ฅ๏ธ 124-Character Responsive Design

  • Optimal Width: 124 characters as base standard with dynamic adaptation
  • Responsive Range: 80-200 character terminal support
  • Layout System: 2-column layouts (80:36 ratio) with 4-character gaps
  • Perfect Centering: All logos and content mathematically centered

๐ŸŽจ Unified Color System (7-Color Palette)

const UNIFIED_COLORS = {
  PRIMARY: chalk.cyan, // Primary interface elements
  SUCCESS: chalk.green, // Success states and confirmations
  WARNING: chalk.yellow, // Warnings and alerts
  ERROR: chalk.red, // Error states
  INFO: chalk.blue, // Information display
  MUTED: chalk.gray, // Secondary text and borders
  ACCENT: chalk.magenta, // Brand accents and highlights
};

๐Ÿ”ค Minimal Icon System (6 Core Symbols)

  • โœ“ Success โ€ข โœ— Error โ€ข ! Warning โ€ข i Info โ€ข โ ‹ Loading โ€ข โ†’ Arrow
  • No Emoji Policy: Terminal compatibility across all systems
  • Unicode Safe: Consistent display across different terminal environments

๐Ÿ“ Layout Constants & Responsive Design

const DESIGN_CONSTANTS = {
  SCREEN_WIDTH: 124, // Base design width
  CONTENT_WIDTH: 120, // Content area (2-char margin)
  BORDER_WIDTH: 118, // Inner border width
  MAIN_CONTENT: 80, // Primary content column
  SIDEBAR: 36, // Secondary content (45% ratio)
  STATUS_BAR: 120, // Status bar width
};

๐Ÿ—๏ธ Revolutionary Platform Components

  • Intelligent Router: src/services/intelligent-router/ - 5-language natural language understanding
  • Internal Mode System: 50 cognitive states (โœฝ Thinkingโ€ฆ, โœฝ Debuggingโ€ฆ, โœฝ Optimizingโ€ฆ)
  • Multi-Agent Orchestrator: Coordinated specialized agents for complex tasks
  • DeepCode Integration: Paper-to-code transformation with 8-agent architecture
  • CodeRAG System: Semantic code search with graph-based dependency analysis
  • MCP Protocol: Standardized tool-agent communication framework
  • 124-Character UI Framework: Responsive terminal design with unified color system

๐Ÿค– Advanced Command Systems

  • Phase 2 Commands: /paper, /slide, /vibe, /mode, /agentic (autonomous development)
  • Quality Analysis: /bug, /lint, /typecheck, /security-review (enterprise-grade)
  • Interactive Session: src/services/interactive-session.ts - 30+ commands with real-time interrupts
  • Google Workspace: Direct integration for Docs, Slides, and Drive export

๐Ÿง  Intelligence Infrastructure

  • Adaptive Learning: Cross-session knowledge transfer and user pattern optimization
  • Context Preservation: Deep semantic compression with knowledge graph construction
  • Predictive Analytics: ML-powered intent prediction and workflow optimization
  • Real-time Processing: <200ms response with interrupt handling and streaming

๐Ÿ’ป Core Technologies

  • TypeScript 5.0+ with zero-error policy and comprehensive type coverage
  • Multi-AI Integration: 22+ models (OpenAI, Anthropic, Google, xAI, Groq, LM Studio, Ollama, vLLM)
  • Local AI Support: Native integration with LM Studio, Ollama, and vLLM for private deployments
  • Enterprise Standards: OWASP compliance, security vulnerability assessment
  • Natural Language Processing: Intent recognition with 95%+ accuracy across 5 languages

Development

Build & Quality

# Development workflow
pnpm build              # Build CLI using tsup
pnpm dev                # Watch mode development
pnpm clean              # Remove dist/ directory

# Quality assurance (ZERO errors/warnings policy)
pnpm lint --max-warnings 0    # ESLint with zero warnings enforced
pnpm type-check               # TypeScript type checking
pnpm test                     # Run test suite
pnpm test:coverage           # Tests with coverage

# Local testing
npm link                     # Global CLI installation
maria --version             # Test CLI functionality
maria                        # Interactive mode

Environment Setup

# AI Provider APIs
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_AI_API_KEY=AIza...
GROQ_API_KEY=gsk_...

# Local Models (integrated support)
LMSTUDIO_API_URL=http://localhost:1234
OLLAMA_API_URL=http://localhost:11434
VLLM_API_URL=http://localhost:8000

Code Quality Standards

All code must pass these checks before committing:

pnpm lint --max-warnings 0 && pnpm type-check && pnpm test && pnpm build

Zero-Error Policy:

  • ESLint errors: 0 (blocking)
  • ESLint warnings: 0 (blocking)
  • TypeScript errors: 0 (blocking)
  • Failed tests: 0 (blocking)
  • Build failures: 0 (blocking)

Project Structure

src/
โ”œโ”€โ”€ cli.ts                    # Main CLI entry point
โ”œโ”€โ”€ commands/                 # Individual CLI commands
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ interactive-session.ts     # Interactive mode handler
โ”‚   โ”œโ”€โ”€ intelligent-router/        # Natural language processing
โ”‚   โ”œโ”€โ”€ adaptive-learning-engine.ts
โ”‚   โ”œโ”€โ”€ enhanced-context-preservation.ts
โ”‚   โ”œโ”€โ”€ automated-code-quality.ts
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ providers/               # AI model integrations
โ”œโ”€โ”€ components/             # React components for UI
โ””โ”€โ”€ types/                  # TypeScript definitions

dist/                       # Compiled output
bin/maria                   # Executable CLI
maria-oss/                  # OSS distribution package

Contributing

Adding Commands

  1. Create src/commands/new-command.ts following existing patterns
  2. Register in CLI setup
  3. Add slash command handler in interactive-session.ts
  4. Update help text and documentation
  5. Ensure zero-error policy compliance

Testing Protocol

# Build and test locally
pnpm build && npm link

# Verify core functionality
maria --version              # Should show current version
maria status                # System health check
maria                       # Interactive mode

# Test commands in interactive mode
/help                       # All 30+ commands
/model                      # AI model selection
/code "hello world function" # Code generation
/exit                       # Clean session termination

๐Ÿ“ฆ Distribution & Licensing

Distribution Channels

  • Development Repository: bonginkan/maria_code (private, source code)
  • Public Distribution: bonginkan/maria (compiled binaries only)
  • NPM Package: @bonginkan/maria (v1.1.0+, compiled distribution)

๐Ÿข Dual-License Model

MARIA Platform operates under a dual-license structure designed to support both individual developers and enterprise customers:

๐Ÿ“ฑ Personal Use License (Free)

  • Individual Developers: Free for personal projects, learning, and non-commercial use
  • Open Source Projects: Free for open-source software development
  • Students & Academics: Free for educational and research purposes
  • Startups: Free for companies under 10 employees or $1M ARR

๐Ÿข Enterprise License (Paid)

  • Commercial Organizations: Required for companies over 10 employees or $1M ARR
  • Enterprise Features: Advanced security, compliance, priority support
  • Custom Integrations: Tailored implementations and dedicated support
  • SLA Guarantees: 99.9% uptime, <24hr response times

๐Ÿ”’ Source Code Protection

  • Compiled Distribution Only: Source code (src/) is not distributed publicly
  • NPM Package: Contains only compiled JavaScript binaries and type definitions
  • Intellectual Property: Core algorithms and AI systems remain proprietary
  • Security: Closed-source model ensures enterprise-grade security and compliance

๐Ÿ“ž Enterprise Sales & Support

  • Enterprise Licensing: enterprise@bonginkan.ai
  • Custom Deployments: Custom implementations for large organizations
  • Training & Certification: Professional development programs
  • 24/7 Support: Dedicated enterprise support channels

Automated CI/CD handles compiled distribution, NPM publishing, and quality enforcement while protecting proprietary source code.

๐Ÿ“š Documentation

v1.1.0 Complete Documentation Suite

Quick Access Documentation

Version Management System

Starting with v1.1.0, all documentation follows semantic versioning:

  • SPEC_SHEET_v1.1.0.md - Current technical specifications
  • DEVELOPER_GUIDE_v1.1.0.md - Current developer documentation
  • USER_MANUAL_v1.1.0.md - Current user documentation

Future versions (v1.1.1, v1.2.0, etc.) will maintain separate versioned documentation alongside existing files for complete historical reference and seamless upgrade paths.


MARIA Platform v1.1.0 establishes the new industry standard for AI-powered development tooling, combining enterprise-grade code quality analysis with the simplicity of conversational AI interaction. This release represents a fundamental shift in how developers approach code quality, security, and maintenance in modern software development.