Refa: refine code_exec component (#13925)

### What problem does this PR solve?

Refine code_exec component.

### Type of change

- [x] Refactoring
This commit is contained in:
Yongteng Lei
2026-04-07 11:48:29 +08:00
committed by GitHub
parent c4b0aaa874
commit 112007243d
30 changed files with 1767 additions and 427 deletions

View File

@@ -160,7 +160,7 @@ export interface ICodeForm {
arguments: Record<string, string>;
lang: string;
script?: string;
outputs: Record<string, { value: string; type: string }>;
outputs: Record<string, { value: unknown; type: string }>;
}
export interface IAgentForm {
@@ -192,7 +192,7 @@ export interface IAgentForm {
};
}
export type BaseNodeData<TForm extends any> = {
export type BaseNodeData<TForm = any> = {
label: string; // operator type
name: string; // operator name
color?: string;