Waleed
e697e50d4e
improvement(performance): remove unused source/target indices, add index on snapshot id ( #1603 )
2025-10-11 20:37:35 -07:00
Waleed
2d49892aaa
feat(deployed-chat): added file upload to workflow execute API, added to deployed chat, updated chat panel ( #1588 )
...
* feat(deployed-chat): updated chat panel UI, deployed chat and API can now accept files
* added nested tag dropdown for files
* added duplicate file validation to chat panel
* update docs & SDKs
* fixed build
* rm extraneous comments
* ack PR comments, cut multiple DB roundtrips for permissions & api key checks in api/workflows
* allow read-only users to access deployment info, but not take actions
* add downloadable file to logs for files passed in via API
* protect files/serve route that is only used client-side
---------
Co-authored-by: waleed <waleed>
2025-10-10 17:19:51 -07:00
Vikhyath Mondreti
8ce5a1b7c0
feat(billing): bill by threshold to prevent cancellation edge case ( #1583 )
...
* feat(billing): bill by threshold to prevent cancellation edge case
* fix org billing
* fix idempotency key issue
* small optimization for team checks
* remove console log
* remove unused type
* fix error handling
2025-10-10 17:19:51 -07:00
Waleed
c04eb01aed
fix(db): revert to dedicated sockets db connection establishment ( #1581 )
2025-10-08 08:37:58 -07:00
Waleed
1a0fdb32fe
chore(docs): update docs ( #1578 )
2025-10-08 00:55:18 -07:00
Waleed
9d45b8df1e
fix(ts-sdk): fix job to publish ts sdk ( #1576 )
2025-10-08 00:46:30 -07:00
Waleed
ae3a7f0865
fix(db): reduce overall number of db max conncetions to incr performance ( #1575 )
2025-10-08 00:30:44 -07:00
Waleed
715f42c1a6
feat(highlighting): added resolved vars highlighting to code subblock, to be consistent with other subblocks ( #1570 )
2025-10-07 17:17:39 -07:00
Waleed
872e034312
feat(chat-streaming): added a stream option to workflow execute route, updated SDKs, updated docs ( #1565 )
...
* feat(chat-stream): updated workflow id execute route to support streaming via API
* enable streaming via api
* added only text stream option
* cleanup deployed preview componnet
* updated selectedOutputIds to selectedOutput
* updated TS and Python SDKs with async, rate limits, usage, and streaming API routes
* stream non-streaming blocks when streaming is specified
* fix(chat-panel): add onBlockComplete handler to chat panel to stream back blocks as they complete
* update docs
* cleanup
* ack PR comments
* updated next config
* removed getAssetUrl in favor of local assets
* resolve merge conflicts
* remove extra logic to create sensitive result
* simplify internal auth
* remove vercel blob from CSP + next config
2025-10-07 15:10:37 -07:00
Waleed
f03f395225
fix(db): enable database connection pooling in production ( #1564 )
...
* fix: enable database connection pooling in production
* debug: add diagnostic endpoints to test NODE_ENV and database pooling
* test: add connection testing endpoint to diagnose production delay
* redeuce num of concurrent connections
2025-10-07 10:27:33 -07:00
Vikhyath Mondreti
c42d2a32f3
feat(copilot): fix context / json parsing edge cases ( #1542 )
...
* Add get ops examples
* input format incorrectly created by copilot should not crash workflow
* fix tool edits triggering overall delta
* fix(db): add more options for SSL connection, add envvar for base64 db cert (#1533 )
* fix trigger additions
* fix nested outputs for triggers
* add condition subblock sanitization
* fix custom tools json
* Model selector
* fix response format sanitization
* remove dead code
* fix export sanitization
* Update migration
* fix import race cond
* Copilot settings
* fix response format
* stop loops/parallels copilot generation from breaking diff view
* fix lint
* Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* fix tests
* fix lint
---------
Co-authored-by: Siddharth Ganesan <siddharthganesan@gmail.com >
Co-authored-by: Waleed <walif6@gmail.com >
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-10-03 19:08:57 -07:00
Waleed
10692b5e5a
fix(db): remove overly complex db connection logic ( #1538 )
2025-10-02 19:54:32 -07:00
Waleed
5f1518ffd9
fix(db): added SSL config to migrations container ( #1535 )
2025-10-02 18:04:31 -07:00
Waleed
fa9c97816b
fix(db): add more options for SSL connection, add envvar for base64 db cert ( #1533 )
2025-10-02 15:53:45 -07:00
Waleed
ace83ebcae
feat(cmdk): added knowledgebases to the cmdk modal ( #1530 )
2025-10-01 21:21:42 -07:00
Waleed
980a6d8347
improvement(db): enforce SSL everywhere where a DB connection is established ( #1522 )
...
* improvement(db): enforce SSL everywhere where a DB connection is established
* remove extraneous comment
2025-10-01 19:09:08 -07:00
Waleed
6e63eafb79
improvement(db): remove vercel, remove railway, remove crons, improve DB connection config ( #1519 )
...
* improvement(db): remove vercel, remove railway, remove crons, improve DB connection config
* remove NEXT_PUBLIC_VERCEL_URL
* remove db url fallbacks
* remove railway & more vercel stuff
---------
Co-authored-by: waleed <waleed>
2025-10-01 16:37:13 -07:00
Siddharth Ganesan
79461840c3
fix(migrations): make sso migration idempotent
2025-09-30 11:04:44 -07:00
Waleed
bf1c178282
feat(sso): add support for login with SAML/SSO ( #1489 )
...
* feat(sso): added login with SAML/SSO
* restore env
* fixed login styling
* upgrade deps, update UI
* more styling improvements
* reran migrations, tested with script
* improvement(auth): created SSO page
* improvement(auth): remove email option for SSO if not enabled
* cleanup
* cleaned up, added documentation for SSO/SAML config + tested registering either one with script and UI form
* cleanup
* ack PR comments
* move sso known providers to consts
---------
Co-authored-by: waleed <waleed>
Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu >
2025-09-29 20:05:26 -07:00
Waleed
dd1985c99c
improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier] ( #1474 )
...
* improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]
* ui fix
* added back validate route, remove backwards compatibility for subdomain redirects
* cleanup
* cleanup
* add chat page to conditional theme layout, and remove custom chat css
* consolidate theme providers
* ack pr commnets
---------
Co-authored-by: waleed <waleed>
2025-09-27 17:32:10 -07:00
Vikhyath Mondreti
928581f387
feat(deployments): make deployed state source of truth for non-manual executions + versioning ( #1242 )
...
* feat(deployments): make deployed state source of truth for non-manual executions + versioning
* fix lint
* fix test
* add script to migrate to deployed vesions
* fix deployed chat
* address greptile commands
* Remove 84th migration files to prepare for regeneration
* fix script + update migration
* fix script
* cleanup typing
* use shared helper
* fix tests
* fix duplicate route
* revert migrations prep
* add migration back
* add workflow in workflow block func
* fix UI
* fix lint
* make migration idempotent
* remove migrations
* add migrations back'
* adjust script to reuse helper
* add test webhook URL functionality
* consolidate test URL + prod URL code for webhooks
* fixes
* update trigger config save with correct dependencies
* make frozen canvas respect trigger mode
* chore(db): remove latest migration 0088, snapshot, journal entry; delete migrate-deployment-versions script
* separate parent id cleanup migration
* chore(db): remove 0089 migration, snapshot, and prune journal entry
* chore(db): generate 0090 migration after removing 0089 and merging staging
* fix
* chore(db): remove 0090 migration, snapshot, and prune journal entry
* chore(db): generate 0091 migration after merging staging and restoring idempotency flow
* fix some imports
* remove dead code
* fix tests
* remove comment
* working test url functionality restored
* works
* some styling changes
* make deploy text accurate
* chore(db): remove latest migration 0091 and snapshot; update journal before merging staging
* db(migrations): generate 0093_medical_sentinel and snapshots after merging staging
* reconcile with other merge
* fix trigger test
* remove extra use effect
* fix test url"
* don't swallow serializer errors
* fix lint
* fix tests
* fix tests
* expose root for generic webhook
* root access for webhook
* add is workflow ready check correctly
2025-09-24 20:28:09 -07:00
Vikhyath Mondreti
094dae3d3f
feat(copilot): add training interface ( #1445 )
...
* progress
* cleanup UI
* progress
* fix trigger mode in yaml + copilot side
* persist user settings
* wrap operations correctly
* add trigger mode to add op
* remove misplaced comment
* add sent notification
* remove unused tab:
2025-09-24 14:19:11 -07:00
Waleed
8eaa83fe21
fix(billing): reset usage on transition from free -> paid plan ( #1397 )
...
* fix(billing): reset usage on transition from free -> paid plan
* fixes: pro->team upgrade logic, single org server side check on invite routes
* ui improvements
* cleanup team-members code
* minor renaming
* progress
* fix pro->team upgrade to prevent double billing
* add subscription delete case handler
---------
Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai >
2025-09-22 13:58:29 -07:00
Waleed
6fada45cd8
improvement(readme): update readme.md ( #1412 )
2025-09-22 11:12:25 -07:00
Vikhyath Mondreti
16f5819941
fix(missing-user-stats): missing user stats rows covered via migration' ( #1409 )
2025-09-22 10:50:04 -07:00
Waleed
6747a497fc
fix(migrations): upgrade drizzle-kit in migrations container ( #1374 )
...
* fix(migrations): upgrade drizzle-kit in migrations container
* fix comments
* rm unused file
2025-09-18 11:04:06 -07:00
Vikhyath Mondreti
9de7a00373
improvement(code-structure): move db into separate package ( #1364 )
...
* improvement(code-structure): move db into separate package
* make db separate package
* remake bun lock
* update imports to not maintain two separate ones
* fix CI for tests by adding dummy url
* vercel build fix attempt
* update bun lock
* regenerate bun lock
* fix mocks
* remove db commands from apps/sim package json
2025-09-17 15:41:13 -07:00
Waleed Latif
ae43381d84
feat(domain): drop the 'studio' ( #818 )
...
* feat(domain): drop the
* change all references for Sim Studio to Sim
* change back license and notice
* lint
---------
Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local >
2025-07-29 12:51:43 -07:00
Aditya Tripathi
e93a5ce646
fix(cli): package type for esm imports, missing realtime ( #574 )
...
* fix: package type for esm imports, missing realtime calls and use of migrate
* chore: bump cli
2025-06-28 08:36:01 -07:00
Aditya Tripathi
00334e501f
feat(ci): socket realtime image for hosting ( #565 )
...
* feat: socket server for self/local deployment
* ci: memory limit and redundant dependency install
* chore: update readme, devcontainer, cli package
* chore: add new dev scripts and update README for full development setup
2025-06-27 09:03:29 -07:00
Waleed Latif
76df2b9cd9
fix(sockets): added throttling, refactor entire socket server, added tests ( #534 )
...
* refactor(kb): use chonkie locally (#475 )
* feat(parsers): text and markdown parsers (#473 )
* feat: text and markdown parsers
* fix: don't readfile on buffer, convert buffer to string instead
* fix(knowledge-wh): fixed authentication error on webhook trigger
fix(knowledge-wh): fixed authentication error on webhook trigger
* feat(tools): add huggingface tools/blcok (#472 )
* add hugging face tool
* docs: add Hugging Face tool documentation
* fix: format and lint Hugging Face integration files
* docs: add manual intro section to Hugging Face documentation
* feat: replace Record<string, any> with proper HuggingFaceRequestBody interface
* accidental local files added
* restore some docs
* make layout full for model field
* change huggingface logo
* add manual content
* fix lint
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
* fix(knowledge-ux): fixed ux for knowledge base (#478 )
fix(knowledge-ux): fixed ux for knowledge base (#478 )
* fix(billing): bump better-auth version & fix existing subscription issue when adding seats (#484 )
* bump better-auth version & fix existing subscription issue Bwhen adding seats
* ack PR comments
* fix(env): added NEXT_PUBLIC_APP_URL to .env.example (#485 )
* feat(subworkflows): workflows as a block within workflows (#480 )
* feat(subworkflows) workflows in workflows
* revert sync changes
* working output vars
* fix greptile comments
* add cycle detection
* add tests
* working tests
* works
* fix formatting
* fix input var handling
* add images
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
* fix(kb): fixed kb race condition resulting in no chunks found (#487 )
* fix: added all blocks activeExecutionPath (#486 )
* refactor(chunker): replace chonkie with custom TextChunker (#479 )
* refactor(chunker): replace chonkie with custom TextChunker implementation and update document processing logic
* chore: cleanup unimplemented types
* fix: KB tests updated
* fix(tab-sync): sync between tabs on change (#489 )
* fix(tab-sync): sync between tabs on change
* refactor: optimize JSON.stringify operations that are redundant
* fix(file-upload): upload presigned url to kb for file upload instead of the whole file, circumvents 4.5MB serverless func limit (#491 )
* feat(folders): folders to manage workflows (#490 )
* feat(subworkflows) workflows in workflows
* revert sync changes
* working output vars
* fix greptile comments
* add cycle detection
* add tests
* working tests
* works
* fix formatting
* fix input var handling
* fix(tab-sync): sync between tabs on change
* feat(folders): folders to organize workflows
* address comments
* change schema types
* fix lint error
* fix typing error
* fix race cond
* delete unused files
* improved UI
* updated naming conventions
* revert unrelated changes to db schema
* fixed collapsed sidebar subfolders
* add logs filters for folders
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
Co-authored-by: Waleed Latif <walif6@gmail.com >
* revert tab sync
* improvement(folders): added multi-select for moving folders (#493 )
* added multi-select for folders
* allow drag into root
* remove extraneous comments
* instantly create worfklow on plus
* styling improvements, fixed flicker
* small improvement to dragover container
* ack PR comments
* fix(deployed-chat): made the chat mobile friendly (#494 )
* improvement(ui/ux): chat deploy (#496 )
* improvement(ui/ux): chat deploy experience
* improvement(ui/ux): chat fontweight
* feat(gmail): added option to access raw gmail from gmail polling service (#495 )
* added option to grab raw gmail from gmail polling service
* safe json parse for function block execution to prevent vars in raw email from being resolved as sim studio vars
* added tests
* remove extraneous comments
* fix(ui): fix the UI for folder deletion, huggingface icon, workflow block icon, standardized alert dialog (#498 )
* fixed folder delete UI
* fixed UI for workflow block, huggingface, & added alert dialog for deleting folders
* consistently style all alert dialogs
* fix(reset-data): remove reset all data button from settings modal along with logic (#499 )
* fix(airtable): fixed airtable oauth token refresh, added tests (#502 )
* fixed airtable token refresh, added tests
* added helpers for refreshOAuthToken function
* feat(registration): disable registration + handle env booleans (#501 )
* feat: disable registration + handle env booleans
* chore: removing pre-process because we need to use util
* chore: format
* feat(providers): added azure openai (#503 )
* added azure openai
* fix request params being passed through agent block for azure
* remove o1 from azure-openai models list
* fix: add vscode settings to gitignore
* feat(file-upload): generalized storage to support azure blob, enhanced error logging in kb, added xlsx parser (#506 )
* added blob storage option for azure, refactored storage client to be provider agnostic, tested kb & file upload and s3 is undisrupted, still have to test blob
* updated CORS policy for blob, added azure blob-specific headers
* remove extraneous comments
* add file size limit and timeout
* added some extra error handling in kb add documents
* grouped envvars
* ack PR comments
* added sheetjs and xlsx parser
* fix(folders): modified folder deletion to delete subfolders & workflows in it instead of moving to root (#508 )
* modified folder deletion to delete subfolders & workflows in it instead of moving to root
* added additional testing utils
* ack PR comments
* feat: api response block and implementation
* improvement(local-storage): remove use of local storage except for oauth and last active workspace id (#497 )
* remove local storage usage
* remove migration for last active workspace id
* Update apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/file-selector/components/jira-issue-selector.tsx
Add fallback for required scopes
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* add url builder util
* fi
* fix lint
* lint
* modify pre commit hook
* fix oauth
* get last active workspace working again
* new workspace logic works
* fetch locks
* works now
* remove empty useEffect
* fix loading issue
* skip empty workflow syncs
* use isWorkspace in transition flag
* add logging
* add data initialized flag
* fix lint
* fix: build error by create a server-side utils
* remove migration snapshots
* reverse search for workspace based on workflow id
* fix lint
* improvement: loading check and animation
* remove unused utils
* remove console logs
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@vikhyaths-air.lan >
* feat(multi-select): simplified chat to always return readable stream, can select multiple outputs and get response streamed back in chat panel & deployed chat (#507 )
* improvement: all workflow executions return ReadableStream & use sse to support multiple streamed outputs in chats
* fixed build
* remove extraneous comments
* general improvemetns
* ack PR comments
* fixed built
* improvement(workflow-state): split workflow state into separate tables (#511 )
* new tables to track workflow state
* fix lint
* refactor into separate tables
* fix typing
* fix lint
* add tests
* fix lint
* add correct foreign key constraint
* add self ref
* remove unused checks
* fix types
* fix type
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
* feat(models): added new openai models, updated model pricing, added new groq model (#513 )
* fix(autocomplete): fixed extra closing tag on tag dropdown autocomplete (#514 )
* chore: enable input format again
* fix: process the input made on api calls with proper extraction
* feat: add json-object for ai generation for response block and others
* chore: add documentation for response block
* chore: rollback temp fix and uncomment original input handler
* chore: add missing mock for response handler
* chore: add missing mock
* chore: greptile recommendations
* added cost tracking for router & evaluator blocks, consolidated model information into a single file, hosted keys for evaluator & router, parallelized unit tests (#516 )
* fix(deployState): deploy not persisting bug (#518 )
* fix(undeploy-bug): fix deployment persistence failing bug
* fix lint
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
* fix decimal entry issues
* remove unused files
* fix(db): decimal position entry issues (#520 )
* fix decimal entry issues
* remove unused files
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
* fix lint
* fix test
* improvement(kb): added configurability for chunks, query across multiple knowledge bases (#512 )
* refactor: consolidate create modal file
* fix: identify dead processes
* fix: mark failed in DB after processing timeout
* improvement: added overlap chunks and fixed modal UI
* feat: multiselect logic
* fix: biome changes for css ordering warn instead of error
* improvement: create chunk ui
* fix: removed unused schema columns
* fix: removed references to deleted columns
* improvement: sped up vector search time
* feat: multi-kb search
* add bulk endpoint to disable/delete multiple chunks
* add bulk endpoint to disable/delete multiple chunks
* fix: removed unused schema columns
* fix: removed references to deleted columns
* made endpoints for knowledge more RESTful, added tests
* added batch operations for delete/enable/disable docs, alr have this for chunks
* added migrations
* added migrations
---------
Co-authored-by: Waleed Latif <walif6@gmail.com >
* fix(models): remove temp from models that don't support it
* feat(sdk): added ts and python SDKs + docs (#524 )
* added ts & python sdk, renamed cli from simstudio to cli
* added docs
* ack PR comments
* improvements
* fixed issue where it goes to random workspace when you click reload
fixed lint issue
* feat: better response builder + doc update
* fix(auth): added preview URLs to list of trusted origins (#525 )
* trusted origins
* lint error
* removed localhost
* ran lint
---------
Co-authored-by: Waleed Latif <walif6@gmail.com >
* fix(sdk): remove dev script from SDK
* PR: changes for migration
* add changes on top of db migration changes
* fix: allow removing single input field
* improvement(permissions): workspace permissions improvements, added provider and reduced API calls by 85% (#530 )
* improved permissions UI & access patterns, show outstanding invites
* added logger
* added provider for workspace permissions, 85% reduction in API calls to get user permissions and improved performance for invitations
* ack PR comments
* cleanup
* fix disabled tooltips
* improvement(tests): parallelized tests and build fixes (#531 )
* added provider for workspace permissions, 85% reduction in API calls to get user permissions and improved performance for invitations
* parallelized more tests, fixed test warnings
* removed waitlist verification route, use more utils in tests
* fixed build
* ack PR comments
* fix
* fix(kb): reduced params in kb block, added advanced mode to starter block, updated docs
* feat(realtime): sockets + normalized tables + deprecate sync (#523 )
* feat: implement real-time collaborative workflow editing with Socket.IO
- Add Socket.IO server with room-based architecture for workflow collaboration
- Implement socket context for client-side real-time communication
- Add collaborative workflow hook for synchronized state management
- Update CSP to allow socket connections to localhost:3002
- Add fallback authentication for testing collaborative features
- Enable real-time broadcasting of workflow operations between tabs
- Support multi-user editing of blocks, edges, and workflow state
Key components:
- socket-server/: Complete Socket.IO server with authentication and room management
- contexts/socket-context.tsx: Client-side socket connection and state management
- hooks/use-collaborative-workflow.ts: Hook for collaborative workflow operations
- Workflow store integration for real-time state synchronization
Status: Basic collaborative features working, authentication bypass enabled for testing
* feat: complete collaborative subblock editing implementation
✅ All collaborative features now working perfectly:
- Real-time block movement and positioning
- Real-time subblock value editing (text fields, inputs)
- Real-time edge operations and parent updates
- Multi-user workflow rooms with proper broadcasting
- Socket.IO server with room-based architecture
- Permission bypass system for testing
🔧 Technical improvements:
- Modified useSubBlockValue hook to use collaborative event system
- All subblock setValue calls now dispatch 'update-subblock-value' events
- Collaborative workflow hook handles all real-time operations
- Socket server processes and persists all operations to database
- Clean separation between local and collaborative state management
🧪 Tested and verified:
- Multiple browser tabs with different fallback users
- Block dragging and positioning updates in real-time
- Subblock text editing reflects immediately across tabs
- Workflow room management and user presence
- Database persistence of all collaborative operations
Status: Full collaborative workflow editing working with fallback authentication
* feat: implement proper authentication for collaborative Socket.IO server
✅ **Authentication System Complete**:
- Removed all fallback authentication code and bypasses
- Socket server now requires valid Better Auth session cookies
- Proper session validation using auth.api.getSession()
- Authentication errors properly handled and logged
- User info extracted from session: userId, userName, email, organizationId
🔧 **Technical Implementation**:
- Updated CSP to allow WebSocket connections (ws://localhost:3002)
- Socket authentication middleware validates session tokens
- Proper error handling for missing/invalid sessions
- Permission system enforces workflow access controls
- Clean separation between authenticated and unauthenticated states
🧪 **Testing Status**:
- Socket server properly rejects unauthenticated connections
- Authentication errors logged with clear messages
- CSP updated to allow both HTTP and WebSocket protocols
- Ready for testing with authenticated users
Status: Production-ready collaborative authentication system
* feat: complete authentication integration for collaborative Socket.IO system
🎉 **PRODUCTION-READY COLLABORATIVE SYSTEM**
✅ **Authentication Integration Complete**:
- Fixed Socket.IO client to send credentials (withCredentials: true)
- Updated server CORS to accept credentials with specific origin
- Removed all fallback authentication bypasses
- Proper Better Auth session validation working
🔧 **Technical Fixes**:
- Socket client: Enable withCredentials for cookie transmission
- Socket server: Accept credentials with origin 'http://localhost:3000 '
- Better Auth cookie utility integration for session parsing
- Comprehensive authentication middleware with proper error handling
🧪 **Verified Working Features**:
- ✅ Real user authentication (Vikhyath Mondreti authenticated)
- ✅ Multi-user workflow rooms (2+ users in same workflow)
- ✅ Permission system enforcing workflow access controls
- ✅ Real-time subblock editing across browser tabs
- ✅ Block movement and positioning updates
- ✅ Automatic room cleanup and management
- ✅ Database persistence of all collaborative operations
🚀 **Status**: Complete enterprise-grade collaborative workflow editing system
- No more fallback users - production authentication
- Multi-tab collaboration working perfectly
- Secure access control with Better Auth integration
- Real-time updates for all workflow operations
* remove sync system and move to server side
* fix lint
* delete unused file
* added socketio dep
* fix subblock persistence bug
* working deletion of workflows
* fix lint
* added railway
* add debug logging for railway deployment
* improve typing
* fix lint
* working subflow persistence
* fix lint
* working cascade deletion
* fix lint
* working subflow inside subflow
* works
* fix lint
* prevent subflow in subflow
* fix lint
* add additional logs, add localhost as allowedOrigin
* add additional logs, add localhost as allowedOrigin
* fix type error
* remove unused code
* fix lint
* fix tests
* fix lint
* fix build error
* workign folder updates
* fix typing issue
* fix lint
* fix typing issues
* lib/
* fix tests
* added old presence component back, updated to use one-time-token better auth plugin for socket server auth, tested
* fix errors
* fix bugs
* add migration scripts to run
* fix lint
* fix deploy tests
* fix lint
* fix minor issues
* fix lint
* fix migration script
* allow comma separateds id file input to migration script
* fix lint
* fixed
* fix lint
* fix fallback case
* fix type errors
* address greptile comments
* fix lint
* fix script to generate new block ids
* fix lint
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@vikhyaths-air.lan >
Co-authored-by: Waleed Latif <walif6@gmail.com >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
* fix(sockets): updated CSP
* remove unecessary logs
* fix lint
* added throttling, refactor entire socket server, added tests
* improvements
* remove self monitoring func, add block name event
* working isWide, isAdvanced toggles with sockets
* fix lint
* fix duplicate key issue for user avatar
* fix lint
* fix user presence
* working parallel badges / loop badges updates
* working connection output persistence
* fix lint
* fix build errors
* fix lint
* logs removed
* fix cascade var name update bug
* works
* fix lint
* fix parallel blocks
* fix placeholder
* fix test
* fixed tests
---------
Co-authored-by: Aditya Tripathi <aditya@climactic.co >
Co-authored-by: Adam Gough <77861281+aadamgough@users.noreply.github.com >
Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local >
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu >
Co-authored-by: Emir Karabeg <78010029+emir-karabeg@users.noreply.github.com >
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@vikhyaths-air.lan >
Co-authored-by: Ajit Kadaveru <ajit.kadaveru@berkeley.edu >
2025-06-24 17:44:30 -07:00
Waleed Latif
dcf6e10b5b
fix(docker): added pgvector image to docker builds, modified push to migrate to ameliorate vector data type issue ( #452 )
...
* added pgvector image to docker builds, modified push to migrate to ameliorate vector data type issue
* added zod and t3-ss/env-nextjs to minimal set of dependencies for db image
* added healthcheck to docker services
2025-06-02 12:56:15 -07:00
Waleed Latif
8c268e23dd
chore(biome): removed prettier, added biome ( #407 )
...
* chore: replace prettier with biome and add linting
* chore: update devcontainer settings to use biome for linting and remove eslint, prettier
* chore: update docker-compose to use Postgres 17-alpine and standardize quotes
* chore: fixed more BUT disabled most rules due to limit
* added additional rules, fixed linting & ts errors
* added additional rules
* rebased & linted
* fixed oauth
* updated biome & minor modifications
---------
Co-authored-by: Aditya Tripathi <aditya@climactic.co >
2025-05-24 03:11:38 -07:00
Waleed Latif
47090713ef
Revert "feat(package): add tsconfig pkg to share across packages in monorepo …" ( #381 )
...
This reverts commit f5cbcfb514 .
2025-05-19 17:03:54 -07:00
Waleed Latif
f5cbcfb514
feat(package): add tsconfig pkg to share across packages in monorepo ( #380 )
...
* add tsconfig pkg to share across packages in monorepo
* fixed docs build
* acknowledged PR comments
2025-05-19 16:58:51 -07:00
Waleed Latif
fd82b99c5c
feat(waitlist): remove waitlist, update login/signup/verify styling to match landing, remove OTP in dev/docker ( #377 )
...
* removed waitlist on landing
* remove OTP in dev or docker, remove invite members from sidebar in dev/docker
* modified signup, login, verify, and reset password to match landing
* add README for npm package
* acknowledged PR comments
* restore cmd+enter functionality
2025-05-18 23:04:22 -07:00
Waleed Latif
f2894e645e
feat(package): added npm package to run sim studio ( #376 )
...
* added npm pkg for sim studio
* added cache scope for new pkg
* added optional port config, default to 3000
* remove accidental package lock
* updated package version
* added keywords
* acknowledged PR comments
2025-05-18 21:16:13 -07:00
Waleed Latif
a92ee8bf46
feat(turbo): restructured repo to be a standard turborepo monorepo ( #341 )
...
* added turborepo
* finished turbo migration
* updated gitignore
* use dotenv & run format
* fixed error in docs
* remove standalone deployment in prod
* fix ts error, remove ignore ts errors during build
* added formatter to the end of the docs generator
2025-05-09 21:45:49 -07:00
Waleed Latif
54e1439224
feat(docs): added script to auto-generate docs for integrations/tools ( #293 )
...
* added scaffolding for auto-generating docs for integrations based on block definition, get rendering error for mdx pages
* page renders, have to add more useful information
* standardized tool naming convention, added script to autogenerate docs for integrations, added docs for each tool
* re-generated docs, updated CONTRIBUTING.md to reflect new format
* added a dedicated tools page
* added additional information for tools, added manual section logic to docs producer
* added a link back to sim studio, fixed z level issue on mobile, added better intro
* updated script to more accurately reflect the params for each tool, as well as the overall blocks' output
2025-04-22 20:04:21 -07:00
Waleed Latif
7049b5ac5b
feat(freestyle): refactored handler in executor, migrated from webcontainer to freestyle for code execution, fixed condition block issues ( #222 )
...
* migrated from webcontainers to freestyle for sandboxed code execution, updated all references
* fixed condition block edges disappearing
* fix issue with condition block out-of-order resolving inputs
* refactored handlers in executor to be separate files, added unit tests
* remove old executor handlers file
2025-04-04 01:16:50 -07:00
Waleed Latif
f904958114
improvement(tools): modified return type of mistral parser
2025-04-02 14:18:38 -07:00
Emir Karabeg
52ccaf3760
feat(loops) ( #202 )
...
* feat(loops): finished for loop; added for each and while ui
* fix(packages): updated loop package
* feat(loops): added forEach loop and special variables for loop; fixed execution console
* improvement: deleted while loop
* feat(loops): updated tests
2025-03-30 01:35:11 -07:00
Waleed Latif
4fbe825e2e
fix(security): resolved nextjs middleware vulnerability
2025-03-24 16:26:01 -07:00
Waleed Latif
4714599339
docs: upgrade from MIT to Apache-2.0 license and update all relevant docs
2025-03-22 14:35:53 -07:00
Waleed Latif
eb5d01956e
feat/codegen: added initial outline for sdk, added api keys table & view ( #126 )
...
* feat[sdk]: added scaffolding for sdk pkg
* feat[sdk]: simplified usage of tools for agent block
* fix[sdk]: added api key directly into AgentOptions
* fix[sdk]: simplified the conditional block by removing the code input since we don't need it
* feat[sdk]: added account-level api keys & db table to manage them
2025-03-18 17:49:50 -07:00
Waleed Latif
c3f666383f
chore: cleanup root of repo by removing unused cli pacakge
2025-03-14 18:13:04 -07:00
Waleed Latif
384da37064
fix(npm): download issues and improve CLI messaging
2025-03-06 12:41:55 -08:00
Waleed Latif
400ee1452d
fix(cli): improve root path redirect and bump version to 0.1.3
2025-03-06 12:00:34 -08:00
Waleed Latif
fb8a780224
chore: bump version to 0.1.2 with fixed HTTP redirect handling for downloads
2025-03-06 02:16:31 -08:00
Waleed Latif
88f7490a30
fix(npm): broken npx simstudio download by handling HTTP redirects
2025-03-06 02:14:09 -08:00