(
parsed: ParsedToolAddress,
)
| 4237 | ); |
| 4238 | |
| 4239 | const searchToolRowsForConnection = ( |
| 4240 | parsed: ParsedToolAddress, |
| 4241 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 4242 | core.findMany("tool", { |
| 4243 | where: (b: AnyCb) => |
| 4244 | b.and( |
| 4245 | toolRowsForConnectionWhere(parsed)(b), |
| 4246 | b.or( |
| 4247 | b("name", "contains", String(parsed.tool)), |
| 4248 | b("description", "contains", String(parsed.tool)), |
| 4249 | ), |
| 4250 | ), |
| 4251 | orderBy: ["name", "asc"], |
| 4252 | limit: TOOL_SUGGESTION_LIMIT, |
| 4253 | select: TOOL_INVOCATION_COLUMNS, |
| 4254 | }); |
| 4255 | |
| 4256 | const findToolRowsForConnection = ( |
| 4257 | parsed: ParsedToolAddress, |
no test coverage detected