Commit Graph

1558 Commits

Author SHA1 Message Date
Nirmal Arya
3ed7829ff6 Move MCP button to first position before paperclip icon
- Position MCP button as the leftmost action button
- Improves visibility and accessibility of MCP functionality
- User requested positioning change

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
0cbff1e657 Revert to stable MCP implementation
- Remove problematic stdio import to fix build issues
- Focus on SSE-based MCP servers for now
- Builds should work properly now

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
70f5bc3488 Fix missing mcp-stdio export issue
Use dynamic import to avoid build-time import errors
Add fallback error handling for unsupported environments
This should fix both dev server and Docker build issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
8583dd557c Fix wrangler.toml for v4 compatibility
Remove deprecated node_compat section, use nodejs_compat flag only

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
4ba8d5dd11 Enable full Node.js compatibility for stdio MCP servers
- Add nodejs_als compatibility flag and node_compat preset to wrangler.toml
- Remove artificial stdio limitation from MCP service
- Restore original example config with npx/uvx servers
- Update UI messaging to reflect both stdio and SSE support
- This should enable Jimmy's original stdio MCP functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
be422f18e0 Improve MCP integration for Cloudflare Workers environment
- Move MCP button to better position (after file upload, before enhance)
- Add runtime environment detection for stdio servers
- Update example config to focus on SSE-based servers
- Add warning about stdio server limitations in Cloudflare Workers
- Provide clearer error messages for unsupported server types

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Nirmal Arya
9264a5cf31 Fix MCP button positioning for better visibility
- Move MCP connection button from BaseChat to ChatBox component
- Position MCP button in the bottom toolbar near other action buttons
- Improve discoverability of MCP functionality in the UI
- Remove unused import from BaseChat component

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 11:27:48 -04:00
Jimmyyy
f73d1392e7 Add MCP integration and update AI SDK for MCP compatibility 2025-06-25 11:27:47 -04:00
Nirmal Arya
bb8fc48bea Fix CodeMirror extension conflict by pinning @codemirror/state version
- Pin @codemirror/state to version 6.5.2 to resolve version mismatch
- Fixes 'multiple instances of @codemirror/state' error in production builds
- Ensures all CodeMirror packages use consistent state version (6.5.2)
- Resolves instanceof checks failure that breaks CodeMirror functionality

This issue occurs when @codemirror/view depends on a newer version of
@codemirror/state than what's explicitly installed, causing multiple
instances to be bundled and breaking extension compatibility.
2025-06-25 10:30:40 -04:00
Nirmal Arya
fba02fcd7d template-import-fix and Bayer MGA multi-model fix. 2025-06-23 00:18:58 -04:00
Nirmal Arya
6156b84019 Fix starter template import failure by adding required User-Agent headers
- Add User-Agent header to GitHub API requests (required by GitHub)
- Fix Cloudflare Workers environment context handling
- Add comprehensive logging for template import debugging
- Improve error handling with detailed error messages
- Verify fix works for all 13 starter templates

Resolves template import 500 errors where users saw "Failed to import starter template"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 23:55:29 -04:00
Nirmal Arya
72ae0bf3b7 fix multi-model compatibility. 2025-06-22 19:49:26 -04:00
Nirmal Arya
b9415e1d81
Feature/bayer mga provider (#33)
* fix: enhance Bayer MGA provider reliability and Docker integration

* Merge latest dev branch changes into Bayer MGA feature branch
* Improve Bayer MGA provider model filtering and error handling
* Add robust model validation with fallback mechanisms
* Enhance logging and debugging capabilities for model selection
* Add Bayer MGA environment variables to Docker configurations
* Update worker configuration with Bayer MGA API keys
* Add comprehensive Bayer MGA setup to .env.example
* Create standalone test script for Bayer MGA provider debugging
* Fix intermittent model selection issues beyond Claude 3.7 Sonnet
* Ensure provider switching works without breaking other providers

* Bayer MGA provider multimodel support and test coverage.

* Add Claude.md.
2025-06-22 02:21:14 -04:00
Nirmal Arya
3f0dc96df3
Merge pull request #32 from bayer-int/release/multiple-model-Bayer-MGA
release multiple model support Bayer MGA
2025-06-17 05:48:52 -04:00
Nirmal Arya
69a2c135a3 release multiple model support Bayer MGA 2025-06-17 05:48:15 -04:00
Nirmal Arya
ce05f3e023
Merge pull request #31 from bayer-int/fix/bayer-mga-model-selection
Fix Bayer MGA provider model selection and improve error handling
2025-06-17 05:23:51 -04:00
Nirmal Arya
0ecb5af30e Fix Bayer MGA provider model selection and improve error handling
- Enhanced BayerMGAProvider getModelInstance method with model validation
- Added fallback mechanism when requested model is not available
- Improved dynamic model filtering with better validation
- Added UI model selection handling for unavailable models
- Added README.md to ECR deploy workflow paths-ignore

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 05:22:17 -04:00
Nirmal Arya
2127d113f0
Merge pull request #30 from bayer-int/feature/fix-nginx-request-size-limit
Fix 413 Request Entity Too Large error for large requests
2025-06-17 04:52:58 -04:00
Nirmal Arya
922f4d647f Fix 413 Request Entity Too Large error for large requests
- Increase nginx proxy-body-size and client-max-body-size to 500MB
- Add proxy timeouts for handling large file uploads and processing
- Supports large prompts, images, attachments, and GitHub project imports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 04:48:20 -04:00
Nirmal Arya
f9659caf0a
Merge pull request #29 from bayer-int/feature/fix-production-authentication
Release https redirect.
2025-06-16 22:34:32 -04:00
Nirmal Arya
81466b833d Release https redirect. 2025-06-16 22:33:43 -04:00
Nirmal Arya
fa5305bc0c
Merge pull request #28 from bayer-int/feature/fix-production-authentication
fix:https routing and pr creation.
2025-06-16 22:08:29 -04:00
Nirmal Arya
96a9a05c79 fix:https routing and pr creation. 2025-06-16 22:07:14 -04:00
Nirmal Arya
4254d35d3b
Merge pull request #27 from bayer-int/feature/fix-production-authentication
Fix Authentication release.
2025-06-16 21:51:07 -04:00
Nirmal Arya
4ce1a51d8a Fix Authentication release. 2025-06-16 21:50:07 -04:00
Nirmal Arya
544199af79
Merge pull request #26 from bayer-int/feature/fix-production-authentication
Feature/fix production authentication
2025-06-16 21:22:00 -04:00
Nirmal Arya
2340edec94 github oauth fixes and deployment enhancements 2025-06-16 21:20:30 -04:00
Nirmal Arya
6b9c270a69 Merge branch 'feature/bayer-mga-provider' into dev 2025-06-16 15:56:49 -04:00
Nirmal Arya
ffd15746c5 fix Removed circular dependency by removing the import of LLMManager from BaseProvider 2025-06-16 15:55:59 -04:00
Nirmal Arya
9cea1d2034 lean readiness probe. 2025-06-12 00:04:59 -04:00
Nirmal Arya
582ddbb939 updated k8s deployment and ingress config. 2025-06-11 23:31:19 -04:00
Nirmal Arya
a04247f034 buildify dev image deployment. 2025-06-11 23:01:01 -04:00
Nirmal Arya
50b7362452 Release github oauth routing fix. 2025-06-11 09:01:57 -04:00
Nirmal Arya
45cec6cdc7 Fix GitHub OAuth authentication flow with proper callback handler 2025-06-11 08:42:58 -04:00
Nirmal Arya
61ab78a1e7 host allow list updated. 2025-06-10 22:49:02 -04:00
Nirmal Arya
bad6639821 host allow list updated. 2025-06-10 22:40:37 -04:00
Nirmal Arya
d2afa85dd5 Release switch to target dev. 2025-06-10 22:26:14 -04:00
Nirmal Arya
6e3c4d12d8 switch to target buildify development 2025-06-10 22:20:22 -04:00
Nirmal Arya
d0374007f8
Merge pull request #25 from bayer-int/feature/landing-page-enhancements
Feature/landing page enhancements
2025-06-10 17:31:01 -04:00
Nirmal Arya
8edb591ac8 remove provider secrets. 2025-06-10 17:29:49 -04:00
Nirmal Arya
551be01c86 nginx config snippet change to http to https 2025-06-10 17:28:01 -04:00
Nirmal Arya
97aee2e130
Merge pull request #24 from bayer-int/feature/landing-page-enhancements
favicon change and deploy new build image.
2025-06-10 17:20:56 -04:00
Nirmal Arya
c6f92733e9 favicon change and deploy new build image. 2025-06-10 17:20:19 -04:00
Nirmal Arya
d59a113188 feature:landing page for github login. 2025-06-10 16:50:30 -04:00
Nirmal Arya
a30fbbb228 remove basic auth, github auth is implemented. 2025-05-31 16:58:18 -04:00
Nirmal Arya
db9a2c9292 feat: implement enterprise secrets management with AWS Secrets Manager
- Add ExternalSecret for auth secrets (SESSION_SECRET, GitHub OAuth) via AWS Secrets Manager
- Separate user-configurable provider API keys into dedicated K8s Secret
- Update deployment to use three-layer configuration model:
  * ConfigMap: non-sensitive public settings
  * ExternalSecret → Secret: infrastructure auth secrets from AWS
  * Secret: user-configurable provider API keys managed via UI
- Add comprehensive documentation for AWS Secrets Manager setup
- Include K8s deployment architecture guide with troubleshooting commands
- Enable secure, auditable, and rotatable secrets management for production

This follows enterprise security best practices with proper separation of concerns between infrastructure and user secrets.
2025-05-31 16:21:18 -04:00
Nirmal Arya
b1af370120 feat: add SESSION_SECRET and GitHub OAuth config to Kubernetes manifests
- Add SESSION_SECRET to Secret template for secure cookie encryption
- Add GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET for OAuth authentication
- Update deployment to reference both ConfigMap and Secret via envFrom
- Ensure sensitive data stays in Secret (base64 encoded) not ConfigMap
- Add helpful comments for secret generation and security best practices

This enables secure session management and GitHub authentication in EKS deployment.
2025-05-31 16:14:27 -04:00
Nirmal Arya
c255d00973 fix: replace @remix-run/node imports with @remix-run/cloudflare for compatibility
- Update all auth-related routes to use @remix-run/cloudflare imports
- Fix GitHub OAuth server utilities to use Cloudflare-compatible session storage
- Resolve build failures caused by Node.js-specific modules in browser bundle
- Enable successful production builds for EKS deployment

This resolves the 'Cannot access xs before initialization' error by ensuring all imports are compatible with the Cloudflare Workers runtime environment.
2025-05-31 16:07:44 -04:00
Nirmal Arya
b983302406 fix: resolve Bayer MGA provider bundling issues
- Fix TypeScript compilation errors in debug API route that were causing JavaScript bundling failures
- Add proper type definitions for API responses and test results
- Fix type conversions and parameter typing throughout debug route
- Update auth controls with proper error state typing
- Resolve 'Cannot access xs before initialization' runtime error in production

This fixes the EKS deployment crash by eliminating TypeScript compilation issues that were causing JavaScript module loading problems.
2025-05-31 15:59:21 -04:00
Nirmal Arya
6a357e91a6 fix: resolve 'Cannot access xs before initialization' runtime error
- Separate auth controls into lazy-loaded component to prevent module loading issues
- Add comprehensive error handling and fallbacks throughout auth system
- Make profile store resilient to initialization errors with safe localStorage access
- Add try-catch blocks around critical functions to prevent runtime crashes
- Provide fallback navigation methods when auth hooks fail
- Fix EKS deployment crash caused by JavaScript bundling/hoisting issues

This fixes the Header-DpwHgB0l.js runtime error that was preventing the app from loading in production.
2025-05-31 15:47:45 -04:00