( toolManifest: ToolManifestEntry, workflow: WorkflowManifestEntry, toolModule: ImportedToolModule, )
| 389 | } |
| 390 | |
| 391 | function toCatalogTool( |
| 392 | toolManifest: ToolManifestEntry, |
| 393 | workflow: WorkflowManifestEntry, |
| 394 | toolModule: ImportedToolModule, |
| 395 | ): ToolDefinition { |
| 396 | return { |
| 397 | id: toolManifest.id, |
| 398 | cliName: getEffectiveCliName(toolManifest), |
| 399 | mcpName: toolManifest.names.mcp, |
| 400 | workflow: workflow.id, |
| 401 | description: toolManifest.description, |
| 402 | annotations: toolManifest.annotations, |
| 403 | outputSchema: toolManifest.outputSchema, |
| 404 | nextStepTemplates: toolManifest.nextSteps, |
| 405 | mcpSchema: toolModule.schema, |
| 406 | cliSchema: toolModule.schema, |
| 407 | stateful: toolManifest.routing?.stateful ?? false, |
| 408 | handler: toolModule.handler as ToolDefinition['handler'], |
| 409 | }; |
| 410 | } |
| 411 | |
| 412 | async function enumerateAndRegisterTools( |
| 413 | manifest: ResolvedManifest, |
no test coverage detected