(
parsed: ParsedToolAddress,
)
| 3608 | ); |
| 3609 | |
| 3610 | const searchToolRowsForConnection = ( |
| 3611 | parsed: ParsedToolAddress, |
| 3612 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 3613 | core.findMany("tool", { |
| 3614 | where: (b: AnyCb) => |
| 3615 | b.and( |
| 3616 | toolRowsForConnectionWhere(parsed)(b), |
| 3617 | b.or( |
| 3618 | b("name", "contains", String(parsed.tool)), |
| 3619 | b("description", "contains", String(parsed.tool)), |
| 3620 | ), |
| 3621 | ), |
| 3622 | orderBy: ["name", "asc"], |
| 3623 | limit: TOOL_SUGGESTION_LIMIT, |
| 3624 | select: TOOL_INVOCATION_COLUMNS, |
| 3625 | }); |
| 3626 | |
| 3627 | const findToolRowsForConnection = ( |
| 3628 | parsed: ParsedToolAddress, |
no test coverage detected