loki-mode 6.27.1 → 6.27.2

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
@@ -14,7 +14,7 @@
14
14
 
15
15
  ### Traction
16
16
 
17
- **737 stars** | **150 forks** | **10,500+ Docker pulls** | **19,000+ npm downloads** | **588 commits** | **173 npm versions published** | **17 releases in a single day (March 18, 2026)**
17
+ **737 stars** | **150 forks** | **10,600+ Docker pulls** | **19,000+ npm downloads** | **590 commits** | **252 releases published** | **18 releases in a single day (March 18, 2026)**
18
18
 
19
19
  ---
20
20
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.27.1
1
+ 6.27.2
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "6.27.1"
10
+ __version__ = "6.27.2"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -2,7 +2,7 @@
2
2
 
3
3
  The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v6.27.1
5
+ **Version:** v6.27.2
6
6
 
7
7
  ---
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "6.27.1",
3
+ "version": "6.27.2",
4
4
  "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "agent",
@@ -0,0 +1,43 @@
1
+ # PRD: REST API Service
2
+
3
+ ## Overview
4
+ A production-ready RESTful API backend with authentication, CRUD operations, pagination, filtering, rate limiting, and comprehensive documentation.
5
+
6
+ ## Target Users
7
+ - Backend developers building API-first applications
8
+ - Teams needing a structured API for frontend or mobile clients
9
+ - Developers learning REST API best practices
10
+
11
+ ## Core Features
12
+ 1. **Authentication** - JWT-based auth with access and refresh tokens, password hashing with bcrypt
13
+ 2. **Resource CRUD** - Full create, read, update, delete operations with proper HTTP methods and status codes
14
+ 3. **Pagination and Filtering** - Cursor-based pagination, field filtering, sorting, and search across resources
15
+ 4. **Rate Limiting** - Per-endpoint and per-user rate limits with configurable windows and limits
16
+ 5. **Input Validation** - Request body and query parameter validation with detailed error messages
17
+ 6. **API Documentation** - Auto-generated OpenAPI/Swagger documentation with interactive testing
18
+ 7. **Error Handling** - Consistent error response format with appropriate HTTP status codes
19
+
20
+ ## Technical Requirements
21
+ - Node.js with Express and TypeScript
22
+ - Prisma ORM with SQLite (dev) / PostgreSQL (prod)
23
+ - JSON Web Tokens for stateless authentication
24
+ - Express middleware architecture
25
+ - Environment-based configuration
26
+ - Structured logging with request correlation IDs
27
+ - Database migrations and seed data
28
+
29
+ ## Quality Gates
30
+ - Unit tests for middleware, validators, and business logic
31
+ - Integration tests for all API endpoints
32
+ - Authentication flow tested end-to-end
33
+ - Rate limiter tested under concurrent requests
34
+ - OpenAPI spec validates against schema
35
+ - No N+1 query issues in list endpoints
36
+
37
+ ## Success Metrics
38
+ - All CRUD endpoints return correct status codes and response shapes
39
+ - JWT auth flow works: register, login, refresh, logout
40
+ - Pagination returns correct pages with proper metadata
41
+ - Rate limiter blocks excessive requests with 429 responses
42
+ - Swagger UI serves interactive documentation
43
+ - All tests pass
@@ -0,0 +1,42 @@
1
+ # PRD: SaaS Application
2
+
3
+ ## Overview
4
+ A modern SaaS web application with user authentication, subscription billing, team management, and an admin dashboard.
5
+
6
+ ## Target Users
7
+ - Indie developers launching subscription-based products
8
+ - Small teams needing a billing-ready web application
9
+ - Founders validating a SaaS idea quickly
10
+
11
+ ## Core Features
12
+ 1. **User Authentication** - Email/password signup and login with session management and email verification
13
+ 2. **OAuth Integration** - Sign in with Google and GitHub for frictionless onboarding
14
+ 3. **Subscription Billing** - Stripe integration with Free, Pro, and Enterprise pricing tiers
15
+ 4. **Admin Dashboard** - User management, subscription metrics, revenue analytics, and system health monitoring
16
+ 5. **User Settings** - Profile editing, password changes, avatar upload, and plan management
17
+ 6. **Team Management** - Invite members by email, assign roles (owner, admin, member), manage permissions
18
+ 7. **API Layer** - RESTful API with authentication middleware, rate limiting, and input validation
19
+
20
+ ## Technical Requirements
21
+ - Next.js 14 with App Router and TypeScript
22
+ - TailwindCSS with shadcn/ui components
23
+ - Prisma ORM with PostgreSQL
24
+ - NextAuth.js v5 for authentication
25
+ - Stripe SDK for payment processing
26
+ - Server-side rendering for authenticated pages
27
+ - Middleware-based route protection
28
+
29
+ ## Quality Gates
30
+ - Unit tests for business logic and utilities (Vitest)
31
+ - API integration tests for auth flow and billing webhooks
32
+ - E2E tests for signup, subscribe, and cancellation flow (Playwright)
33
+ - All API routes validated with zod schemas
34
+ - Stripe webhook signature verification
35
+ - CSRF protection on all mutations
36
+
37
+ ## Success Metrics
38
+ - User can sign up, verify email, and log in via email or OAuth
39
+ - Subscription checkout and cancellation work end-to-end
40
+ - Admin dashboard displays accurate user and revenue data
41
+ - Role-based access control enforced on all routes
42
+ - All tests pass with zero console errors
package/web-app/server.py CHANGED
@@ -46,7 +46,7 @@ app = FastAPI(title="Purple Lab", docs_url=None, redoc_url=None)
46
46
 
47
47
  app.add_middleware(
48
48
  CORSMiddleware,
49
- allow_origins=["*"],
49
+ allow_origins=["http://127.0.0.1:57375", "http://localhost:57375"],
50
50
  allow_methods=["*"],
51
51
  allow_headers=["*"],
52
52
  )