(
parsed: ParsedToolAddress,
)
| 6202 | ); |
| 6203 | |
| 6204 | const searchToolRowsForConnection = ( |
| 6205 | parsed: ParsedToolAddress, |
| 6206 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 6207 | core.findMany("tool", { |
| 6208 | where: (b: AnyCb) => |
| 6209 | b.and( |
| 6210 | toolRowsForConnectionWhere(parsed)(b), |
| 6211 | b.or( |
| 6212 | b("name", "contains", String(parsed.tool)), |
| 6213 | b("description", "contains", String(parsed.tool)), |
| 6214 | ), |
| 6215 | ), |
| 6216 | orderBy: ["name", "asc"], |
| 6217 | limit: TOOL_SUGGESTION_LIMIT, |
| 6218 | select: TOOL_INVOCATION_COLUMNS, |
| 6219 | }); |
| 6220 | |
| 6221 | const findToolRowsForConnection = ( |
| 6222 | parsed: ParsedToolAddress, |
no test coverage detected