Commit graph

100 commits

Author SHA1 Message Date
Ramnique Singh
476654af80
Feature/copilot trigger creation (#274)
* feat: Add Copilot trigger creation support

- Add support for One-Time and Recurring triggers in Copilot
- Extend CopilotAssistantMessageActionPart schema with trigger config types
- Update Copilot instructions with trigger creation examples and guidelines
- Implement trigger action handling in messages.tsx component
- Add trigger icons ( for one-time, 🔄 for recurring) in action cards
- Update workflow reducer to handle trigger creation via existing APIs
- Fix action parser to recognize trigger config types in comment format
- Add async trigger processing using createScheduledJobRule and createRecurringJobRule APIs

Users can now ask Copilot to create triggers with natural language requests like:
'Create a daily report trigger at 9 AM' or 'Set up a one-time reminder for next Friday'

* feat: Enhance Copilot message handling and trigger actions

- Pass projectId to Messages and AssistantMessage components for better context
- Refactor applyAction to handle one-time and recurring triggers with improved error handling
- Update handleApplyAll and handleSingleApply to support async action processing
- Remove deprecated pending trigger logic from workflow editor

This update improves the Copilot's ability to manage triggers and enhances the overall message processing flow.

* refactor: route trigger actions via copilot helper

Keep workflow reducer synchronous by removing trigger jobs from the switch and moving job rule API calls into a dedicated helper in messages.tsx. Cache dynamic imports and guard types so Copilot Apply/Apply All handle trigger creation without touching reducer state.

* feat: Add current time to the copilot context

* added conext of triggers to the copilot along with being able to edit and delete triggers

* bug fix for deleting composio triggers

* Add the edit function that allows editing triggers and lets copilot edit triggers too without losing previous jobs
feat: Add update functionality for recurring and scheduled job rules

- Implemented update actions for recurring job rules and scheduled job rules, allowing users to modify existing rules with new input and scheduling configurations.
- Enhanced the UI components to support editing of job rules, including forms for both creating and updating rules.
- Updated the repository interfaces and MongoDB implementations to handle the new update operations for job rules.

This update improves the flexibility of managing job rules within the application.

* Add trigger context to copilot
feat: Enhance trigger management in Copilot

- Added functionality to search for relevant external triggers using the new `search_relevant_triggers` tool, allowing users to discover available triggers based on toolkit slugs and optional query keywords.
- Updated the Copilot context to include detailed descriptions of various external trigger toolkits, enhancing user guidance for trigger creation.
- Improved the overall trigger handling process, ensuring that users can effectively integrate external triggers into their workflows.

This update significantly enhances the Copilot's capabilities in managing and utilizing external triggers.

* Let copilot add external triggers
feat: Enhance external trigger handling in Copilot

- Added support for flexible schemas in external triggers, allowing configuration changes without stripping any data.
- Introduced a new `onRequestTriggerSetup` callback in the Action component to facilitate trigger setup requests.
- Implemented a modal for trigger configuration, improving user experience when setting up external triggers.
- Updated the ComposioTriggerTypesPanel to auto-select trigger types based on initial configuration.

This update significantly improves the management and setup of external triggers within the Copilot interface.

* External trigger cant be edited so we delete and recreate for this
feat: Improve external trigger handling in Copilot

- Added validation for editing external triggers, ensuring users are informed that existing triggers must be deleted and recreated for changes.
- Updated documentation to clarify the limitations of external trigger modifications.

This update enhances user experience by providing clear guidance on managing external triggers within the Copilot interface.

* preventing message.tsx from ballooning up in size
feat: Refactor Copilot message handling and trigger actions

- Removed deprecated logic for loading scheduled and recurring job actions, streamlining the trigger action process.
- Integrated `useCopilotTriggerActions` hook to manage trigger setup and actions more efficiently.
- Enhanced parsing of action parts to improve handling of triggers and their configurations.
- Updated the UI to reflect changes in action handling, ensuring a smoother user experience.

This update optimizes the Copilot's ability to manage triggers and enhances the overall message processing flow.

* refactor: Simplify trigger filtering in Copilot

- Removed unnecessary filtering logic for triggers based on user queries, streamlining the search process.
- Updated response messages to clarify the context of displayed triggers, enhancing user understanding.

This update improves the efficiency of the trigger search functionality within the Copilot interface.

* Revert "refactor: Simplify trigger filtering in Copilot"

This reverts commit b3d041677c.

* simplify the filtering logic for triggers in copilot
feat: Enhance external trigger creation and search functionality in Copilot

- Introduced a critical flow for adding external triggers, emphasizing minimal user input and UI configuration.
- Updated documentation to clarify the external trigger creation process and provided examples for better guidance.
- Simplified the trigger search logic, ensuring users receive relevant results while maintaining clarity in response messages.

This update improves the user experience by streamlining external trigger management and enhancing the search capabilities within the Copilot interface.

---------

Co-authored-by: tusharmagar <tushmag@gmail.com>
2025-10-16 14:33:56 +08:00
akhisud3195
2a1143c833 Read prebuilt templates from code directly 2025-09-16 15:53:37 +04:00
akhisud3195
af3adc797f Fix library templates db syncing and pagination issues 2025-09-16 14:32:11 +04:00
akhisud3195
bdf20ea678 Sync pre-built templates 1-1 with DB 2025-09-16 13:36:24 +04:00
akhisud3195
cdfa7daf98 Revert auth0 and middleware changes and handle missing auth0 env vars in assistant templates actions 2025-09-16 12:53:31 +04:00
Tushar
d358ad45b7
Fix/prebuilt cards model config (#262)
* Fix prebuilt cards model configuration

- Set all prebuilt card models to blank ("model": "")
- Add model fallback in createProjectFromWorkflowJson to use PROVIDER_DEFAULT_MODEL
- Enables different models for OSS vs managed deployments via environment variable

* Refactor assistant template handling and seeding logic

- Replace upfront seeding of all templates with lazy seeding on demand.
- Introduce a new function to fetch specific templates by ID, applying transformations for prebuilt templates.
- Update the ensureLibraryTemplatesSeeded function to skip updating existing templates and log seeding actions.
- Modify project creation to directly use workflow JSON without parsing for default model application.
- Update prebuilt card model configurations to ensure proper defaults are applied.
2025-09-16 12:30:27 +04:00
Tushar
cbcc1aa8a6
Fix prebuilt cards model configuration (#261)
- Set all prebuilt card models to blank ("model": "")
- Add model fallback in createProjectFromWorkflowJson to use PROVIDER_DEFAULT_MODEL
- Enables different models for OSS vs managed deployments via environment variable
2025-09-16 12:19:59 +05:30
akhisud3195
8a86b892d0 Update templates and publishing to use server-side auth + fix likes-related glitches 2025-09-16 00:35:02 +04:00
arkml
041ab25b7b
remove url from share and add auth (#260) 2025-09-15 23:44:01 +05:30
arkml
14fd7214c5
moved workflow sharing from api to server side actions (#257) 2025-09-15 19:56:01 +04:00
Akhilesh Sudhakar
be4e17b5a5
Community cards and prebuilt cards (#258)
* Add community sharing feature and merge with pre-built templates

* Add warning before publishing

* [Untested] Add delete flow for community cards

* Fix bug with sorting by likes count and update design of cards

* Fix community assistant parsing errors

* Remove all as a type filter

* Remove default assistant name for publishing to community

* Update DB calls to be standardized paginated
2025-09-15 19:53:35 +04:00
Ramnique Singh
8f40b5fb33 ddd refactor: copilot streaming 2025-08-23 12:27:58 +05:30
Ramnique Singh
531f9feea6 relocate copilot types 2025-08-23 10:58:38 +05:30
Ramnique Singh
b49e14fdf8 update billing types 2025-08-23 09:59:14 +05:30
Ramnique Singh
219d4c7901 ddd: create users repository 2025-08-23 08:15:58 +05:30
Ramnique Singh
d2e590956b enforce max jobs per hour 2025-08-20 17:08:19 +05:30
Ramnique Singh
63564810e8 store friendly name in composio trigger deploys 2025-08-19 13:35:10 +05:30
akhisud3195
eab27b1206 Show jobs view for composio triggers (external) similar to recurring jobs view 2025-08-19 13:20:21 +05:30
Ramnique Singh
53219974d3 refactor file locations 2025-08-18 07:08:26 +05:30
Ramnique Singh
5675cda52b move composio lib location 2025-08-18 06:53:54 +05:30
Ramnique Singh
580ecc7f98
ddd refactor - projects (#208) 2025-08-18 06:30:26 +05:30
Ramnique Singh
cc8e9210d7 housekeeping 2025-08-17 10:51:54 +05:30
Ramnique Singh
3755e76474 parse relevant datasource fields in copilot 2025-08-17 10:28:21 +05:30
Ramnique Singh
4b33b20e76
DDD refactor: data-sources (#205) 2025-08-17 08:06:17 +05:30
Ramnique Singh
f7a3c8579d housekeeping: renames, unused imports 2025-08-15 13:58:57 +05:30
Ramnique Singh
85adfcd139 ddd refactor: project-members 2025-08-15 13:51:07 +05:30
Ramnique Singh
0d50777b93 ddd refactor: api-keys repo 2025-08-15 12:57:19 +05:30
Ramnique Singh
ab81fa3c46 housekeeping 2025-08-15 12:53:27 +05:30
Ramnique Singh
d4f0db1f09 ddd refactor: api-keys 2025-08-15 12:48:33 +05:30
Ramnique Singh
eccfb4748f
billing + credits updates (#202) 2025-08-14 19:59:38 +05:30
Ramnique Singh
beee4306ac fix import json 2025-08-13 16:40:41 +05:30
Ramnique Singh
c030c4fa83 show created jobs under recurring rule 2025-08-13 10:36:16 +05:30
Ramnique Singh
eda3f3821f
enable scheduled jobs (#199)
- one-off scheduled jobs
- recurring jobs
2025-08-12 18:40:04 +05:30
arkml
9a980f2f9f
Project modals (#190)
* added the project create and select modals

* Added logo and link to home page

* minor changes to side bar

* added import json and blank template options

* added website like home page

* change homepage to be more like website

* fixed landing page text box

* minor size changes to the home page

* added prebuilt agents section

* Minor changes to the prebuilt agent card

* removed the project selection and new project options from side bar

* fixed prebuilt agents

* fixed import json

* my assistants has pagination

* add dark mode support to home page

* addressed review comments

* increase build agents textbox lines

* fixed PR comments

* move prebuilt assistant under build view

* minor changes to home page

* minor changes to home page

* removed my assistants from side bar

* removed sidebar items

* fixed review comments

* fixed review comments

* Add "use client" directive to project-creation-utils.ts

This file uses localStorage and calls server actions directly, requiring client-side execution.

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix import of pipeline agents

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-11 23:46:30 +05:30
Ramnique Singh
3552302f4a
add composio triggers (#192) 2025-08-08 02:27:42 +05:30
Ramnique Singh
97fad8633f dry refactor 2025-08-06 12:13:14 +05:30
Ramnique Singh
831356a155 refactor usage quota service as a policy 2025-08-05 15:54:28 +05:30
Ramnique Singh
9fba2b1bec move query limit check to DDD 2025-08-05 15:36:50 +05:30
Ramnique Singh
51a33ab2df
Add conversations and turns foundation + DDD (#188)
- Store conversations and turns for:
   - playground chat
   - api
 - New DDD code organisation with container dependency injection
 - sdk update
 - streaming api support
2025-08-05 14:40:48 +05:30
arkml
aa95b590e2
move data-source ops to a modal inside build view (#186)
* added data source modal to build view

* fixed scrape url and upload files showing up in the data modal in the build view

* autoupdate data source status

* keep focus in build view on deleting a data source

* removed the rag tab and allow multiple file uploads

* show scrapred urls and uploaded files

* show text in the text data source

* fixed status refreshes when using the detail view of data source

* fix status refresh in the data panel

* cleanup

* fixed review comments on backend changes

* moved the input text field in text data source to the new ui element

* Fix PR review: Replace router.push with data sources modal in agent config

- Add onOpenDataSourcesModal prop to AgentConfig component
- Update 'Go to Data Sources' button to open modal instead of navigating
- Change button text to 'Add Data Source' for clarity
- Use forwardRef and useImperativeHandle to expose modal control
- Remove router dependency from agent_config.tsx

Addresses reviewer comment about using modal instead of route change.

* fixed build issue

* fixed nit comments

* fixed line break
2025-07-29 14:29:22 +05:30
Ramnique Singh
632729d4c4 auto-create project from query params 2025-07-24 20:13:12 +05:30
Ramnique Singh
a298036b4b housekeeping 2025-07-23 17:01:02 +05:30
Ramnique Singh
2e3a7916e9 refactor tools UX: part 2 2025-07-23 16:23:31 +05:30
arkml
751a86c34d refactor tools UX: part 1 2025-07-23 16:23:23 +05:30
akhisud3195
6544fbaa9d Fix naming logic for imported assistants 2025-07-21 13:47:43 +05:30
Ramnique Singh
23681d8b4d simplify workflow version mgmt 2025-07-18 01:22:53 +05:30
Ramnique Singh
1b19a9bcba perform project auth check for voice actions 2025-07-17 23:18:58 +05:30
Ramnique Singh
27ad5d675a bring back twilio integration 2025-07-15 23:34:43 +05:30
Ramnique Singh
078f785a9e add composio tools 2025-07-08 21:24:34 +05:30
akhisud3195
a09004a635 Add JSON (paste) import functionality 2025-07-08 13:20:00 +05:30