(
parsed: ParsedToolAddress,
)
| 4693 | ); |
| 4694 | |
| 4695 | const searchToolRowsForConnection = ( |
| 4696 | parsed: ParsedToolAddress, |
| 4697 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 4698 | core.findMany("tool", { |
| 4699 | where: (b: AnyCb) => |
| 4700 | b.and( |
| 4701 | toolRowsForConnectionWhere(parsed)(b), |
| 4702 | b.or( |
| 4703 | b("name", "contains", String(parsed.tool)), |
| 4704 | b("description", "contains", String(parsed.tool)), |
| 4705 | ), |
| 4706 | ), |
| 4707 | orderBy: ["name", "asc"], |
| 4708 | limit: TOOL_SUGGESTION_LIMIT, |
| 4709 | select: TOOL_INVOCATION_COLUMNS, |
| 4710 | }); |
| 4711 | |
| 4712 | const findToolRowsForConnection = ( |
| 4713 | parsed: ParsedToolAddress, |
no test coverage detected