(
parsed: ParsedToolAddress,
)
| 3344 | ); |
| 3345 | |
| 3346 | const searchToolRowsForConnection = ( |
| 3347 | parsed: ParsedToolAddress, |
| 3348 | ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> => |
| 3349 | core.findMany("tool", { |
| 3350 | where: (b: AnyCb) => |
| 3351 | b.and( |
| 3352 | toolRowsForConnectionWhere(parsed)(b), |
| 3353 | b.or( |
| 3354 | b("name", "contains", String(parsed.tool)), |
| 3355 | b("description", "contains", String(parsed.tool)), |
| 3356 | ), |
| 3357 | ), |
| 3358 | orderBy: ["name", "asc"], |
| 3359 | limit: TOOL_SUGGESTION_LIMIT, |
| 3360 | select: TOOL_INVOCATION_COLUMNS, |
| 3361 | }); |
| 3362 | |
| 3363 | const findToolRowsForConnection = ( |
| 3364 | parsed: ParsedToolAddress, |
no test coverage detected