feat(agent): enhance agent and skill management features
- Updated the API to include disabled agent IDs for better management of user-specific agent visibility. - Introduced a new function to set the disabled state for shared agents, allowing users to manage their shared agent preferences. - Added a new Skills API to retrieve available skills, enhancing the overall agent capabilities. - Improved the AgentSelector and related components to filter out disabled agents, ensuring a cleaner user experience. - Updated localization strings to reflect new features and improve clarity in agent and skill management. This update enhances the user experience by providing better control over agent visibility and introducing new skill management functionalities.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
-- Migration: 000012_organizations (down, merged 000012, 000013, 000014)
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Rolling back organization and agent_share tables...'; END $$;
|
||||
|
||||
-- Rollback 000014: tenant_disabled_shared_agents first (no FK to organizations)
|
||||
DROP INDEX IF EXISTS idx_tenant_disabled_shared_agents_tenant_id;
|
||||
DROP TABLE IF EXISTS tenant_disabled_shared_agents;
|
||||
|
||||
-- Rollback 000012/000013: organization-related tables (order matters for FK)
|
||||
DROP TABLE IF EXISTS agent_shares;
|
||||
DROP TABLE IF EXISTS organization_join_requests;
|
||||
DROP TABLE IF EXISTS kb_shares;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Migration: 000012_organizations (merged 000012, 000013, 000014)
|
||||
-- Description: Organization tables, kb_shares, join requests, agent_shares (model_shares omitted/dropped)
|
||||
-- Description: Organization tables, kb_shares, join requests, agent_shares, tenant_disabled_shared_agents
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Starting organization tables setup...'; END $$;
|
||||
|
||||
-- Create organizations table
|
||||
@@ -132,4 +132,15 @@ COMMENT ON TABLE agent_shares IS 'Custom agent sharing records to organizations'
|
||||
COMMENT ON COLUMN agent_shares.source_tenant_id IS 'Original tenant ID of the agent';
|
||||
COMMENT ON COLUMN agent_shares.permission IS 'Access permission: viewer or editor';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Organization tables and agent_shares setup completed successfully!'; END $$;
|
||||
-- Per-tenant "disabled" list for shared agents (merged from 000014)
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Creating table: tenant_disabled_shared_agents'; END $$;
|
||||
CREATE TABLE IF NOT EXISTS tenant_disabled_shared_agents (
|
||||
tenant_id BIGINT NOT NULL,
|
||||
agent_id VARCHAR(36) NOT NULL,
|
||||
source_tenant_id BIGINT NOT NULL,
|
||||
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (tenant_id, agent_id, source_tenant_id)
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_tenant_disabled_shared_agents_tenant_id ON tenant_disabled_shared_agents(tenant_id);
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Organization tables and tenant_disabled_shared_agents setup completed successfully!'; END $$;
|
||||
|
||||
Reference in New Issue
Block a user