(
parsed: ParsedToolAddress,
)
| 4309 | ); |
| 4310 | |
| 4311 | const searchToolRowsForConnection = ( |
| 4312 | parsed: ParsedToolAddress, |
| 4313 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 4314 | core.findMany("tool", { |
| 4315 | where: (b: AnyCb) => |
| 4316 | b.and( |
| 4317 | toolRowsForConnectionWhere(parsed)(b), |
| 4318 | b.or( |
| 4319 | b("name", "contains", String(parsed.tool)), |
| 4320 | b("description", "contains", String(parsed.tool)), |
| 4321 | ), |
| 4322 | ), |
| 4323 | orderBy: ["name", "asc"], |
| 4324 | limit: TOOL_SUGGESTION_LIMIT, |
| 4325 | select: TOOL_INVOCATION_COLUMNS, |
| 4326 | }); |
| 4327 | |
| 4328 | const findToolRowsForConnection = ( |
| 4329 | parsed: ParsedToolAddress, |
no test coverage detected