File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
packages/service/core/app/plugin
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ export async function getChildAppPreviewNode({
174
174
} )
175
175
: true ;
176
176
177
- if ( item . type === AppTypeEnum . toolSet ) {
177
+ const node = version . nodes [ 0 ] ;
178
+ if ( item . type === AppTypeEnum . toolSet && node . toolConfig ?. mcpToolSet ) {
178
179
// no url return, and rewrite the toolId
179
- const node = version . nodes [ 0 ] ;
180
180
version . nodes [ 0 ] . toolConfig = {
181
181
mcpToolSet : {
182
182
toolId : pluginId ,
@@ -335,7 +335,7 @@ export async function getChildAppPreviewNode({
335
335
336
336
return {
337
337
id : getNanoid ( ) ,
338
- pluginId : source === PluginSourceEnum . personal ? app . id : undefined ,
338
+ pluginId : app . id ,
339
339
templateType : app . templateType ,
340
340
flowNodeType,
341
341
avatar : app . avatar ,
@@ -553,9 +553,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]>
553
553
versionList,
554
554
inputs,
555
555
outputs,
556
- inputList :
557
- inputs ?. find ( ( input ) => input . key === NodeInputKeyEnum . systemInputConfig ) ?. inputList ??
558
- item ?. inputConfig ?. inputList ,
556
+ inputList : item ?. secretInputConfig ,
559
557
hasSystemSecret : ! ! dbPluginConfig ?. inputListVal
560
558
} ;
561
559
} ) ;
Original file line number Diff line number Diff line change @@ -115,12 +115,12 @@ const NodeCard = (props: Props) => {
115
115
} , [ nodeList , nodeId ] ) ;
116
116
const isAppNode = node && AppNodeFlowNodeTypeMap [ node ?. flowNodeType ] ;
117
117
const showVersion = useMemo ( ( ) => {
118
- // 1. Team app/System commercial plugin
118
+ // 1. MCP tool set do not have version
119
+ if ( isAppNode && node . toolConfig ?. mcpToolSet ) return false ;
120
+ // 2. Team app/System commercial plugin
119
121
if ( isAppNode && node ?. pluginId && ! node ?. pluginData ?. error ) return true ;
120
- // 2 . System tool
122
+ // 3 . System tool
121
123
if ( isAppNode && node ?. toolConfig ?. systemTool ) return true ;
122
- // 3. MCP tool set do not have version
123
- if ( isAppNode && node . toolConfig ?. mcpToolSet ) return false ;
124
124
125
125
return false ;
126
126
} , [ isAppNode , node ] ) ;
You can’t perform that action at this time.
0 commit comments