function getInstanceDetails(instance, ctx) {
  var _a;

  return {
    id: (0, util_1.getUniqueComponentId)(instance, ctx),
    name: (0, util_1.getInstanceName)(instance),
    file: (_a = instance.type) === null || _a === void 0 ? void 0 : _a.__file,
    state: getInstanceState(instance)
  };
}
Get the detailed information of an inspected instance.