manifest property

List<({String namespace, List<String> tools})> get manifest

Extension manifest: ordered (namespace, bare tool names) records, one per registered extension (post de-duplication). Read by the binding's core.handshake extension to build the handshake extensions array. Does not finalize the registry.

Implementation

List<({String namespace, List<String> tools})> get manifest =>
    List<({String namespace, List<String> tools})>.unmodifiable(
      <({String namespace, List<String> tools})>[
        for (final _Entry e in _entries)
          (
            namespace: e.plugin.namespace,
            tools: List<String>.unmodifiable(
              e.plugin.tools.map((LeonardTool t) => t.name),
            ),
          ),
      ],
    );