Up until now we've used a hack to get the list of registered queries from a workflow execution.
The hack is to send a query to a workflow, which responds with something like "query not found, list of registered queries...", parse the response and show in the UI.
A standard way to support listing workflow queries would be to have a "listQueries" (name TBD) built-in query provided by the Workflow runtime.
We'd have to keep the hack around to support SDKs that still do not support the listQueries built-in query (all at the time of this writing).
UPDATE: Here is the roadmap: