{ e.stopPropagation() }} role="none" bind:clientWidth={width} bind:clientHeight={height} >
dispatch('close')} {disableAi} on:insert bind:funcDesc {preFilter} {loading} /> {#if selectedKind != 'preprocessor' && selectedKind != 'flow'} {/if} { refreshCount.val += 1 }} />
{#if kind === 'script'}
{ selectedKind = 'script' }} /> {#if toolMode} { dispatch('pickMcpTool') dispatch('close') }} /> { dispatch('pickWebsearchTool') dispatch('close') }} /> { dispatch('pickAiAgentTool') dispatch('close') }} /> {:else} {#if customUi?.triggers != false && allowTrigger} { selectedKind = 'trigger' }} /> {/if} { selectedKind = 'approval' }} /> {#if customUi?.flowNode != false} { selectedKind = 'flow' }} /> {/if} {#if stop} { selectedKind = 'script' }} /> {/if} { dispatch('close') dispatch('new', { kind: 'forloop' }) }} /> { dispatch('close') dispatch('new', { kind: 'whileloop' }) }} /> { dispatch('close') dispatch('new', { kind: 'branchone' }) }} /> { dispatch('close') dispatch('new', { kind: 'branchall' }) }} /> {#if customUi?.aiAgent != false} { dispatch('close') dispatch('new', { kind: 'aiagent' }) }} /> {/if} {#if customUi?.aiSandbox != false} { selectedKind = 'aisandbox' }} /> {/if} {/if}
{/if} {#if selectedKind === 'aisandbox'}
{ dispatch('close') dispatch('new', { kind: 'script', inlineScript: { language: 'bun', kind: 'script', subkind: 'claudesandbox' } }) }} />
{:else} { dispatch('close') }} on:new on:pickScript on:pickFlow {preFilter} {displayPath} refreshCount={refreshCount.val} /> {/if}