improvement(deployed-mcp): added the ability to make the visibility for deployed mcp tools public, updated UX (#2853)

* improvement(deployed-mcp): added the ability to make the visibility for deployed mcp tools public, updated UX

* use reactquery

* migrated chats to use reactquery, upgraded entire deploymodal to use reactquery instead of manual state management

* added hooks for chat chats and updated callers to all use reactquery

* fix

* updated comments

* consolidated utils
This commit is contained in:
Waleed
2026-01-16 14:18:39 -08:00
committed by GitHub
parent 8361931cdf
commit ce3ddb6ba0
40 changed files with 12770 additions and 1185 deletions

View File

@@ -0,0 +1,18 @@
import { createLogger } from '@sim/logger'
import { loadWorkflowFromNormalizedTables } from '@/lib/workflows/persistence/utils'
import { hasValidStartBlockInState } from '@/lib/workflows/triggers/trigger-utils'
const logger = createLogger('TriggerUtils')
/**
* Check if a workflow has a valid start block by loading from database
*/
export async function hasValidStartBlock(workflowId: string): Promise<boolean> {
try {
const normalizedData = await loadWorkflowFromNormalizedTables(workflowId)
return hasValidStartBlockInState(normalizedData)
} catch (error) {
logger.warn('Error checking for start block:', error)
return false
}
}

View File

@@ -90,7 +90,6 @@ function generateMockValue(type: string, _description?: string, fieldName?: stri
* Recursively processes nested output structures
*/
function processOutputField(key: string, field: unknown, depth = 0, maxDepth = 10): unknown {
// Prevent infinite recursion
if (depth > maxDepth) {
return null
}