@lanonasis/cli 1.5.0 → 1.5.1

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 CHANGED
@@ -1,62 +1,33 @@
1
- # Lanonasis CLI - Enterprise AI Infrastructure Platform
1
+ # Lanonasis CLI - Enterprise Infrastructure Management
2
2
 
3
- <div align="center">
3
+ [![npm version](https://img.shields.io/npm/v/@lanonasis/cli)](https://www.npmjs.com/package/@lanonasis/cli)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![MCP Integration](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-purple)](https://modelcontextprotocol.com)
4
6
 
5
- [![npm version](https://img.shields.io/npm/v/@lanonasis/cli?style=for-the-badge)](https://www.npmjs.com/package/@lanonasis/cli)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
7
- [![Security: SOC 2](https://img.shields.io/badge/Security-SOC%202%20Type%20II-red?style=for-the-badge)](https://security.lanonasis.com)
8
- [![Compliance: ISO 27001](https://img.shields.io/badge/ISO-27001%20Certified-green?style=for-the-badge)](https://security.lanonasis.com)
9
- [![MCP Integration](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-purple?style=for-the-badge)](https://modelcontextprotocol.com)
10
- [![Enterprise Ready](https://img.shields.io/badge/Enterprise-Ready-orange?style=for-the-badge)]()
7
+ 🚀 **Professional CLI for Lanonasis Platform Services with MCP Integration**
11
8
 
12
- </div>
9
+ The Lanonasis CLI provides a powerful command-line interface for interacting with the entire Lanonasis ecosystem, including Memory as a Service (MaaS), infrastructure management, and multi-service orchestration. Now with **Model Context Protocol (MCP)** integration for unified AI-agent communication. Manage your memories, search through knowledge bases, organize your thoughts, and control your infrastructure - all from the terminal.
13
10
 
14
- <div align="center">
15
- <h3>🚀 Enterprise-Grade CLI for AI-Driven Infrastructure & Memory Management</h3>
16
- <p>Unified command-line interface for Lanonasis ecosystem: Memory as a Service (MaaS), AI orchestration, and multi-tenant infrastructure management. Built for enterprise scale with Model Context Protocol (MCP) integration.</p>
17
- </div>
18
-
19
- ---
20
-
21
- ## 🏢 Enterprise Features
22
-
23
- <table>
24
- <tr>
25
- <td width="50%">
26
-
27
- ### 🔐 Security & Compliance
28
- - **Zero Trust Architecture**: Never trust, always verify
29
- - **End-to-end Encryption**: AES-256 + TLS 1.3 with PFS
30
- - **Multi-factor Authentication**: FIDO2/WebAuthn + TOTP
31
- - **Role-Based Access Control**: Granular permissions & least privilege
32
- - **SOC 2 Type II + ISO 27001**: Independently audited
33
- - **24/7 Security Operations**: Real-time threat monitoring
34
-
35
- </td>
36
- <td width="50%">
37
-
38
- ### 🚀 Performance & Scale
39
- - **High Availability**: 99.99% uptime SLA
40
- - **Global CDN**: Sub-100ms latency worldwide
41
- - **Horizontal Scaling**: Handle millions of requests
42
- - **Real-time Sync**: WebSocket & SSE support
43
- - **Batch Operations**: Process thousands of items
44
-
45
- </td>
46
- </tr>
47
- </table>
48
-
49
- ## 🆕 New in v1.5.0
50
- - **OAuth Web Authentication**: Browser-based authentication with multiple providers
51
- - **Multiple Authentication Methods**: Username/password, OAuth, and API keys
52
- - **Tab Completions**: Intelligent shell completions for bash and zsh
53
- - **Core Gateway Integration**: Centralized authentication through Lanonasis Core
54
- - **Connections Listing**: View all available functions and services
55
- - **Enhanced CLI UX**: Better help system and short command aliases
11
+ ## 🆕 New in v1.2.0 - API Key Management Integration
12
+ - **API Key Management**: Complete CLI commands for secure API key lifecycle management
13
+ - **MCP Tool Registration**: Register and manage MCP tools with scoped API access
14
+ - **Analytics & Security**: Track usage patterns and monitor security events
15
+ - **Project-based Organization**: Group API keys by projects for better organization
16
+ - **Zero-trust Security**: Encrypted key storage with proxy token generation
56
17
  - **MCP Server Mode**: Run as MCP server for AI assistants (Claude, Cursor, Windsurf)
57
18
  - **Hybrid Architecture**: Seamless switching between local MCP and remote API
58
19
  - **Real-time Updates**: SSE streaming for live memory synchronization
59
20
 
21
+ ## 🆕 New in v1.2.1 - Enhanced CLI Experience
22
+ - **🎨 Colorful VPS-style Interface**: Beautiful terminal output with intuitive color coding
23
+ - **📊 Enhanced System Status**: Comprehensive health checks and service monitoring
24
+ - **🔍 Improved Version Management**: Better version tracking and update notifications
25
+ - **⚡ Performance Optimizations**: Faster command execution and response times
26
+ - **🛡️ Enhanced Security Checks**: Real-time API endpoint validation
27
+ - **📈 Usage Statistics**: Track your CLI usage patterns and command history
28
+ - **🌈 Color-coded Output**: Error states, success messages, and warnings in vibrant colors
29
+ - **🔄 Auto-update Notifications**: Get notified when new versions are available
30
+
60
31
  ## ⚡ Quick Start
61
32
 
62
33
  ```bash
@@ -66,32 +37,23 @@ npm install -g @lanonasis/cli
66
37
  # Or use with npx (no installation needed)
67
38
  npx -y @lanonasis/cli init
68
39
 
69
- # Short command aliases
70
- onasis -h # Help with short alias
71
- lanonasis -h # Help with full name
72
-
73
- # Initialize and authenticate (choose your method)
40
+ # Initialize Lanonasis services
74
41
  lanonasis init
75
- lanonasis login # Interactive login with method choice
76
42
 
77
- # API key authentication (for automation/AI agents)
78
- export LANONASIS_API_KEY=your_api_key
79
- lanonasis memory list
80
- # Or inline:
81
- lanonasis --api-key=your_key memory search "query"
82
- npx -y @lanonasis/cli --api-key=your_key memory list
43
+ # Configure your services
44
+ lanonasis config set api-url https://your-lanonasis-service.com
83
45
 
84
- # View all available connections and functions
85
- lanonasis list # Show all available services
86
- lanonasis ls --type memory # Focus on memory services
46
+ # Authenticate
47
+ lanonasis auth login
87
48
 
88
49
  # Memory operations (also available as 'memory' and 'maas' commands)
89
50
  lanonasis memory create -t "My First Memory" -c "This is the content of my memory"
90
51
  lanonasis memory search "search query"
91
52
  lanonasis memory list
92
53
 
93
- # Install shell completions
94
- lanonasis install-completion --shell bash # or zsh
54
+ # Infrastructure management (future services)
55
+ lanonasis deploy status
56
+ lanonasis services list
95
57
  ```
96
58
 
97
59
  ## 🚀 Installation
@@ -123,34 +85,33 @@ npx lanonasis --help
123
85
  - `lanonasis status` - Show CLI status and configuration
124
86
 
125
87
  ### 🔐 Authentication
126
- - `lanonasis login` - Interactive login with method choice
127
88
  - `lanonasis auth login` - Authenticate with your services
128
89
  - `lanonasis auth logout` - Sign out
129
90
  - `lanonasis auth status` - Check authentication status
130
91
 
131
92
  ### 📝 Memory Operations
132
- - `lanonasis memory create -t "Title" -c "Content" [--type <type>]` - Create new memory
133
- - `lanonasis memory search <query> [-l <limit>]` - Search memories
134
- - `lanonasis memory list [-l <limit>] [--type <type>]` - List memories
135
- - `lanonasis list` - Show all available connections and functions
93
+ - `lanonasis create -t "Title" -c "Content" [--type <type>]` - Create new memory
94
+ - `lanonasis search <query> [-l <limit>]` - Search memories
95
+ - `lanonasis list [-l <limit>] [--type <type>]` - List memories
136
96
  - `lanonasis help` - Show detailed help
137
97
 
138
- #### Alternative Commands & Aliases
98
+ ### 🔑 API Key Management (NEW in v1.2.0)
99
+ - `lanonasis api-keys create` - Create a new API key with secure encryption
100
+ - `lanonasis api-keys list` - List all API keys with usage statistics
101
+ - `lanonasis api-keys get <keyId>` - Get details of a specific API key
102
+ - `lanonasis api-keys update <keyId>` - Update API key name, tags, or rotation policy
103
+ - `lanonasis api-keys delete <keyId>` - Securely delete an API key
104
+ - `lanonasis api-keys projects create` - Create a project for organizing keys
105
+ - `lanonasis api-keys projects list` - List all API key projects
106
+ - `lanonasis api-keys mcp register-tool` - Register MCP tools for API access
107
+ - `lanonasis api-keys mcp list-tools` - List registered MCP tools
108
+ - `lanonasis api-keys mcp request-access` - Request access to API keys via MCP
109
+ - `lanonasis api-keys analytics usage` - View API key usage analytics
110
+ - `lanonasis api-keys analytics security-events` - Monitor security events
111
+
112
+ #### Alternative Commands (Backwards Compatibility)
139
113
  - `memory <command>` - Direct memory operations
140
- - `maas <command>` - Memory as a Service operations
141
- - `onasis <command>` - Short alias for lanonasis
142
- - `lanonasis ls` - Alias for list command
143
-
144
- ### 🔗 Connections & Functions
145
- - `lanonasis list` - Show all available services and functions
146
- - `lanonasis ls --type memory` - Focus on memory services only
147
- - `lanonasis ls --type api` - Show API connections
148
- - `lanonasis ls --type mcp` - Show MCP tools
149
-
150
- ### 🎯 Shell Completions
151
- - `lanonasis completion --shell bash` - Generate bash completions
152
- - `lanonasis completion --shell zsh` - Generate zsh completions
153
- - `lanonasis install-completion` - Install completions for current shell
114
+ - `maas <command>` - Memory as a Service operations
154
115
 
155
116
  ## 🧠 Memory Types
156
117
 
@@ -175,40 +136,16 @@ lanonasis config list
175
136
 
176
137
  ## 🔒 Authentication
177
138
 
178
- The CLI supports multiple authentication methods for different use cases:
139
+ Authenticate with your Lanonasis platform:
179
140
 
180
- ### Interactive Authentication
181
141
  ```bash
182
- # Choose your preferred method (username/password or OAuth)
183
- lanonasis login
184
-
185
- # Traditional method-specific login
142
+ # Login to your service
186
143
  lanonasis auth login
187
- ```
188
-
189
- **Available Methods:**
190
- - **🔑 Username/Password**: Direct login with email and password
191
- - **🌐 OAuth/Web Browser**: Secure browser-based authentication with multiple providers
192
144
 
193
- ### API Key Authentication (for Automation)
194
- ```bash
195
- # Environment variable (recommended for scripts)
196
- export LANONASIS_API_KEY=your_api_key_here
197
- lanonasis memory list
198
-
199
- # Command-line option
200
- lanonasis --api-key=your_key memory search "query"
201
-
202
- # NPX usage with API key (for AI agents)
203
- npx -y @lanonasis/cli --api-key=your_key memory list
204
- ```
205
-
206
- ### Authentication Status
207
- ```bash
208
- # Check current authentication
145
+ # Check authentication status
209
146
  lanonasis auth status
210
147
 
211
- # Logout (clears all auth methods)
148
+ # Logout
212
149
  lanonasis auth logout
213
150
  ```
214
151
 
@@ -434,247 +371,33 @@ MIT License - see LICENSE file for details
434
371
  - **Research Organization** - Academic and research note-taking
435
372
  - **API Integration** - Programmatic memory management
436
373
 
437
- ## 🏆 Enterprise Deployment
438
-
439
- ### 📊 Performance Benchmarks
440
-
441
- <table>
442
- <tr>
443
- <th>Metric</th>
444
- <th>Performance</th>
445
- <th>Scale</th>
446
- </tr>
447
- <tr>
448
- <td>Request Latency</td>
449
- <td><strong>&lt; 50ms</strong> p99</td>
450
- <td>Global average</td>
451
- </tr>
452
- <tr>
453
- <td>Memory Search</td>
454
- <td><strong>&lt; 100ms</strong></td>
455
- <td>1M+ vectors</td>
456
- </tr>
457
- <tr>
458
- <td>Concurrent Users</td>
459
- <td><strong>100K+</strong></td>
460
- <td>Per instance</td>
461
- </tr>
462
- <tr>
463
- <td>API Throughput</td>
464
- <td><strong>10K RPS</strong></td>
465
- <td>Per node</td>
466
- </tr>
467
- <tr>
468
- <td>Data Retention</td>
469
- <td><strong>Unlimited</strong></td>
470
- <td>With archival</td>
471
- </tr>
472
- </table>
473
-
474
- ### 🏗️ Architecture
475
-
476
- ```
477
- ┌─────────────────────────────────────────────────────────────┐
478
- │ Lanonasis CLI v1.5.0 │
479
- ├─────────────────┬───────────────────┬──────────────────────┤
480
- │ Auth Layer │ Command Layer │ Transport Layer │
481
- ├─────────────────┼───────────────────┼──────────────────────┤
482
- │ • OAuth 2.0 │ • Memory CRUD │ • REST API │
483
- │ • API Keys │ • Vector Search │ • WebSocket │
484
- │ • JWT Tokens │ • Batch Ops │ • SSE Streaming │
485
- │ • MFA Support │ • Admin Tools │ • MCP Protocol │
486
- └─────────────────┴───────────────────┴──────────────────────┘
487
-
488
- ┌─────────────────────────────────────────────────────────────┐
489
- │ Lanonasis Core Gateway │
490
- ├─────────────────────────────────────────────────────────────┤
491
- │ PostgreSQL + pgvector | Redis | OpenAI API │
492
- └─────────────────────────────────────────────────────────────┘
493
- ```
494
-
495
- ### 🚀 Commercial Deployments
496
-
497
- #### Industry Solutions
498
-
499
- <table>
500
- <tr>
501
- <td width="33%">
502
-
503
- **🏦 Financial Services**
504
- - Transaction context tracking
505
- - Compliance audit trails
506
- - Risk assessment memory
507
- - Customer interaction history
508
-
509
- </td>
510
- <td width="33%">
511
-
512
- **🏥 Healthcare**
513
- - Patient context management
514
- - Treatment history tracking
515
- - Clinical decision support
516
- - HIPAA compliant storage
517
-
518
- </td>
519
- <td width="33%">
520
-
521
- **🎓 Education**
522
- - Student learning paths
523
- - Knowledge retention tracking
524
- - Collaborative research
525
- - Academic memory sharing
526
-
527
- </td>
528
- </tr>
529
- </table>
530
-
531
- ### 🔒 Security & Compliance
532
-
533
- <table>
534
- <tr>
535
- <td width="50%">
536
-
537
- #### 🏛️ Certifications & Standards
538
- - **ISO 27001:2013** - Information Security Management
539
- - **SOC 2 Type II** - Service Organization Controls
540
- - **ISO 27017** - Cloud Security Controls
541
- - **ISO 27018** - Cloud Privacy Protection
542
- - **FedRAMP Moderate** - US Government Cloud Security
543
- - **CSA STAR Level 2** - Cloud Security Alliance
544
-
545
- #### 🌍 Regional Compliance
546
- - **GDPR** (EU) - General Data Protection Regulation
547
- - **CCPA** (California) - Consumer Privacy Act
548
- - **PIPEDA** (Canada) - Personal Information Protection
549
- - **LGPD** (Brazil) - Lei Geral de Proteção de Dados
550
- - **PDPA** (Singapore) - Personal Data Protection Act
551
-
552
- </td>
553
- <td width="50%">
554
-
555
- #### 🏥 Industry Standards
556
- - **HIPAA** - Healthcare Information Portability
557
- - **PCI DSS Level 1** - Payment Card Industry Security
558
- - **FISMA** - Federal Information Security Management
559
- - **NIST Cybersecurity Framework** - Risk Management
560
- - **HITRUST CSF** - Healthcare Security Framework
561
- - **21 CFR Part 11** - FDA Electronic Records
562
-
563
- #### 🔐 Security Controls
564
- - **Zero Trust Architecture** - Never trust, always verify
565
- - **End-to-End Encryption** - AES-256 + TLS 1.3
566
- - **Multi-Factor Authentication** - FIDO2/WebAuthn support
567
- - **Role-Based Access Control** - Least privilege principle
568
- - **Security Monitoring** - 24/7 SOC with SIEM
569
- - **Penetration Testing** - Quarterly by certified firms
570
-
571
- </td>
572
- </tr>
573
- </table>
574
-
575
- #### 🛡️ Data Protection Guarantees
576
-
577
- | Security Feature | Implementation | Audit Frequency |
578
- |------------------|----------------|-----------------|
579
- | **Encryption at Rest** | AES-256 with FIPS 140-2 HSMs | Continuous |
580
- | **Encryption in Transit** | TLS 1.3 with Perfect Forward Secrecy | Real-time |
581
- | **Key Management** | AWS KMS + Azure Key Vault | Monthly |
582
- | **Access Logging** | Immutable audit trails | Daily review |
583
- | **Data Backup** | 3-2-1 strategy with geo-replication | Weekly verification |
584
- | **Incident Response** | <15 min detection, <1hr response | Quarterly drills |
585
-
586
- #### 🎖️ Security Partnerships
587
-
588
- <table>
589
- <tr>
590
- <td align="center" width="25%">
591
- <strong>AWS Security</strong><br/>
592
- Advanced Technology Partner
593
- </td>
594
- <td align="center" width="25%">
595
- <strong>Microsoft Security</strong><br/>
596
- Gold Cloud Platform Partner
597
- </td>
598
- <td align="center" width="25%">
599
- <strong>Okta Verified</strong><br/>
600
- Identity & Access Management
601
- </td>
602
- <td align="center" width="25%">
603
- <strong>CrowdStrike</strong><br/>
604
- Endpoint Protection Partner
605
- </td>
606
- </tr>
607
- </table>
608
-
609
- ### 📈 Enterprise Support
610
-
611
- | Plan | Response Time | Support Level | Price |
612
- |------|--------------|---------------|-------|
613
- | **Starter** | 24 hours | Email | Free |
614
- | **Professional** | 4 hours | Email + Chat | $299/mo |
615
- | **Enterprise** | 30 minutes | 24/7 Phone + Dedicated | Custom |
616
-
617
- ### 🌍 Global Infrastructure
618
-
619
- - **6 Regions**: US East/West, EU, APAC, SA, AF
620
- - **99.99% Uptime** SLA guarantee
621
- - **Automatic Failover** across regions
622
- - **Data Residency** options available
623
- - **Edge Caching** via global CDN
374
+ ## 🏆 Production Ready Features
375
+
376
+ ### Enterprise Capabilities
377
+ - **🔐 Secure Authentication** - API key and JWT token support
378
+ - **🌐 Multi-tenant Support** - Isolated memory spaces per user/org
379
+ - **📊 Rate Limiting** - Built-in request throttling
380
+ - **🔄 Retry Logic** - Automatic retry with exponential backoff
381
+ - **📝 Comprehensive Logging** - Debug and audit trails
382
+ - **🚀 Performance Optimized** - Minimal overhead, fast responses
383
+
384
+ ### Commercial Use Cases
385
+ - **💼 Enterprise Knowledge Management** - Company-wide memory system
386
+ - **🤝 Team Collaboration** - Shared project memories
387
+ - **🎓 Educational Platforms** - Student/teacher memory sharing
388
+ - **🏥 Healthcare Systems** - Patient context management
389
+ - **💰 Financial Services** - Transaction memory and audit trails
390
+ - **🛒 E-commerce** - Customer interaction history
391
+
392
+ ### Integration Ready
393
+ - **REST API** - Standard HTTP/JSON interface
394
+ - **MCP Protocol** - AI assistant integration
395
+ - **WebSocket** - Real-time updates
396
+ - **SSE Streaming** - Live data synchronization
397
+ - **SDK Available** - TypeScript/JavaScript client library
624
398
 
625
399
  ---
626
400
 
627
- <div align="center">
628
-
629
- ### 🎯 Trusted by Industry Leaders
630
-
631
- <table>
632
- <tr>
633
- <td align="center">
634
- <strong>10M+</strong><br/>
635
- API Calls Daily
636
- </td>
637
- <td align="center">
638
- <strong>500K+</strong><br/>
639
- Active Users
640
- </td>
641
- <td align="center">
642
- <strong>99.99%</strong><br/>
643
- Uptime SLA
644
- </td>
645
- <td align="center">
646
- <strong>50ms</strong><br/>
647
- Avg Latency
648
- </td>
649
- </tr>
650
- </table>
651
-
652
- ### 🛡️ Security & Vulnerability Disclosure
653
-
654
- We take security seriously. If you discover a security vulnerability, please follow our responsible disclosure process:
655
-
656
- **🚨 Security Contact**: security@lanonasis.com
657
- **🔒 PGP Key**: [Download Public Key](https://security.lanonasis.com/pgp)
658
- **⏱️ Response Time**: 24 hours for critical, 72 hours for non-critical
659
- **💰 Bug Bounty**: Up to $10,000 for critical vulnerabilities
660
-
661
- #### Security Reporting Guidelines
662
- - **DO**: Report vulnerabilities privately to our security team
663
- - **DO**: Provide detailed reproduction steps and impact assessment
664
- - **DO**: Allow reasonable time for patching before public disclosure
665
- - **DON'T**: Access user data or disrupt service operations
666
- - **DON'T**: Perform automated scanning without prior authorization
667
-
668
- ### 📞 Enterprise Contact
669
-
670
- 🔗 **Sales**: enterprise@lanonasis.com
671
- 📚 **Documentation**: [docs.lanonasis.com](https://docs.lanonasis.com)
672
- 🛟 **Support**: [support.lanonasis.com](https://support.lanonasis.com)
673
- 🌐 **Platform**: [api.lanonasis.com](https://api.lanonasis.com)
674
- 🛡️ **Security**: [security.lanonasis.com](https://security.lanonasis.com)
675
-
676
- <br/>
677
-
678
- **© 2024 Lanonasis Corporation. All rights reserved.**
679
-
680
- </div>
401
+ **Built with ❤️ for the Memory as a Service ecosystem**
402
+
403
+ 🚀 **Ready for Production** | 📚 [Documentation](https://docs.lanonasis.com) | 🌐 [Platform](https://api.lanonasis.com)
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ declare const apiKeysCommand: Command;
3
+ export default apiKeysCommand;