{"body":"Ah, I didn't see your example until after I had implemented this: sub MAIN() {\n    my $repo = CompUnit::RepositoryRegistry.repository-for-name(\"core\");\n\n    my %path-lookup = CORE-LIBRARIES.map: -> $library {\n        my $library-dist = $repo.candidates($library).head;\n        $library => [ ~ ((try $repo.prefix.add(\"/sources\").add($library-dist.meta<source>)) // \"\") ]\n    }\n\n    say to-json\n    %(\n        pathLookup => %( |%path-lookup.grep({ so .value.head }) ),\n        notInstalled => %path-lookup.grep({ not so .value.head }).map({ .key })\n    );\n}","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/PxfgDP5C","modified":1729888235,"id":"PxfgDP5C","size":555,"lines":14,"own_paste":false,"theme":"","date":1729888235}