(
parsed: ParsedToolAddress,
)
| 6322 | ); |
| 6323 | |
| 6324 | const searchToolRowsForConnection = ( |
| 6325 | parsed: ParsedToolAddress, |
| 6326 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 6327 | core.findMany("tool", { |
| 6328 | where: (b: AnyCb) => |
| 6329 | b.and( |
| 6330 | toolRowsForConnectionWhere(parsed)(b), |
| 6331 | b.or( |
| 6332 | b("name", "contains", String(parsed.tool)), |
| 6333 | b("description", "contains", String(parsed.tool)), |
| 6334 | ), |
| 6335 | ), |
| 6336 | orderBy: ["name", "asc"], |
| 6337 | limit: TOOL_SUGGESTION_LIMIT, |
| 6338 | select: TOOL_INVOCATION_COLUMNS, |
| 6339 | }); |
| 6340 | |
| 6341 | const findToolRowsForConnection = ( |
| 6342 | parsed: ParsedToolAddress, |
no test coverage detected