Vikhyath Mondreti
08b908fdce
fix tests
2026-02-14 00:00:03 -08:00
Vikhyath Mondreti
7092c88b9b
Merge remote-tracking branch 'origin/staging' into feat/mult-credentials-rv
2026-02-13 15:05:12 -08:00
Waleed
ebc2ffa1c5
fix(agent): always fetch latest custom tool from DB when customToolId is present ( #3208 )
...
* fix(agent): always fetch latest custom tool from DB when customToolId is present
* test(agent): use generic test data for customToolId resolution tests
* fix(agent): mock buildAuthHeaders in tests for CI compatibility
* remove inline mocks in favor of sim/testing ones
2026-02-12 15:31:11 -08:00
Vikhyath Mondreti
aefa281677
improve collaborative UX
2026-02-12 15:18:54 -08:00
Vikhyath Mondreti
253161afba
feat(mult-credentials): progress
2026-02-11 15:18:31 -08:00
Vikhyath Mondreti
be3cdcf981
Merge pull request #3179 from simstudioai/improvement/file-download-timeouts
...
improvement(timeouts): files/base64 should use max timeouts + auth centralization
2026-02-10 15:57:06 -08:00
Vikhyath Mondreti
193b95cfec
fix(auth): swap out hybrid auth in relevant callsites ( #3160 )
...
* fix(logs): execution files should always use our internal route
* correct degree of access control
* fix tests
* fix tag defs flag
* fix type check
* fix mcp tools
* make webhooks consistent
* fix ollama and vllm visibility
* remove dup test
2026-02-06 22:07:55 -08:00
Waleed
6b412c578d
fix(security): add authentication to remaining tool API routes ( #3028 )
...
* fix(security): add authentication to tool API routes
* fix(drive): use checkSessionOrInternalAuth to allow browser access
* fix(selectors): use checkSessionOrInternalAuth for UI-accessible routes
2026-01-27 12:37:03 -08:00
Vikhyath Mondreti
7cfdf46724
fix(token-refresh): microsoft, notion, x, linear ( #2933 )
...
* fix(microsoft): proactive refresh needed
* fix(x): missing token refresh flag
* notion and linear missing flag too
* address bugbot comment
2026-01-21 18:30:53 -08:00
Waleed
a35f6eca03
improvement(tools): use react query to fetch child workflow schema, avoid refetch and duplicated utils, consolidated utils and testing mocks ( #2839 )
...
* improvement(tools): use react query to fetch child workflow schema, avoid refetch and duplicated utils
* consolidated utils & testing mocks
2026-01-15 13:25:22 -08:00
Vikhyath Mondreti
020037728d
feat(polling-groups): can invite multiple people to have their gmail/outlook inboxes connected to a workflow ( #2695 )
...
* progress on cred sets
* fix credential set system
* return data to render credential set in block preview
* progress
* invite flow
* simplify code
* fix ui
* fix tests
* fix types
* fix
* fix icon for outlook
* fix cred set name not showing up for owner
* fix rendering of credential set name
* fix outlook well known folder id resolution
* fix perms for creating cred set
* add to docs and simplify ui
* consolidate webhook code better
* fix tests
* fix credential collab logic issue
* fix ui
* fix lint
2026-01-07 17:49:40 -08:00
Adam Gough
27ec4120bc
fix(tools): fixed tool outputs ( #2534 )
...
* fixed typeform
* fixed supabase tools
* salesforce fix
* removed comments
* pinecone fix
* fixed intercom
* regex constant
* removed fallback logic
2025-12-26 12:46:39 -08:00
Waleed
d707d18ee6
fix(build): update dockerfile to contain testing package deps ( #2591 )
...
* fix(build): update dockerfile to contain testing package deps
* added logger package
2025-12-26 12:20:38 -08:00
Waleed
b7f6bab282
feat(tests): added testing package, overhauled tests ( #2586 )
...
* feat(tests): added testing package, overhauled tests
* fix build
2025-12-25 16:06:47 -08:00
Waleed
6c1e4ff7d6
improvement(oauth): remove unused scope hints ( #2551 )
...
* improvement(oauth): remove unused scope hints
* improvement(oauth): remove scopeHints and extraneous oauth provider data
* cleanup
2025-12-23 11:26:49 -08:00
Waleed
c23130a26e
Revert "fix(salesforce): updated to more flexible oauth that allows production, developer, and custom domain salesforce orgs ( #2441 ) ( #2444 )" ( #2453 )
...
This reverts commit 9da19e84b7 .
2025-12-18 12:46:24 -08:00
Waleed
9da19e84b7
fix(salesforce): updated to more flexible oauth that allows production, developer, and custom domain salesforce orgs ( #2441 ) ( #2444 )
...
* fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records (#2441 )
* fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records
* ack PR comments
* ack PR comments
* cleanup salesforce refresh logic
* ack more PR comments
2025-12-18 11:39:28 -08:00
Priyanshu Solanki
491bd783b5
fix(servicenow): update servicenow block to use basic auth instead of oauth ( #2435 )
...
* fix adding client ID and secret fields to supprot ouath
* revert servicenow to use basic auth instead of oauth
* fix failing tests
---------
Co-authored-by: priyanshu.solanki <priyanshu.solanki@saviynt.com >
Co-authored-by: waleed <walif6@gmail.com >
2025-12-17 20:41:46 -08:00
Emir Karabeg
b7228d57f7
feat(service-now): added service now block ( #2404 )
...
* feat(service-now): added service now block
* fix: bun lock
* improvement: fixed @trigger.dev/sdk imports and removal of sentry blocks
* improvement: fixed @trigger.dev/sdk import
* improvement: fixed @trigger.dev/sdk import
* fix(servicenow): save accessTokenExpiresAt on initial OAuth account creation
* docs(servicenow): add ServiceNow tool documentation and icon mapping
* fixing bun lint issues
* fixing username/password fields
* fixing test file for refreshaccesstoken to support instance uri
* removing basic auth and fixing undo-redo/store.ts
* removed import set api code, changed CRUD operations to CRUD_record and added wand configuration to help users to generate JSON Arrays
---------
Co-authored-by: priyanshu.solanki <priyanshu.solanki@saviynt.com >
2025-12-16 21:16:09 -08:00
Vikhyath Mondreti
f421f27d3f
fix(creds): glitch allowing multiple credentials in an integration ( #2282 )
2025-12-09 21:07:14 -08:00
Waleed
d09fd6cf92
fix(import): fixed trigger save on export/import flow ( #2239 )
...
* fix(import): fixed trigger save on export/import flow
* optimized test runners
* ack PR comments
2025-12-07 23:00:28 -08:00
Waleed
41c068c023
improvement(lib): refactored lib/ to be more aligned with queries and api directory ( #2160 )
...
* fix(lib): consolidate into core dir in lib/
* refactored lib/
2025-12-02 14:17:41 -08:00
Vikhyath Mondreti
620ce97056
improvement(selectors): consolidate all integration selectors to use the combobox ( #2020 )
...
* improvement(selectors): consolidate all integration selectors to use the combobox
* improved credential selector and file-upload styling to use emcn combobox
* update mcp subblocks to use emcn components, delete unused mcp server modal
* fix filterOptions change
* fix project selector
* attempted jira fix
* fix gdrive inf calls
* rewrite credential selector
* fix docs
* fix onedrive folder
* fix
* fix
* fix excel cred fetch
* fix excel part 2
---------
Co-authored-by: waleed <walif6@gmail.com >
2025-11-17 21:06:52 -08:00
Adam Gough
2f9224c166
feat(crms): added hubspot, asana, trello, salesforce, pipedrive tools and triggers ( #1871 )
...
* trello integration added
* added asana integration
* added pipedrive (need to finish testing)
* finished pipedrive
* finished hubspot, need to test more
* make oauth required modal scrollable
* edited layout and fixed merge conflicts
* salesforce working, need to add more operations
* added all salesforce tools
* hubspot triggers working, plus other fixes
* fixed payload and added hubspot triggers
* fixed test
* build fix
* rebase
* updated docs
* oauth required modal
* fixed icons
* fixed hubspot scopes parsing
* reduce scopes of salesforce oauth
* cleaned up scopes
* lint
* aligned oauth.ts, auth.ts, and block definitions for all 29 providers
* updated icons
* fixed logos and updated docs
* revert changes to unused file
---------
Co-authored-by: Adam Gough <adamgough@Adams-MacBook-Pro.local >
Co-authored-by: waleed <waleed>
Co-authored-by: aadamgough <adam@sim.ai >
2025-11-10 17:46:42 -08:00
Waleed
b03f9702d2
feat(permissions): extend hook to detect missing scopes to return those scopes for upgrade, update credential selector subblock ( #1869 )
2025-11-10 11:40:15 -08:00
Siddharth Ganesan
f62568efc7
fix(variables, webhook): fix variable tag dropdown for escaped < and allow empty webhook payload ( #1851 )
...
* Fix << tags
* Allow empty webhook body
* Variable highlighting in loop conditions
2025-11-07 18:03:36 -08:00
Siddharth Ganesan
6cdee5351c
feat(scopes): add scopes warning hook ( #1842 )
...
* fix(billing): should allow restoring subscription (#1728 )
* fix(already-cancelled-sub): UI should allow restoring subscription
* restore functionality fixed
* fix
* Server side logic to check auth scopes
* Fix scopes code
* Remove frontend changes
* Fix tests
* Lint
* Remove log for lint
* Fix scopes check
* Fix conflict
---------
Co-authored-by: Waleed <walif6@gmail.com >
Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com >
2025-11-07 16:31:25 -08:00
Waleed
bb7016a99f
improvement(routes): type all untyped routes ( #1848 )
...
* improvement(routes): type all untyped routes
* fix routes, remove unused workspace members route
* fix obfuscation of errors behind zod errors
* remove extraneous comments
2025-11-07 15:24:30 -08:00
Waleed
4cceb22f21
fix(slack): update slack config to support refresh token rotation ( #1642 )
2025-10-15 11:54:33 -07:00
Waleed
8f06aec68b
fix(vulns): fix various vulnerabilities and enhanced code security ( #1611 )
...
* fix(vulns): fix SSRF vulnerabilities
* cleanup
* cleanup
* regen docs
* remove unused deps
* fix failing tests
* cleanup
* update deps
* regen bun lock
2025-10-11 22:14:31 -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
3d4b9f0665
feat(mcp): added support for mcp servers ( #1296 )
...
* update infra and remove railway
* feat(mcp): add mcp support
* consolidate mcp utils
* UI improvements, more MCP stuff
* cleanup placeholders
* reran migrations
* general improvements
* fix server side mcp exec
* more improvements, fixed search in environment settings tab
* persist subblock values for mcp block
* style fixes
* udpdate all text-primary to text-muted-foreground for visibility in dark mode
* Revert "update infra and remove railway"
This reverts commit dbf2b153b8f96808e7bb7e5f86f7e8624e3c12dd.
* make MCP servers workspace-scoped
* cleanup & remove unused dep
* consolidated utils, DRY
* added tests
* better error messages, confirmed that permissions works correctly
* additional improvements
* remove extraneous comments
* reran migrations
* lint
* style changes
* fix: prevent config mutation in MCP client URL retry logic
Fixed an issue where the MCP client was mutating the shared configuration
object's URL during retry attempts. This could cause configuration corruption
if the same config object was reused elsewhere.
* resolve PR comments
* ack PR comments
2025-09-09 17:18:08 -07:00
Vikhyath Mondreti
9a5b035822
fix test
2025-08-20 13:55:54 -07:00
Vikhyath Mondreti
0c0b6bf967
fix(oauth): gdrive picker race condition, token route cleanup
2025-08-20 12:33:46 -07:00
Vikhyath Mondreti
9f02f88bf5
fix(oauth): webhook + oauthblocks in workflow ( #979 )
...
* fix(oauth): webhook + oauthblocks in workflow
* propagate workflow id
* requireWorkflowId for internal can be false
2025-08-15 13:07:46 -07:00
Vikhyath Mondreti
fd9e61f85a
improvement(credentials-security): use clear credentials sharing helper, fix google sheets block url split bug ( #968 )
...
* improvement(credentials-sharing-security): cleanup and reuse helper to determine credential access
* few more routes
* fix google sheets block
* fix test mocks
* fix calendar route
2025-08-14 14:13:18 -05:00
Vikhyath Mondreti
b159d63fbb
improvement(oauth): credentials sharing for workflows ( #939 )
...
* improvement(oauth): credential UX while sharing workflows
* fix tests
* address greptile comments
* fix linear, jira, folder selectors
* fix routes
* fix linear
* jira fix attempt
* jira fix attempt
* jira fixes
* fix
* fix
* fix jira
* fix selector disable behaviour
* minor fixes
* clear selectors correctly
* fix project selector jira
* fix gdrive
* fix labels dropdown
* fix webhook realtime collab
* fix
* fix webhooks persistence
* fix folders route
* fix lint
* test webhook intermittent error
* fix
* fix display
2025-08-13 16:51:46 -05:00
Waleed Latif
1b0d304a87
fix(dynamic): remove force-dynamic from routes that don't need it ( #888 )
2025-08-05 18:44:02 -07:00
Waleed Latif
0414aa5f6d
refactor(imports): added aliased imports everywhere ( #799 )
...
* refactor(imports): added aliased imports everywhere
* more aliased imports
* add barrel exports
* add more barrel exports
* cleanup
---------
Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local >
2025-07-26 16:10:32 -07:00
Waleed Latif
93f68a9092
refactor(logger): code cleanup for new execution logger ( #798 )
...
* refactor(logger): code hygiene with new logger
* modify remaining files
* simplify code structure
---------
Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local >
2025-07-26 15:05:33 -07:00
Adam Gough
d65bdaf546
feat(wealthbox): added wealthbox crm ( #669 )
...
* feat: wealthbox
* feat: added tools
* feat: tested and finished tools
* feat: tested and finished tools
* feat: added refresh token
* fix: added docs
* bun lint
* feat: removed files #669
* fix: greptile comments
* fix: stringified messages #669
* add visibilty to params
---------
Co-authored-by: Adam Gough <adamgough@Adams-MacBook-Pro.local >
Co-authored-by: Adam Gough <adamgough@Mac.attlocal.net >
Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai >
2025-07-14 13:07:55 -07:00
Vikhyath Mondreti
5cf7d025db
fix(oauth): fix oauth to use correct subblock value setter + remove unused local storage code ( #628 )
...
* fix(oauth): fixed oauth state not persisting in credential selector
* remove unused local storage code for oauth
* fix lint
* selector clearance issue fix
* fix typing issue
* fix lint
* remove cred id from logs
* fix lint
* works
---------
Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net >
2025-07-07 18:40:33 -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
Adam Gough
c5727ef018
feat(tools): added microsoft excel tools/block ( #441 )
...
* got the read excel tool working
* added read manual ID insertion
* write working
* tool finished
* removed old logic
* removed logic that was causing credential error
* cleaned up
* ran bun lint
* removed logger
* added back merging logic
* fix: removed comments
* fix: added greptile changes
* ran bun lint
* removed function
* added microsoft excel docs
* fix: icon format
* fix: docs
* ran lint
---------
Co-authored-by: Adam Gough <adamgough@Adams-MacBook-Pro.local >
2025-05-30 19:11:45 -07:00
Waleed Latif
6afb453fc0
improvement(oauth): refactor oauth apis to dedicated tools routes, fix docs ( #423 )
...
* migrate oauth apis to dedicated tools routes
* added tests
* fix docs
* fix confluence file selector
2025-05-26 12:00:03 -07:00
Adam Gough
79b761c022
feat(tools): created outlook tools/block ( #409 )
...
* feat: first round of tools for outlook
* added more
* outlook finished
* added bun and docs
* fix: added greptile comments
* added greptile and bun lint
* got rid of HTML
---------
Co-authored-by: Adam Gough <adamgough@Adams-MacBook-Pro.local >
2025-05-24 20:57:49 -07:00
Adam Gough
45c92067e2
feat(tools): added microsoft teams tools/block ( #405 )
...
* feat: microsoft teams block added
* updated name
* oauth working
* fixing accessToken
* saving accessToken spot
* all four tools are working
* display name better
* finished teams tool
* Remove package-lock.json from PR
* added greptile comments
* added scopes, removed ;, removed loggers
* solved credential bug
* added docs and rebased
* fixed lint checks
* more bun lint
* bun lint errors solved
---------
Co-authored-by: Adam Gough <adamgough@Adams-MacBook-Pro.local >
2025-05-24 14:02:37 -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
717e17d02a
feat(bun): upgrade to bun, reduce docker image size by 95%, upgrade docs & ci ( #371 )
...
* migrate to bun
* added envvars to drizzle
* upgrade bun devcontainer feature to a valid one
* added bun, docker not working
* updated envvars, updated to bunder and esnext modules
* fixed build, reinstated otel
* feat: optimized multi-stage docker images
* add coerce for boolean envvar
* feat: add docker-compose configuration for local LLM services and remove legacy Dockerfile and entrypoint script
* feat: add docker-compose files for local and production environments, and implement GitHub Actions for Docker image build and publish
* refactor: remove unused generateStaticParams function from various API routes and maintain dynamic rendering
* cleanup
* upgraded bun
* updated ci
* fixed build
---------
Co-authored-by: Aditya Tripathi <aditya@climactic.co >
2025-05-18 01:01:32 -07:00
Waleed Latif
3580241d93
feat(discord): added discord block/tools ( #347 )
...
* feat(tools): added discord oauth, block, and tools
* added docs
* remove extraneous comments/logs
* added tooltips for disabled subblocks, acknowledged PR comments
* added tools and blocks for new repo structure
* added docs
* added more type safety, fixed some styling
* updated docs
* fixed style of dropdown in tool-input
* acknowledged PR comments
2025-05-11 18:32:04 -07:00