(
parsed: ParsedToolAddress,
)
| 6414 | ); |
| 6415 | |
| 6416 | const searchToolRowsForConnection = ( |
| 6417 | parsed: ParsedToolAddress, |
| 6418 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 6419 | core.findMany("tool", { |
| 6420 | where: (b: AnyCb) => |
| 6421 | b.and( |
| 6422 | toolRowsForConnectionWhere(parsed)(b), |
| 6423 | b.or( |
| 6424 | b("name", "contains", String(parsed.tool)), |
| 6425 | b("description", "contains", String(parsed.tool)), |
| 6426 | ), |
| 6427 | ), |
| 6428 | orderBy: ["name", "asc"], |
| 6429 | limit: TOOL_SUGGESTION_LIMIT, |
| 6430 | select: TOOL_INVOCATION_COLUMNS, |
| 6431 | }); |
| 6432 | |
| 6433 | const findToolRowsForConnection = ( |
| 6434 | parsed: ParsedToolAddress, |
no test coverage detected