(
parsed: ParsedToolAddress,
)
| 3592 | ); |
| 3593 | |
| 3594 | const searchToolRowsForConnection = ( |
| 3595 | parsed: ParsedToolAddress, |
| 3596 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 3597 | core.findMany("tool", { |
| 3598 | where: (b: AnyCb) => |
| 3599 | b.and( |
| 3600 | toolRowsForConnectionWhere(parsed)(b), |
| 3601 | b.or( |
| 3602 | b("name", "contains", String(parsed.tool)), |
| 3603 | b("description", "contains", String(parsed.tool)), |
| 3604 | ), |
| 3605 | ), |
| 3606 | orderBy: ["name", "asc"], |
| 3607 | limit: TOOL_SUGGESTION_LIMIT, |
| 3608 | select: TOOL_INVOCATION_COLUMNS, |
| 3609 | }); |
| 3610 | |
| 3611 | const findToolRowsForConnection = ( |
| 3612 | parsed: ParsedToolAddress, |
no test coverage detected