(input: { query?: string; limit: number })
| 409 | }; |
| 410 | |
| 411 | export const buildListIntegrationsCode = (input: { query?: string; limit: number }): string => { |
| 412 | const payload: Record<string, unknown> = { |
| 413 | limit: input.limit, |
| 414 | }; |
| 415 | if (input.query && input.query.trim().length > 0) { |
| 416 | payload.query = input.query; |
| 417 | } |
| 418 | return `return await tools.executor.integrations.list(${JSON.stringify(payload)});`; |
| 419 | }; |
| 420 | |
| 421 | export const buildDescribeToolCode = (toolPath: string): string => |
| 422 | `return await tools.describe.tool({ path: ${JSON.stringify(toolPath)} });`; |
no outgoing calls
no test coverage detected