(
parsed: ParsedToolAddress,
)
| 4150 | ); |
| 4151 | |
| 4152 | const searchToolRowsForConnection = ( |
| 4153 | parsed: ParsedToolAddress, |
| 4154 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 4155 | core.findMany("tool", { |
| 4156 | where: (b: AnyCb) => |
| 4157 | b.and( |
| 4158 | toolRowsForConnectionWhere(parsed)(b), |
| 4159 | b.or( |
| 4160 | b("name", "contains", String(parsed.tool)), |
| 4161 | b("description", "contains", String(parsed.tool)), |
| 4162 | ), |
| 4163 | ), |
| 4164 | orderBy: ["name", "asc"], |
| 4165 | limit: TOOL_SUGGESTION_LIMIT, |
| 4166 | select: TOOL_INVOCATION_COLUMNS, |
| 4167 | }); |
| 4168 | |
| 4169 | const findToolRowsForConnection = ( |
| 4170 | parsed: ParsedToolAddress, |
no test coverage detected