(
parsed: ParsedToolAddress,
)
| 4263 | ); |
| 4264 | |
| 4265 | const searchToolRowsForConnection = ( |
| 4266 | parsed: ParsedToolAddress, |
| 4267 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 4268 | core.findMany("tool", { |
| 4269 | where: (b: AnyCb) => |
| 4270 | b.and( |
| 4271 | toolRowsForConnectionWhere(parsed)(b), |
| 4272 | b.or( |
| 4273 | b("name", "contains", String(parsed.tool)), |
| 4274 | b("description", "contains", String(parsed.tool)), |
| 4275 | ), |
| 4276 | ), |
| 4277 | orderBy: ["name", "asc"], |
| 4278 | limit: TOOL_SUGGESTION_LIMIT, |
| 4279 | select: TOOL_INVOCATION_COLUMNS, |
| 4280 | }); |
| 4281 | |
| 4282 | const findToolRowsForConnection = ( |
| 4283 | parsed: ParsedToolAddress, |
no test coverage detected