feat(sidebar): add Cmd+B shortcut to toggle sidebar collapse (#5618)

* feat(sidebar): add Cmd+B shortcut to toggle sidebar collapse

* fix(sidebar): skip Cmd+B sidebar toggle inside editable fields

* fix(sidebar): don't dead-zone Cmd+B on read-only editors; drop stale Mod+B ownership

* chore(lint): apply biome fixes
This commit is contained in:
Waleed
2026-07-11 21:31:58 -07:00
committed by GitHub
parent f477faab4b
commit 1fe94d3c7a
5 changed files with 177 additions and 106 deletions
@@ -19,6 +19,11 @@ function RegisterModK({ handler }: { handler: () => void }) {
return null
}
function RegisterModKOutsideEditable({ handler }: { handler: () => void }) {
useRegisterGlobalCommands([{ id: 'search', shortcut: 'Mod+K', handler, allowInEditable: false }])
return null
}
let container: HTMLDivElement
let root: Root
@@ -87,3 +92,45 @@ describe('GlobalCommandsProvider owned-shortcut yielding', () => {
expect(handler).toHaveBeenCalledTimes(1)
})
})
describe('GlobalCommandsProvider editable guard', () => {
it('skips a non-editable command when focus is in an input', () => {
const handler = vi.fn()
mount(
<GlobalCommandsProvider>
<RegisterModKOutsideEditable handler={handler} />
<input type='text' />
</GlobalCommandsProvider>
)
;(container.querySelector('input') as HTMLInputElement).focus()
pressModK()
expect(handler).not.toHaveBeenCalled()
})
it('skips a non-editable command when focus is in a contenteditable element', () => {
const handler = vi.fn()
mount(
<GlobalCommandsProvider>
<RegisterModKOutsideEditable handler={handler} />
<div contentEditable />
</GlobalCommandsProvider>
)
;(container.querySelector('[contenteditable]') as HTMLElement).focus()
pressModK()
expect(handler).toHaveBeenCalledTimes(0)
})
it('fires a non-editable command when focus is in a contenteditable="false" element', () => {
const handler = vi.fn()
mount(
<GlobalCommandsProvider>
<RegisterModKOutsideEditable handler={handler} />
{/* biome-ignore lint/a11y/noNoninteractiveTabindex: focusable stand-in for a read-only editor */}
<div contentEditable={false} tabIndex={0} />
</GlobalCommandsProvider>
)
;(container.querySelector('[contenteditable]') as HTMLElement).focus()
pressModK()
expect(handler).toHaveBeenCalledTimes(1)
})
})
@@ -93,6 +93,18 @@ function shortcutSignature(parsed: ParsedShortcut, isMac: boolean): string {
return `${parsed.key}|${+ctrl}|${+meta}|${+!!parsed.shift}|${+!!parsed.alt}`
}
/**
* Whether `element` is an editable region for the purposes of the editable guard.
* `contenteditable="false"` (e.g. a rich-text editor in read-only mode) is not editable,
* so commands with `allowInEditable: false` still fire while such an element has focus.
*/
function isEditableElement(element: Element | null): boolean {
if (element instanceof HTMLInputElement || element instanceof HTMLTextAreaElement) return true
if (!(element instanceof HTMLElement)) return false
const contentEditable = element.getAttribute('contenteditable')
return contentEditable !== null && contentEditable.toLowerCase() !== 'false'
}
/**
* Whether the focused element (or an ancestor) declares it owns `parsed` via a comma-separated
* `data-owned-shortcuts` attribute (e.g. a rich-text editor that binds `Mod+K` to links). Such a
@@ -141,14 +153,7 @@ export function GlobalCommandsProvider({ children }: { children: ReactNode }) {
if (e.isComposing) return
for (const [, cmd] of registryRef.current) {
if (!cmd.allowInEditable) {
const ae = document.activeElement
const isEditable =
ae instanceof HTMLInputElement ||
ae instanceof HTMLTextAreaElement ||
ae?.hasAttribute('contenteditable')
if (isEditable) continue
}
if (!cmd.allowInEditable && isEditableElement(document.activeElement)) continue
if (matchesShortcut(e, cmd.parsed)) {
if (focusedElementOwnsShortcut(cmd.parsed, isMac)) continue
@@ -17,6 +17,7 @@ export type CommandId =
| 'clear-terminal-console'
| 'focus-toolbar-search'
| 'fit-to-view'
| 'toggle-sidebar'
/**
* Static metadata for a global command.
@@ -92,6 +93,11 @@ export const COMMAND_DEFINITIONS: Record<CommandId, CommandDefinition> = {
shortcut: 'Mod+Shift+F',
allowInEditable: false,
},
'toggle-sidebar': {
id: 'toggle-sidebar',
shortcut: 'Mod+B',
allowInEditable: false,
},
}
/**
@@ -120,18 +120,20 @@ export function SidebarTooltip({
label,
enabled,
side = 'right',
shortcut,
}: {
children: React.ReactElement
label: string
enabled: boolean
side?: 'right' | 'bottom'
shortcut?: string
}) {
if (!enabled) return children
return (
<Tooltip.Root>
<Tooltip.Trigger asChild>{children}</Tooltip.Trigger>
<Tooltip.Content side={side}>
<p>{label}</p>
{shortcut ? <Tooltip.Shortcut keys={shortcut}>{label}</Tooltip.Shortcut> : <p>{label}</p>}
</Tooltip.Content>
</Tooltip.Root>
)
@@ -1234,6 +1236,12 @@ export const Sidebar = memo(function Sidebar({ isCollapsed }: SidebarProps) {
handleCreateWorkflow()
},
},
{
id: 'toggle-sidebar',
handler: () => {
toggleCollapsed()
},
},
])
)
@@ -1284,7 +1292,12 @@ export const Sidebar = memo(function Sidebar({ isCollapsed }: SidebarProps) {
isCollapsed={isCollapsed}
onExpandSidebar={toggleCollapsed}
/>
<SidebarTooltip label='Collapse sidebar' enabled={!isCollapsed} side='bottom'>
<SidebarTooltip
label='Collapse sidebar'
enabled={!isCollapsed}
side='bottom'
shortcut={isMac ? '⌘B' : 'Ctrl+B'}
>
<button
type='button'
onClick={toggleCollapsed}
@@ -10,7 +10,7 @@ export interface ToolRuntimeSchemaEntry {
}
export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
['agent']: {
agent: {
parameters: {
properties: {
request: {
@@ -23,7 +23,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['auth']: {
auth: {
parameters: {
properties: {
request: {
@@ -36,7 +36,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['check_deployment_status']: {
check_deployment_status: {
parameters: {
type: 'object',
properties: {
@@ -48,7 +48,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['complete_scheduled_task']: {
complete_scheduled_task: {
parameters: {
type: 'object',
properties: {
@@ -61,7 +61,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['crawl_website']: {
crawl_website: {
parameters: {
type: 'object',
properties: {
@@ -96,7 +96,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['create_file']: {
create_file: {
parameters: {
type: 'object',
properties: {
@@ -162,7 +162,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['create_file_folder']: {
create_file_folder: {
parameters: {
type: 'object',
properties: {
@@ -180,7 +180,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['create_workflow']: {
create_workflow: {
parameters: {
type: 'object',
properties: {
@@ -205,7 +205,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['create_workspace_mcp_server']: {
create_workspace_mcp_server: {
parameters: {
type: 'object',
properties: {
@@ -238,7 +238,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['delete_file']: {
delete_file: {
parameters: {
type: 'object',
properties: {
@@ -268,7 +268,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['delete_file_folder']: {
delete_file_folder: {
parameters: {
type: 'object',
properties: {
@@ -284,7 +284,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['delete_workflow']: {
delete_workflow: {
parameters: {
type: 'object',
properties: {
@@ -300,7 +300,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['delete_workspace_mcp_server']: {
delete_workspace_mcp_server: {
parameters: {
type: 'object',
properties: {
@@ -313,7 +313,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['deploy']: {
deploy: {
parameters: {
properties: {
request: {
@@ -327,7 +327,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['deploy_api']: {
deploy_api: {
parameters: {
type: 'object',
properties: {
@@ -411,7 +411,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
],
},
},
['deploy_chat']: {
deploy_chat: {
parameters: {
type: 'object',
properties: {
@@ -570,7 +570,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
],
},
},
['deploy_custom_block']: {
deploy_custom_block: {
parameters: {
type: 'object',
properties: {
@@ -698,7 +698,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['deploymentType', 'deploymentStatus'],
},
},
['deploy_mcp']: {
deploy_mcp: {
parameters: {
type: 'object',
properties: {
@@ -814,7 +814,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['deploymentType', 'deploymentStatus'],
},
},
['diff_workflows']: {
diff_workflows: {
parameters: {
type: 'object',
properties: {
@@ -838,7 +838,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['download_to_workspace_file']: {
download_to_workspace_file: {
parameters: {
type: 'object',
properties: {
@@ -887,7 +887,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['edit_content']: {
edit_content: {
parameters: {
type: 'object',
properties: {
@@ -919,7 +919,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['edit_workflow']: {
edit_workflow: {
parameters: {
type: 'object',
properties: {
@@ -958,7 +958,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['enrichment_run']: {
enrichment_run: {
parameters: {
type: 'object',
properties: {
@@ -1002,7 +1002,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['matched', 'result'],
},
},
['ffmpeg']: {
ffmpeg: {
parameters: {
type: 'object',
properties: {
@@ -1183,7 +1183,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['file']: {
file: {
parameters: {
properties: {
prompt: {
@@ -1196,7 +1196,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['function_execute']: {
function_execute: {
parameters: {
type: 'object',
properties: {
@@ -1334,7 +1334,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['generate_api_key']: {
generate_api_key: {
parameters: {
type: 'object',
properties: {
@@ -1352,7 +1352,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['generate_audio']: {
generate_audio: {
parameters: {
type: 'object',
properties: {
@@ -1504,7 +1504,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['generate_image']: {
generate_image: {
parameters: {
type: 'object',
properties: {
@@ -1632,7 +1632,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['generate_video']: {
generate_video: {
parameters: {
type: 'object',
properties: {
@@ -1799,7 +1799,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_block_outputs']: {
get_block_outputs: {
parameters: {
type: 'object',
properties: {
@@ -1820,7 +1820,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_block_upstream_references']: {
get_block_upstream_references: {
parameters: {
type: 'object',
properties: {
@@ -1842,7 +1842,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_deployed_workflow_state']: {
get_deployed_workflow_state: {
parameters: {
type: 'object',
properties: {
@@ -1855,7 +1855,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_deployment_log']: {
get_deployment_log: {
parameters: {
type: 'object',
properties: {
@@ -1868,7 +1868,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_page_contents']: {
get_page_contents: {
parameters: {
type: 'object',
properties: {
@@ -1896,14 +1896,14 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_platform_actions']: {
get_platform_actions: {
parameters: {
type: 'object',
properties: {},
},
resultSchema: undefined,
},
['get_scheduled_task_logs']: {
get_scheduled_task_logs: {
parameters: {
type: 'object',
properties: {
@@ -1928,7 +1928,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_workflow_data']: {
get_workflow_data: {
parameters: {
type: 'object',
properties: {
@@ -1947,7 +1947,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['get_workflow_run_options']: {
get_workflow_run_options: {
parameters: {
type: 'object',
properties: {
@@ -1960,7 +1960,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['glob']: {
glob: {
parameters: {
type: 'object',
properties: {
@@ -1979,7 +1979,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['grep']: {
grep: {
parameters: {
type: 'object',
properties: {
@@ -2027,7 +2027,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['knowledge']: {
knowledge: {
parameters: {
properties: {
request: {
@@ -2040,7 +2040,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['knowledge_base']: {
knowledge_base: {
parameters: {
type: 'object',
properties: {
@@ -2233,7 +2233,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['list_file_folders']: {
list_file_folders: {
parameters: {
type: 'object',
properties: {
@@ -2245,7 +2245,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['list_integration_tools']: {
list_integration_tools: {
parameters: {
properties: {
integration: {
@@ -2259,14 +2259,14 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['list_user_workspaces']: {
list_user_workspaces: {
parameters: {
type: 'object',
properties: {},
},
resultSchema: undefined,
},
['list_workspace_mcp_servers']: {
list_workspace_mcp_servers: {
parameters: {
type: 'object',
properties: {
@@ -2279,7 +2279,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['load_deployment']: {
load_deployment: {
parameters: {
type: 'object',
properties: {
@@ -2298,7 +2298,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['load_integration_tool']: {
load_integration_tool: {
parameters: {
properties: {
tool_ids: {
@@ -2315,7 +2315,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_credential']: {
manage_credential: {
parameters: {
type: 'object',
properties: {
@@ -2344,7 +2344,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_custom_tool']: {
manage_custom_tool: {
parameters: {
type: 'object',
properties: {
@@ -2424,7 +2424,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_folder']: {
manage_folder: {
parameters: {
type: 'object',
properties: {
@@ -2463,7 +2463,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_mcp_tool']: {
manage_mcp_tool: {
parameters: {
type: 'object',
properties: {
@@ -2515,7 +2515,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_scheduled_task']: {
manage_scheduled_task: {
parameters: {
type: 'object',
properties: {
@@ -2590,7 +2590,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['manage_skill']: {
manage_skill: {
parameters: {
type: 'object',
properties: {
@@ -2623,7 +2623,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['materialize_file']: {
materialize_file: {
parameters: {
type: 'object',
properties: {
@@ -2647,7 +2647,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['media']: {
media: {
parameters: {
properties: {
prompt: {
@@ -2660,7 +2660,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['move_file']: {
move_file: {
parameters: {
type: 'object',
properties: {
@@ -2681,7 +2681,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['move_file_folder']: {
move_file_folder: {
parameters: {
type: 'object',
properties: {
@@ -2699,7 +2699,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['move_workflow']: {
move_workflow: {
parameters: {
type: 'object',
properties: {
@@ -2719,7 +2719,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['oauth_get_auth_link']: {
oauth_get_auth_link: {
parameters: {
type: 'object',
properties: {
@@ -2733,7 +2733,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['oauth_request_access']: {
oauth_request_access: {
parameters: {
type: 'object',
properties: {
@@ -2747,7 +2747,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['open_resource']: {
open_resource: {
parameters: {
type: 'object',
properties: {
@@ -2781,7 +2781,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['promote_to_live']: {
promote_to_live: {
parameters: {
type: 'object',
properties: {
@@ -2800,7 +2800,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['query_logs']: {
query_logs: {
parameters: {
type: 'object',
properties: {
@@ -2911,7 +2911,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['read']: {
read: {
parameters: {
type: 'object',
properties: {
@@ -2938,7 +2938,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['redeploy']: {
redeploy: {
parameters: {
type: 'object',
properties: {
@@ -3017,7 +3017,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
],
},
},
['rename_file']: {
rename_file: {
parameters: {
type: 'object',
properties: {
@@ -3053,7 +3053,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['rename_file_folder']: {
rename_file_folder: {
parameters: {
type: 'object',
properties: {
@@ -3070,7 +3070,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['rename_workflow']: {
rename_workflow: {
parameters: {
type: 'object',
properties: {
@@ -3087,7 +3087,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['research']: {
research: {
parameters: {
properties: {
topic: {
@@ -3100,7 +3100,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['respond']: {
respond: {
parameters: {
additionalProperties: true,
properties: {
@@ -3123,7 +3123,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['restore_resource']: {
restore_resource: {
parameters: {
type: 'object',
properties: {
@@ -3141,7 +3141,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['run']: {
run: {
parameters: {
properties: {
context: {
@@ -3158,7 +3158,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['run_block']: {
run_block: {
parameters: {
type: 'object',
properties: {
@@ -3190,7 +3190,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['run_from_block']: {
run_from_block: {
parameters: {
type: 'object',
properties: {
@@ -3222,7 +3222,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['run_workflow']: {
run_workflow: {
parameters: {
type: 'object',
properties: {
@@ -3260,7 +3260,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['run_workflow_until_block']: {
run_workflow_until_block: {
parameters: {
type: 'object',
properties: {
@@ -3303,7 +3303,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['scheduled_task']: {
scheduled_task: {
parameters: {
properties: {
request: {
@@ -3316,7 +3316,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['scrape_page']: {
scrape_page: {
parameters: {
type: 'object',
properties: {
@@ -3337,7 +3337,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['search_documentation']: {
search_documentation: {
parameters: {
type: 'object',
properties: {
@@ -3354,7 +3354,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['search_library_docs']: {
search_library_docs: {
parameters: {
type: 'object',
properties: {
@@ -3375,7 +3375,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['search_online']: {
search_online: {
parameters: {
type: 'object',
properties: {
@@ -3415,7 +3415,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['search_patterns']: {
search_patterns: {
parameters: {
type: 'object',
properties: {
@@ -3437,7 +3437,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['set_block_enabled']: {
set_block_enabled: {
parameters: {
type: 'object',
properties: {
@@ -3459,7 +3459,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['set_environment_variables']: {
set_environment_variables: {
parameters: {
type: 'object',
properties: {
@@ -3493,7 +3493,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['set_global_workflow_variables']: {
set_global_workflow_variables: {
parameters: {
type: 'object',
properties: {
@@ -3534,7 +3534,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['superagent']: {
superagent: {
parameters: {
properties: {
task: {
@@ -3548,7 +3548,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['table']: {
table: {
parameters: {
properties: {
request: {
@@ -3561,7 +3561,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['update_deployment_version']: {
update_deployment_version: {
parameters: {
type: 'object',
properties: {
@@ -3590,7 +3590,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['update_scheduled_task_history']: {
update_scheduled_task_history: {
parameters: {
type: 'object',
properties: {
@@ -3608,7 +3608,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['update_workspace_mcp_server']: {
update_workspace_mcp_server: {
parameters: {
type: 'object',
properties: {
@@ -3633,7 +3633,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['user_memory']: {
user_memory: {
parameters: {
type: 'object',
properties: {
@@ -3682,7 +3682,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['user_table']: {
user_table: {
parameters: {
type: 'object',
properties: {
@@ -4045,7 +4045,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
required: ['success', 'message'],
},
},
['workflow']: {
workflow: {
parameters: {
properties: {
prompt: {
@@ -4058,7 +4058,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
['workspace_file']: {
workspace_file: {
parameters: {
type: 'object',
properties: {