Commit graph

43 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
496dd03016 Hide community cards behind feature flag 2025-09-17 13:48:07 +04: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
1a763dcbd9 Fix pagination issues 2025-09-16 13:52:12 +04:00
akhisud3195
8a86b892d0 Update templates and publishing to use server-side auth + fix likes-related glitches 2025-09-16 00:35:02 +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
Akhilesh Sudhakar
ee02d61996
Add options to hide panes (#244)
* Add multiple pane views

* Fix rendering issues

* Fix copilot apply selection pane error and remove old debug logs

* Make top bar more compact

* Fix copilot generation from starting prompt

* Fix panel resizing issues

* Fix content preservation upon hiding panes

* Added changes on top of pane_layouts branch to remove example agent from the workflow editor

* Grey out options for changing pane layout during zero agents state

* Add zero-agent state for playground and publish buttons

* Fix pane sizes and bugs

---------

Co-authored-by: tusharmagar <tushmag@gmail.com>
2025-09-12 00:37:44 +04:00
arkml
4193ed57f0 update placeholder text for copilot 2025-09-08 22:49:59 +05:30
arkml
9a60a03217 protect against localstrorage error 2025-09-08 14:07:39 +05:30
arkml
d899966107
Progressbar (#231)
* added basic progress bar

* step 1 turns green when any agent instructio is changed

* step 2 is done after playground chat

* step 3 turns green on publish

* step 4 turns green on use assistant

* step 1 turns green on copilot changes too

* reduced font size of the live workflow warning

* better hover texts for steps

* change progress bar style

* better tool tips

* reverted styling of use assistant button

* chat with assistant option collapses the left pane

* remove hide left panel button

* made progress bar hover text more prominent

* add labels to progress bar

* added tour for build

* added tour for test

* added tour for publish

* added tour for use step

* added tool tip for each step to click for tour

* refined wording in product tours

* added jobs and conversations to the product tour
2025-09-07 19:12:50 +05:30
Akhilesh Sudhakar
122d83d8f7
Merge copilot and playground into single pane and prevent edits in live mode
* Display copilot and playground as toggles

* Auto-switch live mode to draft mode when changes are made to workflow or build mode is toggled on

* Show playground / copilot alongside entity config in 3-pane

* Make tool params non-bold

* Fix panel resizing issues

* Fix logic around transitions back to draft mode from live mode

* Change test to chat in the toggle

* Fix workflow consistency issues while switching between live and draft modes
2025-09-04 11:05:43 +04:00
Tushar
70a4d25254
Update Discord URL across documentation and components (#219) 2025-08-23 19:07:45 +05:30
akhisud3195
291943cdd5 Fix copilot welcome screen component overlay 2025-08-21 08:49:11 +05:30
Akhilesh Sudhakar
9bee30aade
Triggers revamp (#212)
* Simplify composio trigger name to be computed directly from Slug

* Show log and friendly name in composio trigger cards

* Standardize buttons in all trigger creation flows

* Update trigger cards look

* Remove extra ring around fields in trigger config form

* Add copilot welcome message

* Update copilot welcome message

* Fix @ mentions deletion glitch
2025-08-19 19:05:03 +05:30
Ramnique Singh
62df67c117 update billing modal pro display 2025-08-19 14:47:42 +05:30
Ramnique Singh
6416f1d358 update billing modal 2025-08-19 14:34:26 +05:30
Ramnique Singh
f7a3c8579d housekeeping: renames, unused imports 2025-08-15 13:58:57 +05:30
Akhilesh Sudhakar
8488255d6d
Change copilot and background panels to distinguish from playground (#204) 2025-08-15 15:07:39 +08:00
Akhilesh Sudhakar
4fd06f9761
Update tools UI and consolidate editable fields over heroUI (#185)
* Make UI UX fixes to tools and tool configs

* Fix font sizing and dark mode issues for tool labels

* Use heroUI input fields and consolidate editable fields into input-field

* Add auto focus to instructions and examples for agents
2025-07-29 11:32:31 +05:30
Akhilesh Sudhakar
da58903f67
Tools UI updates
* Make UI UX fixes to tools and tool configs

* Fix font sizing and dark mode issues for tool labels

* Remove subtitle in tools selection list
2025-07-24 19:19:28 +05:30
Ramnique Singh
2e3a7916e9 refactor tools UX: part 2 2025-07-23 16:23:31 +05:30
akhisud3195
a1e4eddb72 Add stop button in playground 2025-07-21 16:05:31 +05:30
akhisud3195
cb23be8e16 Fix padding below prompt config 2025-07-21 15:52:11 +05:30
Akhilesh Sudhakar
44a951c5d2
Copilot apply all and status bar (#173)
* Club context with status bar copilot

Club copilot cards and add apply all

Remove ability to delete context and club context with status bar copilot

* Show apply all disabled in copilot
2025-07-15 18:33:14 +05:30
akhisud3195
46a539a786 Add section cards inside tools config 2025-07-12 18:30:35 +05:30
akhisud3195
e1f1120d92 Add section cards inside agent config 2025-07-12 13:54:48 +05:30
Ramnique Singh
0efd41a1f5 fix copilot mascot img 2025-07-11 22:09:58 +05:30
akhisud3195
5f1b85e03b Expand chat in playground and imrpove design of copilot context bubble 2025-07-11 21:06:49 +05:30
akhisud3195
9e44dcb939 Rename and copilot and add mascot 2025-07-11 20:55:34 +05:30
Ramnique Singh
3b72de5df4 upgrade to next.js 15 2025-06-24 15:45:04 +05:30
Ramnique Singh
2fda9a7e79 add stripe billing 2025-06-04 17:32:13 +05:30
akhisud3195
9157f87dc7 Add hosted tools + revamp tools UX
Replace db storage with api calls to klavis for list servers and add filters to hosted tool views

Add logging and simplify oauth

Refactor klavis API calls to go via a proxy

Add projectAuthCheck() to klavis actions

Fix build error in stream-response route.ts

PARTIAL: Revamp tools modal

PARTIAL: Manage mcp servers at project level document

PARTIAL: Fetch tools from MCP servers upon toggle ON

PARTIAL: Propogate hosted MCP tools to entity_list in build view

Show tool toggle banner

Add sync explicitly to prevent long page load time for MCP server's tools

PARTIAL: Fix auth flow DB writes

PARTIAL: Add tools with isready flag for auth-related server handling

PARTIAL: Bring back sync tools CTA

Fix tool selection issues

PARTIAL: Fix sync issues with enriched and available tools and log unenriched tool names

Remove buggy log statement

Refactor common components and refactor HostedServer

PARTIAL: Add custom servers and standardize the UI

PARTIAL: Add modal and small UI improvements to custom servers page

Show clubbed MCP tools in entity_list

Add tool filters in tools section of entity_list

Revert text in add tool CTA

Make entity_list sections collapsed when one is expanded

Merge project level tools to workflow level tools when sending requests to agent service

Restore original panel-common variants

Reduce agentic workflow request by removing tools from mcp servers

Merge project level tools to workflow level tools when sending requests to copilot service

Fix padding issues in entity_list headers

Update package-lock.json

Revert package* files to devg

Revert tsconfig to dev

PARTIAL: Change tabs and switch to heroui pending switch issues

Fix switch issues with heroui

Pass projectTools via workflow/app to entity_list and do not write to DB

Fix issue with tool_config rendering and @ mentions for project tools

Include @ mentioned project tools in agent request

Update copilot usage of project tools

Read mcp server url directly from tool config in agents service

Make entity_list panels resizable

Update resize handlers across the board

Change Hosted MCP servers ---> Tools Library

Remove tools filter

Remove filter tabs in hosted tools

Move tools selected / tools available labels below card titles

Remove tools from config / settings page

Bring back old mcp servers handling in agents service for backward compatibility as fallback

Remove web_search from project template

Add icons for agents, tools and prompts in entity_list

Enable agents reordering in entity_list

Fix build errors

Make entity_list icons more transparent

Add logos for hosted tools and fix importsg

Fix server card component sizes and overflow

Add error handling in hosted servers pageg

Add node_modules to gitignore

remove root package json

add project auth checks

revert to project mcpServers being optional

refactor tool merging and conversion

revert stream route change

Move authURL klavis logic to klavis_actions

Fix tool enrichment for post-auth tools and make logging less verbose

Expand tool schema to include comprehensive json schema fields

Add enabled and ready filters to hosted tools

Add needs auth warning above auth button

Update tools icon

Add github and google client ids to docker-compose

Clean up MCP servers upon project deletion

Remove klavis ai label

Improve server loading on and off UX

Fix bug that was not enriching un-auth servers

Add tool testing capabilities

Fix un-blurred strip in tool testing modal view

Disable server card CTAs during toggling on or off transition

Add beta tag to tools

Add tool and server counts

Truncate long tool descriptions

Add separators between filters in servers view

Support multiple format types in tool testing fields

Fix menu position issue for @ mentions
2025-06-03 17:34:16 +05:30
akhisud3195
e4cd71e6b1 Add data sources to product tour 2025-05-09 19:14:05 +05:30
akhisud3195
b1384352b0 Fix linter error 2025-05-07 20:37:32 +05:30
akhisud3195
8981345ba8 Add help modal and expand product tour 2025-05-07 19:28:54 +05:30
Ramnique Singh
49ca5a7154 Use streaming in Copilot 2025-04-16 02:11:35 +05:30
akhisud3195
ef378ba802 Fix compose box issues 2025-04-15 21:55:26 +05:30
akhisud3195
4cf8d40199 Update copilot UI and add product tour 2025-04-15 21:55:25 +05:30
akhisud3195
577d637c75 Add copilot animations 2025-04-14 14:00:06 +05:30
akhisud3195
723aeca581 Fix copilot bugs 2025-04-04 11:32:44 +05:30
akhisud3195
2e9a81dfba Fix compose box chat clearing issue 2025-04-03 23:15:02 +05:30
akhisud3195
bcb686a20d Mega UI revamp 2025-04-03 17:56:31 +05:30