(
parsed: ParsedToolAddress,
)
| 5701 | ); |
| 5702 | |
| 5703 | const searchToolRowsForConnection = ( |
| 5704 | parsed: ParsedToolAddress, |
| 5705 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 5706 | core.findMany("tool", { |
| 5707 | where: (b: AnyCb) => |
| 5708 | b.and( |
| 5709 | toolRowsForConnectionWhere(parsed)(b), |
| 5710 | b.or( |
| 5711 | b("name", "contains", String(parsed.tool)), |
| 5712 | b("description", "contains", String(parsed.tool)), |
| 5713 | ), |
| 5714 | ), |
| 5715 | orderBy: ["name", "asc"], |
| 5716 | limit: TOOL_SUGGESTION_LIMIT, |
| 5717 | select: TOOL_INVOCATION_COLUMNS, |
| 5718 | }); |
| 5719 | |
| 5720 | const findToolRowsForConnection = ( |
| 5721 | parsed: ParsedToolAddress, |
no test coverage detected