(
parsed: ParsedToolAddress,
)
| 3691 | ); |
| 3692 | |
| 3693 | const searchToolRowsForConnection = ( |
| 3694 | parsed: ParsedToolAddress, |
| 3695 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 3696 | core.findMany("tool", { |
| 3697 | where: (b: AnyCb) => |
| 3698 | b.and( |
| 3699 | toolRowsForConnectionWhere(parsed)(b), |
| 3700 | b.or( |
| 3701 | b("name", "contains", String(parsed.tool)), |
| 3702 | b("description", "contains", String(parsed.tool)), |
| 3703 | ), |
| 3704 | ), |
| 3705 | orderBy: ["name", "asc"], |
| 3706 | limit: TOOL_SUGGESTION_LIMIT, |
| 3707 | select: TOOL_INVOCATION_COLUMNS, |
| 3708 | }); |
| 3709 | |
| 3710 | const findToolRowsForConnection = ( |
| 3711 | parsed: ParsedToolAddress, |
no test coverage detected