Support define is tool logic function (#17926)

- supports isTool and timeout settings in defineLogicFunction in apps
and in setting tabs definition
- compute for all toolInputSchema for logic funciton, in settings and in
code steps

<img width="991" height="802" alt="image"
src="https://github.com/user-attachments/assets/05dc1221-cac9-45a3-87b0-3b13161446fd"
/>
This commit is contained in:
martmull
2026-02-16 10:43:29 +01:00
committed by GitHub
parent f694bb99b3
commit da064d5e88
138 changed files with 4839 additions and 367 deletions
@@ -6,12 +6,8 @@ import {
isString,
} from '@sniptt/guards';
import { isDefined } from 'twenty-shared/utils';
import {
buildOutputSchemaFromValue,
type Leaf,
type LeafType,
type Node,
} from 'twenty-shared/workflow';
import { getOutputSchemaFromValue } from 'twenty-shared/logic-function';
import { type Leaf, type LeafType, type Node } from 'twenty-shared/workflow';
import { DEFAULT_ITERATOR_CURRENT_ITEM } from 'src/modules/workflow/workflow-builder/workflow-schema/constants/default-iterator-current-item.const';
@@ -37,7 +33,7 @@ export const inferArrayItemSchema = ({
}
if (isObject(firstItem)) {
const itemSchema = buildOutputSchemaFromValue(firstItem);
const itemSchema = getOutputSchemaFromValue(firstItem);
return {
isLeaf: false,