Commit Graph

120 Commits

Author SHA1 Message Date
Saumya 9aad9f3014 add agent usage examples to preview dialog 2025-10-06 16:43:48 +05:30
marko-kraemer ddf2d32f59 feat(admin): add user thread viewer with admin access bypass
 Features:
- Add admin portal thread viewer with pagination
- Display thread list with project names and public status
- Add clickable links to view threads via /share/{thread_id}
- Add admin bypass for accessing all threads (public and private)

🔧 Backend Refactoring:
- Consolidate admin APIs into admin_api.py and billing_admin_api.py
- Remove unused files: users_admin.py, admin/api.py
- Remove unused endpoints: user search, grant-bulk-credits, migrate-user
- Update admin thread endpoint to use share URLs

 Performance:
- Remove message_count from UserThreadSummary (optimization)
- Remove N+1 query issue in thread listing

🔒 Authorization:
- Add admin role bypass in verify_and_authorize_thread_access
- Create RLS migration (20251005160000_admin_roles_access.sql)
- Update thread_select_policy for admin access
- Update message_select_policy for admin access
- Update project_select_policy for admin access
- Update agent_runs_select_policy for admin access

💻 Frontend:
- Add Threads tab to admin user details dialog
- Add useAdminUserThreads hook with pagination
- Remove unused admin hooks (useAdminUserSearch, useAdminAdvancedSearch)
- Display thread metadata with Open button and ExternalLink icon

🗃️ Database:
- Apply RLS policies allowing admin/super_admin roles to bypass restrictions
- Admins can now view any thread, message, project, or agent_run

This enables admins to view and debug any user's threads through the
share page interface, regardless of public/private status.
2025-10-05 18:09:26 +02:00
marko-kraemer 0ec17b0d3a refactor: completely remove workflow and playbook system
- Remove workflow_tool.py and all workflow-related backend code
- Delete all workflow database tables and create migration
- Remove workflow API endpoints and execution logic
- Clean workflow references from agent tools and triggers
- Remove playbooks tab and UI from agent configuration
- Eliminate workflow_id, workflow_input, and execution_type fields
- Simplify trigger system to agent-only execution
- Remove workflow tool definitions from tool registry
- Clean up TypeScript interfaces and remove workflow types
- Remove playbooks button from chat input
- Update all trigger components to remove workflow selection
- Clean workflow metadata from threads and sidebar
- Remove 80+ critical workflow code references

Simplifies codebase by eliminating complex dual-mode (agent/workflow)
execution system in favor of pure agent-based automation.
2025-10-05 01:51:44 +02:00
marko-kraemer 8108afe706 fix 2025-09-29 16:39:15 +02:00
marko-kraemer bc6620569f rm general tab, integrations tab default 2025-09-29 14:12:45 +02:00
Saumya 3b9fb65564 fix yearly commitment credits renewal 2025-09-23 13:42:09 +05:30
Saumya e1c1cc3523 fix yearly commitment tracking 2025-09-23 12:37:03 +05:30
Vukasin 1deca79981 fix: migration 2025-09-21 18:07:08 +02:00
Vukasin 02da9e2e6d Merge remote-tracking branch 'upstream/main' into feat/new-knowledge-base-and-sematic-search 2025-09-21 14:29:07 +02:00
Krishav Raj Singh 57e0c11ead migrations 2025-09-19 11:17:32 +05:30
Vukasin 1878df2b24 feat: init globl kb crud 2025-09-17 20:48:09 +02:00
Vukasin 4110f62c84 feat: init new knowledge base structure 2025-09-15 20:32:54 +02:00
Saumya f5044d110c fix migration files 2025-09-11 13:21:01 +05:30
Saumya 0db4fc4d9c attempt to fix oauth trials 2025-09-10 16:46:11 +05:30
Saumya 6dd69c00c2 chore: fix email retrieval for oauth users 2025-09-10 16:24:40 +05:30
Saumya 87d0eeb62f fix: user search endpoint fix 2025-09-10 14:57:31 +05:30
Saumya eeeea7df5f fix time tracking between events 2025-09-10 01:16:39 +05:30
Saumya 6b0ffb9766 refactor billing api 2025-09-09 01:53:05 +05:30
Saumya 5f86bfbf2b free trial functional 2025-09-09 01:53:04 +05:30
Saumya 643a7b4b6b attempt to free trial 2025-09-09 01:53:04 +05:30
Saumya 153eb6cffa complete billing refactor 2025-09-09 01:53:04 +05:30
Saumya 31136ea866 fix topup backfill 2025-09-09 01:53:04 +05:30
Saumya 7b1dac6c91 wallet credits 2025-09-09 01:53:04 +05:30
Saumya bd350f059a new billing 2025-09-09 01:53:04 +05:30
Saumya 43b93354a4 billing revamp 2025-09-09 01:53:04 +05:30
marko-kraemer e01aa2e332 security wip 2025-08-31 20:59:45 -07:00
Marko Kraemer 399d18f9ce
Merge pull request #1447 from KrishavRajSingh/feat/pptx
download pptx
2025-08-29 20:08:29 -07:00
marko-kraemer 46aa1836d0 rem template share sys & simplify 2025-08-29 19:04:33 -07:00
Krishav Raj Singh 69def48771 oauth migrations 2025-08-29 10:50:47 +05:30
Saumya ce98bb8a99 agents use icons and bg color 2025-08-24 17:16:21 +05:30
Saumya b2340e8651 upload file tool 2025-08-21 16:49:27 +05:30
Saumya 6790ac15c8 Merge branch 'main' into sharable-template-page 2025-08-20 12:19:05 +05:30
Saumya 5989f2e37a template share page 2025-08-20 11:32:24 +05:30
Bobbie 2873b5c8a1
Merge pull request #1394 from escapade-mckv/buy-more-tokens
topup credits
2025-08-19 13:54:21 +05:30
Saumya 49393e9b56 topup credits 2025-08-19 13:50:47 +05:30
marko-kraemer 1e4bd6570c fix agent knowledge base 2025-08-18 15:36:49 -07:00
Krishav Raj Singh d82f047eff enable realtime updates for projects table 2025-08-18 03:36:59 +05:30
Saumya a3d4c02314 sync playbooks with config 2025-08-15 01:26:31 +05:30
Saumya f0c0fdba88 feat: custom sheets agent 2025-08-13 16:24:12 +05:30
Saumya 123117e61d feat: agent profile pic images 2025-08-11 19:30:57 +05:30
marko-kraemer ffd158760f Merge main into landing-wip - resolved conflicts in README.md, dashboard-content.tsx, pricing-section.tsx, and agent-selector.tsx 2025-08-09 16:12:30 -07:00
mykonos-ibiza 2cba5392ca refactor: replace QStash with Supabase Cron for background job processing
- Removed references to QStash in documentation and codebase.
- Updated setup and configuration files to reflect the transition to Supabase Cron.
- Implemented new functions for scheduling and unscheduling jobs using Supabase Cron.
- Added webhook authentication using a shared secret for enhanced security.
- Cleaned up related dependencies and example configurations.
2025-08-09 15:40:11 +05:30
marko-kraemer ff7a09f73a enterprise page 2025-08-08 18:23:21 -07:00
mykonos-ibiza 8f6af9d29d Merge branch 'main' into kortix-sdk 2025-07-31 18:47:38 +05:30
Saumya bf3904e860 rtefactor backend 2025-07-31 09:07:09 +05:30
mykonos-ibiza 8869138a7e feat(api-keys): implement API key management system
- Added a new API keys service with endpoints for creating, listing, revoking, and deleting API keys.
- Integrated API key validation and caching for performance.
- Updated backend configuration to include API key secret and throttling settings.
- Created frontend components for managing API keys, including a user interface for creating and displaying keys.
- Introduced a new database migration for the API keys table with necessary constraints and security policies.
- Enhanced authentication methods to support API key usage alongside JWT.
2025-07-29 19:38:37 +05:30
Saumya 488d184939 refactor & cleanup templates 2025-07-29 11:25:18 +05:30
marko-kraemer 3405c27ef6 wip 2025-07-27 01:22:56 +02:00
marko-kraemer ef087747ab rem legacy workflows, db unused schema cleanup wip 2025-07-26 22:31:31 +02:00
Saumya 7d3479d171 make config the single source of truth 2025-07-24 00:15:53 +05:30