(listed: Record<string, unknown>)
| 43 | |
| 44 | /** The `main` connection from a `connections.list` sandbox return value. */ |
| 45 | const mainConnection = (listed: Record<string, unknown>): Record<string, unknown> | undefined => { |
| 46 | const connections = (listed as { connections?: ReadonlyArray<Record<string, unknown>> }) |
| 47 | .connections; |
| 48 | return connections?.find((c) => c.name === "main"); |
| 49 | }; |
| 50 | |
| 51 | const listCode = (integration: string, verbose: boolean) => ` |
| 52 | const res = await tools.executor.coreTools.connections.list(${JSON.stringify( |
no outgoing calls
no test coverage detected