Commit graph

41 commits

Author SHA1 Message Date
MrPiglr
ad5f15271e fix: resolve 55+ TypeScript errors and cleanup codebase
- Create server/auth.ts with requireAuth, optionalAuth, requireAdmin middleware
- Fix os.tsx: add Target/Check imports, fix useLayout->usePlatformLayout, fix achievements types
- Fix game-routes.ts: add all Request/Response types, fix session access
- Fix revenue.ts: org_id -> organization_id
- Fix votes.ts: currentSplit scope, created_by type
- Fix dashboard.ts: remove unsupported .distinct() method
- Fix game-dev-apis.ts: header/body type assertions
- Upgrade api/execute.ts: add Python simulation, JSON validation, HTML/CSS passthrough
- Upgrade app-registry.ts: full implementation with 15 apps, RBAC, categories
- Clean up Java heap error logs
2026-02-03 02:31:34 -07:00
MrPiglr
d1254106eb modified: server/index.ts 2026-01-29 11:10:47 -07:00
MrPiglr
b15a03f041 Resolve merge conflicts and complete merge 2026-01-25 20:45:57 -07:00
MrPiglr
28b08e1ddf Update .gitignore to exclude Linux build artifacts and binaries 2026-01-25 19:57:58 -07:00
bf4ea612a3
merge: Resolve conflicts and add GitHub Pages fix 2026-01-06 00:28:01 +00:00
4b84eedbd3 feat: Add revenue_events table and fix migration FK constraints
- Add revenue_events table to track org/project revenue with source tracking
- Add Drizzle schema for revenue_events with proper org/project references
- Create migration 0006_revenue_events.sql with indexes
- Fix migration 0004: Remove FK constraints to profiles.id (auth schema incompatibility)
- Document auth.users/profiles.id type mismatch (UUID vs VARCHAR)
- Harden profile update authorization (self-update or org admin/owner only)
- Complete org-scoping security audit implementation (42 gaps closed)
2026-01-05 04:54:12 +00:00
MrPiglr
a1e4b35669 Add Railway deployment config 2025-12-29 00:22:23 +00:00
MrPiglr
411c57e508 modified: client/src/pages/os.tsx
modified:   docs/ENTITLEMENTS_QUICKSTART.md
2025-12-27 06:30:21 +00:00
MrPiglr
670aec8068 new file: script/seed.ts 2025-12-24 17:45:22 +00:00
MrPiglr
f97122135d modified: server/routes.ts 2025-12-24 04:41:58 +00:00
MrPiglr
773cc74c33 Add OAuth 2.0 implementation with secure credential handling
- Implement server-side OAuth handlers for Discord, Roblox, GitHub
- Add OAuth routes with state validation and PKCE support
- Create comprehensive documentation (setup, rotation, quickstart)
- Add .env to .gitignore to protect credentials
2025-12-24 04:15:25 +00:00
MrPiglr
fa62b3cef1 modified: server/routes.ts 2025-12-24 02:45:56 +00:00
MrPiglr
929d293e5f new file: server/api/os.ts 2025-12-24 01:25:27 +00:00
MrPiglr
106253255a modified: server/openai.ts
modified:   server/websocket.ts
2025-12-23 21:41:48 +00:00
MrPiglr
e3e894ca61 Fix Vercel deployment errors: add .js extension to storage import in websocket.ts and fix missing ternary closing paren in passport.tsx 2025-12-23 04:30:10 +00:00
MrPiglr
bd1525b8e7 modified: client/src/App.tsx
new file:   client/src/hooks/use-websocket.ts
	new file:   client/src/pages/achievements.tsx
	new file:   client/src/pages/events.tsx
	new file:   client/src/pages/opportunities.tsx
	modified:   client/src/pages/os.tsx
	modified:   client/src/pages/passport.tsx
	modified:   package-lock.json
	modified:   server/websocket.ts
	new file:   test-implementation.sh
2025-12-23 03:52:48 +00:00
MrPiglr
cd39dc06c5 Add shared update guard and reliable site deletion count 2025-12-22 18:28:49 -07:00
MrPiglr
5251d7cb31 Fix @shared/schema path alias to relative import 2025-12-22 22:59:07 +00:00
MrPiglr
ef323d9016 Fix ESM imports with .js extensions for Vercel 2025-12-22 22:53:13 +00:00
MrPiglr
0f7f5704da modified: .env 2025-12-22 22:33:48 +00:00
MrPiglr
be2ddda4d5 modified: server/supabase.ts 2025-12-22 02:26:12 +00:00
sirpiglr
fb249c2343 Add chat memory and leadership profile retrieval to AI assistant
Introduces ChatMessage type, leadership profile retrieval, and chat history management functions to the storage layer.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b1b3a853-f2e8-4864-ab40-f66d6dfffce9
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/MQQU9It
Replit-Helium-Checkpoint-Created: true
2025-12-21 23:32:15 +00:00
sirpiglr
13c99f97f0 Add knowledge base and chat history for AI assistant
Introduce a new file for AeThex-specific knowledge and a database schema for storing AI chat messages to enable conversational memory.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: b361dc7e-05f2-4cb1-b449-192851e8acb5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/MQQU9It
Replit-Helium-Checkpoint-Created: true
2025-12-21 23:30:44 +00:00
sirpiglr
bdb4e82583 Enhance boot sequence and identity detection for the operating system
Update the OS boot sequence to include detailed hardware initialization, passport subsystem checks, and integrated identity detection. Adds a new API endpoint for retrieving authenticated user profiles.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ae92f0ce-ed07-4e47-b7ac-e9684ebbe070
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/nHHH2tH
Replit-Helium-Checkpoint-Created: true
2025-12-21 22:08:30 +00:00
sirpiglr
7ad559ac9c Update session settings to work correctly in production environments
Update server configuration to trust proxy in all environments and set sameSite cookie attribute correctly for production deployments.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 205c1f69-ad43-4a96-81d7-44eda03048df
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/I1D3tV4
Replit-Helium-Checkpoint-Created: true
2025-12-21 04:39:03 +00:00
sirpiglr
1f65e8cc3e Improve login reliability by fixing session cookie configuration
Update server session configuration to correctly handle cookies in development environments, specifically addressing issues with Vite's proxy and `sameSite` settings to ensure persistent user sessions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 66cabf5a-21e6-4022-a781-b6e3b087a382
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/ztDSlS2
Replit-Helium-Checkpoint-Created: true
2025-12-21 04:22:34 +00:00
sirpiglr
b772c75ab2 Update the operating system to launch directly into the AeThex OS desktop environment
Refactors the application routing to set AeThexOS as the root route and introduces new applications like "Network Neighborhood", "Mission.txt", "The Foundry", "Dev Tools", and "System Status" to the OS desktop.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 6dceac5d-6f23-4361-a652-e5a5d975d4d7
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/qyCtfDO
Replit-Helium-Checkpoint-Created: true
2025-12-21 02:55:38 +00:00
sirpiglr
0398f62df6 Add a network directory for viewing architects and their profiles
Introduce new routes and API endpoints for a public network directory, allowing users to view architect profiles and associated data.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 947fb3f7-a8df-488c-a0dd-73d268844a6f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/qyCtfDO
Replit-Helium-Checkpoint-Created: true
2025-12-21 02:37:14 +00:00
sirpiglr
05b06519c7 Expand admin access to include overseer and employee roles
Update the isAdmin check in server/routes.ts to include 'oversee' and 'employee' roles in addition to 'admin' for administrative access.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 53205cf3-ee26-42f0-98cc-9723a1b69ba3
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/gDYUPHL
Replit-Helium-Checkpoint-Created: true
2025-12-17 02:53:10 +00:00
sirpiglr
0cfb38d847 Update authentication to use Supabase and enable user sign-up
Integrate Supabase Auth for user login and sign-up, replacing the previous custom authentication system. This change modifies API routes, frontend authentication context, and the login page to support email-based authentication and a new sign-up flow.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 7b6bc38e-d7e0-4263-881e-db7e4f1e15bb
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/bgcvGPx
Replit-Helium-Checkpoint-Created: true
2025-12-17 02:13:28 +00:00
sirpiglr
b7a4014d17 Add public API endpoints for the operating system page
Introduces new public GET endpoints (/api/os/projects, /api/os/architects, /api/os/achievements, /api/os/notifications) to the server, enabling the client-side OS page to fetch real-time data. Updates the OS page to utilize these endpoints for displaying projects, architects, achievements, and notifications.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 258050df-3080-49f3-b0e1-4d1b677f529f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/0DVaTy4
Replit-Helium-Checkpoint-Created: true
2025-12-16 06:43:05 +00:00
sirpiglr
7f03ac1bb9 Add a virtual desktop environment with app management
Adds the AeThexOS virtual desktop page, including window management, app launching, and basic system utilities, along with updates to the protected route and authentication context.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 9aeffd21-c394-4a5b-a2cb-b0ba603639c1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/ogW6F7k
Replit-Helium-Checkpoint-Created: true
2025-12-16 06:30:51 +00:00
sirpiglr
d9c9eb8864 Improve login reliability and session handling for users
Fix issues with cookie transmission in login requests and ensure server-side session data is saved correctly before sending responses to the client.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ee5f230c-b996-4772-97e8-0ca1e17a02f6
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/xBCID6C
Replit-Helium-Checkpoint-Created: true
2025-12-16 00:24:51 +00:00
sirpiglr
d3948360c4 Allow all users to access the AI chatbot with rate limiting
Remove authentication requirement for the chat API endpoint and implement IP-based rate limiting for unauthenticated users and user-ID-based rate limiting for authenticated users.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: baef9c90-1ad1-43d5-b97c-28a2c13b46dd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/EL5FxMZ
Replit-Helium-Checkpoint-Created: true
2025-12-16 00:15:45 +00:00
sirpiglr
7547344fcb Fix type mismatch in chatbot rate limiting logic
Adjusted the `chatRateLimits` Map in `server/routes.ts` to use string keys (userId) instead of number keys, resolving a TypeScript type error and ensuring correct rate limiting for the chatbot API.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6fd6dbdc-a507-4c93-8855-b3ae8007f31c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/e4kDtnh
Replit-Helium-Checkpoint-Created: true
2025-12-16 00:14:02 +00:00
sirpiglr
9901ea3e2d Add AI chatbot and theme toggle functionality for improved user experience
Integrates a new AI chatbot using OpenAI, adds a theme toggle for light/dark modes, and includes a live activity feed for administrators.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: c19480f5-d8f1-4a0b-98ea-7bfe9144b25d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/yVjwaR4
Replit-Helium-Checkpoint-Created: true
2025-12-16 00:00:42 +00:00
sirpiglr
5ab99659bc Add an admin page to manage applications and resolve alerts
Introduces a new admin page for managing applications and includes functionality to resolve alerts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 34bed664-a459-48b3-b4bd-fe1aeb4a6f47
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/GoEZTAy
Replit-Helium-Checkpoint-Created: true
2025-12-15 23:31:22 +00:00
sirpiglr
5f40710e82 Add new admin dashboard sections and enhance Aegis monitor functionality
Introduce new admin routes for sites, logs, and achievements, refactor Aegis monitor to display real data from alerts and auth_logs, and implement JWT token generation for authentication.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 48e7daad-43dd-4684-8441-ff2ea20129e1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/HbU8yEz
Replit-Helium-Checkpoint-Created: true
2025-12-15 23:00:05 +00:00
sirpiglr
8ee5f71ef4 Add login, admin panel, and user management features
Introduces authentication via JWT, session management with CSRF protection, and new admin routes for managing users, projects, and monitoring security. Enhances dashboard and home pages with dynamic metrics fetched from the backend.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: dcd55177-c240-4288-8fc0-652032c758f2
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/2riq6Ir
Replit-Helium-Checkpoint-Created: true
2025-12-15 22:15:36 +00:00
sirpiglr
fde3523413 Add endpoints to explore database schema and retrieve table data
Initialize Supabase client with environment variables and register new API routes for schema exploration, table testing, and sample data retrieval.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 6cc03e4b-31f5-4d57-a340-17091c2752be
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/2riq6Ir
Replit-Helium-Checkpoint-Created: true
2025-12-15 22:03:00 +00:00
sirpiglr
6f54713012 Extracted stack files 2025-12-15 20:52:49 +00:00