refactor: align system tool JSON schema codec (#7116)
* refactor(core): optimize system tool input/output schema management - Use `JSONSchema` instead of `InputConfig` for system tool I/O definitions - Centralize JSON Schema to Node I/O conversion utilities - Cleanup redundant type definitions and schema properties across packages * refactor(app): optimize SecretInputModal UI and logic - Migrate to updated MyModal component and refactor layout - Update input styling and placeholder logic - Add missing input controller for 'input' type fields * refactor(global): improve workflow JSON schema mapping and tool catalog - Update `getJsonSchemaPropertyFromValueType` to handle complex types like `arrayObject` and `chatHistory` properly instead of falling back to default types. - Refactor `getEnumValuesFromNodeInput` to correctly collect enum values from different input configurations. - Update `useToolCatalog` to use `nodeInputs2JsonSchema` for consistent schema generation across tools and nodes. - Add comprehensive test cases to verify JSON schema conversion for various value types and enum sources. * perf: get tool client code * chore: avoid schema loading for tool display metadata * perf: tool throw error --------- Co-authored-by: archer <545436317@qq.com>
Showing
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment